X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=modules%2Fmd-header;h=3e1b3e4ec9dbc5a89b93a90490123983ffa300c3;hb=HEAD;hp=e671ea876ca05b4be4f609abdfbc0a17ef5c6acb;hpb=cc7b64f958b577507c4fdf21959f156d8b7f3c04;p=pinopress.git 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/')"