cfenollosa / bashblog

A single Bash script to create blogs. Download, run, write, done!
1.66k stars 228 forks source link

Link to index page from a post-page #139

Open bkauler opened 7 years ago

bkauler commented 7 years ago

When looking at an individual post, there is no link back to the index page, you would have to use the browser back-button.

So, I have a suggestion, to put in "Back to the index page" when viewing an individual post. Easy to do, I inserted here:

        # Add disqus commments except for index and all_posts pages
        [[ $index == no ]] && disqus_body

        #170822 BK want link back to index page, for post views also...
        if [[ $index == no ]];then
         echo "<div id=\"all_posts\"><a href=\"./$index_file\">$template_archive_index_page</a></div>"
        fi

        # page footer
        cat .footer.html

See it in action here:

http://easyos.info/news/

platschi commented 7 years ago

By standard, the title of the blog contains a link back to the index page. So if you click the title, you'll go back to the index.