Comments (12)
Edit: I found that we can solve the problem by setting another front matter - publishDate
Update the Zzo theme first and then follow the below steps.
- add config variable named
buildFuture
at root/config/_default/config.toml
...
buildFuture = true
...
- add publishDate front matter to your md file at root/content/talks/myLinks.md
---
title:
date:
publishDate: 2020-02-20
...
---
...
- I added one more param(root/config/_default/params.toml)
...
talksPaginate = 5
talksGroupByDate = "2006"
...
That's it.
from hugo-theme-zzo.
Oh, you don’t want the talks showing up on the home page? Actually it was not displayed on the home page but I deleted that part. I’ll rollback that code.
Or you can do PR . This is the related commit 9c21e92
from hugo-theme-zzo.
I’ll think about it more.
But if we add this feature, ‘dontShowInHomePage’ would be better name I think.
from hugo-theme-zzo.
No add new issue . It’s better
from hugo-theme-zzo.
This works! Thank you 👍
Quick question: Why is the publishDate
date required? Everything works the same with date
.
Inside md file at root/content/talks/myLinks.md
from hugo-theme-zzo.
We are using ‘date’ front matter for sorting list in the home page, terms page, section page.
So if we use the ‘date’ for talks page, it will show up at the top of the home page unnecessarily.
But you can use ‘date’ if you don’t mind the sorting problem
from hugo-theme-zzo.
That makes sense. I was actually going to ask about those showing up on the home page. I will make the fix so they don't show.
Thank you for explaining it to me.
from hugo-theme-zzo.
That would be nice.
Essentially this is a blog. So only posts should show up on the home page. Anything else should show in its own page.
from hugo-theme-zzo.
Yes I misunderstood some words.
from hugo-theme-zzo.
I think you meant this commit: 9c21e92
Maybe what would be better is to have it behind a flag. This would make it dynamic and you don't need to filter it.
So putting in a config, which by default does not show in home page, but when set to true will show in home page. It can be any page.
from hugo-theme-zzo.
..or it can be a field that takes an array. i.e
showInHomePageTypes = [posts, talks]
This way if someone doesn't want to show talks they just set it to:
showInHomePageTypes = [posts]
and your logic would be something like:
if (pageType is in showInHomePageTypes array){
then show in home page
}
What do you think?
from hugo-theme-zzo.
dontShowInHomePage
also works 👍
from hugo-theme-zzo.
Related Issues (20)
- Deploy to Github page in subdirectory not work HOT 3
- found no layout file for "searchindex" for kind "page" HOT 2
- Replace `markdownify` with `.Page.RenderString`
- Typo at 'Getting Started' HOT 1
- Ability to define file name in code listing snippet
- Language dependent values in params.toml HOT 1
- favicon HOT 1
- How to modify the landing page? HOT 1
- Utterance comments does not work HOT 1
- Contact form netlify HOT 2
- SEO crucial issue with title HOT 1
- [Question] Change props of a specific theme
- Adapt zzo theme to SEO best practices
- Website title taken from languages.toml instead of config.toml
- Unable to change font color on slides
- Solution for a mobile icon for languages:
- add target="_blank" rel="noreferrer" to social links
- Missing comma
- Header title redirects to "/". But my home page is on"/blog", how can I change it. Please help. HOT 1
- WARN deprecated - hugo version v0.122.0-b9a03bd59d5f71a529acb3e33f995e0ef332b3aa+extended linux/amd64
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-theme-zzo.