Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to index page from a post-page #139

Open
bkauler opened this issue Aug 22, 2017 · 1 comment
Open

Link to index page from a post-page #139

bkauler opened this issue Aug 22, 2017 · 1 comment

Comments

@bkauler
Copy link

bkauler commented Aug 22, 2017

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants