bashblog icon indicating copy to clipboard operation
bashblog copied to clipboard

Link to index page from a post-page

Open bkauler opened this issue 8 years ago • 1 comments

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/

bkauler avatar Aug 22 '17 15:08 bkauler

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.

platschi avatar Aug 31 '17 17:08 platschi