jekyll-theme-prologue icon indicating copy to clipboard operation
jekyll-theme-prologue copied to clipboard

Blog classifed (new feature)

Open monkcage opened this issue 6 years ago • 3 comments

When clicking the Amazing Blog, I want the feature that the catagory shows below, but not the list of articles.

monkcage avatar Jan 23 '18 06:01 monkcage

Could you please be more specific? I'm not sure what you mean by category.

chrisbobbe avatar Jan 24 '18 15:01 chrisbobbe

The left navbar of website:

_____________
Home           |
_____________
Blog             |
_____________
Reading List |
_____________

category     | 

_____________

When clicking Blog, the bottom of navbar shows the category which is specified in blog page under the directory of _posts. I'm trying myself, but I'm not expert at jeykll or html.

monkcage avatar Jan 25 '18 01:01 monkcage

If I understand correctly, you're looking for a way to remove the list of blog posts when you click the Blog link. Please correct me if I'm not understanding right.

In this theme, there are two cases in which those extra links would appear; I mean the ones underneath the divider, that change when you scroll up and down. Those two cases are:

  1. If the page is the homepage, everything in the _sections folder will show up in this list. You can tell if a page is the homepage because it has layout: home in the frontmatter. By default, this file is index.md or index.html.
  2. If the page is the blog page, everything in the _posts folder will show up in this list, but shortened as a preview, with a "Read more" link. You can tell if a page is the blog page because it has layout: blog in the frontmatter. By default, this file is blog.html or blog.md.

If you're looking for a way to display a page without that list of scrolly sections or post previews, set layout: page in the frontmatter, and write your content (in Markdown or html) below the frontmatter. An example in the GitHub repository is reading-list.md. You can see from the demo site at https://chrisbobbe.github.io/jekyll-theme-prologue/reading-list.html that all the content on the page displays as a single chunk, without multiple sections that each has a link.

The blog page is filled with posts, including those links, so that viewers can see them at a glance and click "Read more" on any that interest them.

chrisbobbe avatar Jan 28 '18 03:01 chrisbobbe