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

Blog classifed (new feature) #2

Open
monkcage opened this issue Jan 23, 2018 · 3 comments
Open

Blog classifed (new feature) #2

monkcage opened this issue Jan 23, 2018 · 3 comments

Comments

@monkcage
Copy link

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

@chrisbobbe
Copy link
Owner

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

@monkcage
Copy link
Author

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.

@chrisbobbe
Copy link
Owner

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.

sitongan referenced this issue in sitongan/sitongan.github.io Aug 1, 2018
Janfiderheld added a commit to Food-Ninja/food-cutting-website that referenced this issue Feb 23, 2024
Janfiderheld added a commit to Food-Ninja/food-cutting-website that referenced this issue Feb 23, 2024
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