-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[question] How to make certain pages behave like posts? #3468
Comments
Hey @FernandoHurtado 😸 Did you arrive at a solution? If so, what was it? Some things I usually do are putting |
Combined with front-matter: https://hexo.io/docs/front-matter |
hey @tcrowe , I haven't found a solution :( . Basically what I'm asking is how to make hexo know to render pages under the /projects/ directory like it does posts. For example, https://purtechnikon.com/projects/Journal-julia/ doesn't have an index on the side and a share button and stuff as opposed to https://purtechnikon.com/2019/02/25/Exploring-the-limits-of-Turing-Computability/ , which is formatted more properly for texts. |
@FernandoHurtado You can specify which layout do you use by each posts or pages using by Front-matter layout variable. So, I think you should create Example
I'm sorry if I misunderstand. Thanks :) |
@yoshinorin I checked the other layouts and none of them work either. This is my layouts folder: |
@FernandoHurtado |
Whether to show the share button is controlled by the theme, you can ask the maintainer of the theme for help. There is a discussion about it #1067 |
I have certain pages (under the projects section) that I want to behave like posts (without actually being posts) in the sense that they should have table of contents and tags. I know I could just edit post.ejs but I just need the pages under /projects/ to have this layout.
##Thanks!
Here's the repo:
https://github.com/FernandoHurtado/purtechnikon
The text was updated successfully, but these errors were encountered: