X-Git-Url: https://git.danieliu.xyz/?p=pinopress.git;a=blobdiff_plain;f=modules%2Fmd-header;fp=modules%2Fmd-header;h=3e1b3e4ec9dbc5a89b93a90490123983ffa300c3;hp=e671ea876ca05b4be4f609abdfbc0a17ef5c6acb;hb=6ec6ed4c15ad3c37fbe1076aa33d26e9c21050a9;hpb=1f9da3846f8e78cac52ea5a4c3840dfc391dca53 diff --git a/modules/md-header b/modules/md-header index e671ea8..3e1b3e4 100755 --- a/modules/md-header +++ b/modules/md-header @@ -17,4 +17,4 @@ export DESCRIPTION=`getprop "$1" description` export USERLOCAL1=`getprop "$1" userlocal1` export USERLOCAL2=`getprop "$1" userlocal2` # this only works when this script is called from pinopress script, as it inherits the required env variables. careful with this one, it's a bit hacky -export ARTICLE_URL="$SITEURL/$ARTICLE_PATH/$(echo $(basename "$1") | sed -e 's/\(.*\)\.html/\1\.md/')" +export ARTICLE_URL="$SITEURL/$ARTICLE_PATH/$(echo $(basename "$1") | sed -e 's/\(.*\)\.md/\1\.html/')"