~aprates/gempress

0cdd4d4eacaecdd25e5dced330decc77b9822b05 — Antonio Prates 8 months ago 4695436
Use fully qualified link to home on feed
3 files changed, 4 insertions(+), 4 deletions(-)

M capsule-example.conf
M src/capsule-to-website.sh
M src/lib.sh
M capsule-example.conf => capsule-example.conf +2 -2
@@ 15,8 15,8 @@ localBaseDir="/home/user/johndoe/gemini/contents"
# Template folder full path - Without final slash (/)
templateDir="/home/user/johndoe/gempress/template"

# Customize feed 'back' link label
gmiLinkHome="Capsule Home"
# Customize 'back to home' link appended to feed
gmiLinkHome="=> / Capsule Home"

# Folder where posts are stored inside localBaseDir (optional)
#feedDir=""  # defaults to "log"

M src/capsule-to-website.sh => src/capsule-to-website.sh +1 -1
@@ 61,7 61,7 @@ if [[ -z $langCode ]];
then
   conversionArgs=$filePaths
else
   echo "Using language code: $langCode"
   echo "using language code: $langCode"
   conversionArgs="-lang:$langCode $filePaths"
fi
sugar src/gmi-to-html.c $conversionArgs

M src/lib.sh => src/lib.sh +1 -1
@@ 33,7 33,7 @@ function appendFeedToHome() {
function linkFeedToHome() {
    echo -e "Resetting feed file and appending home link:\n$capsule/$feedDir/index.gmi"
    cp -f $localBaseDir/$feedDir/index.gmi $capsule/$feedDir/index.gmi
    echo -e "\n=> / $gmiLinkHome\n" >> $capsule/$feedDir/index.gmi
    echo -e "\n$gmiLinkHome\n" >> $capsule/$feedDir/index.gmi
}

function generateAtomFeedGemini() {