-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Add ability to generate per-{year, month, day} archives #448
Comments
An idea for implementation: Generate one index.html file for every level of date-related data present in permalinks:
post: /:year/:month/:slug generate
This should require minimal new logic needed. Some sanity checking might be required, unless we want to allow things like |
I actually think this should be a bit different. This assumes the year/month structure that Jekyll and others use. I would prefer instead to register every directory and maintain a list of children content regardless of if it's using the permalinks structure or not. This would not only give us what you need, but also support for subsections. Does that make sense? |
It does make sense - the only question in this kind of schema is how do we decide whether or not render an |
I think by default. It doesn't hurt to have it and you don't need to link On Wednesday, September 3, 2014, Jakub Turski [email protected]
Steve Francia |
I think this is related or the same as #465. Tying them together. |
Just for example from Wordpress: |
Any progress on this or workarounds? |
Any ideas on this one? |
FWIW, I've stopped using Hugo for the site that I wanted this feature for, so I'm muting this bug - don't expect any answers here :> |
I'm not a Hugo expert and my templates may have some newbie errors but I managed to make archives work using taxonomies. Check out this repo: https://github.com/mcliment/f1blog-archived/ -there are taxonomies per year defined in The resulting site is here: http://f1blog.climens.net/ with most of the things I had in Wordpress. |
You are right. I don't want additional navigation, but instead have a different alternative date based pagination instead of the normal pagination. |
@jmooring I found a way how to create the navigation between the date based sections of your example code as I imagined it. I opened a pull request jmooring/hugo-testing#4 . This might not be the perfect code, but maybe it helps to understand better what I want. |
Hello. I have an interest in this issue. I see that solutions are being proposed. Does it means there will be such a thing in the near future ? Thanks |
This uses a relatively simple module to create year, month, and day archive pages for one section of a site. The module leverages the content adapters feature introduced in v0.126.0. The module itself requires v0.140.1 or later. Example:
Details: Note that this approach relies on the |
Any updates on this? What are the current plans to get archives (without workarounds)? |
I'm in process of migrating a blogger based blog to hugo. Compare blogger site to hugo-backed site (source here).
One thing that I'll lose as a result of this migration is an archive of posts (like this one). I don't really care all that much, and I'll most likely replace it with a list of all posts, with a different layout, generated from
layouts/section/post.html
. I'd like to ask you, however, to consider adding a capability for hugo to generate time-based archives. Such archives would most likely be useful to people who want to preserve their existing archive pages.It'd generate content under
public/<section>/2014/index.html
for example, fromlayouts/post/list.html
. It'd need to allow per-section and per-level (yearly, monthly, daily) control. It'd also need to play well withpermalinks
parameter from config.yaml - I don't really have a good idea how to address that.Is such feature request a sensible one? :)
The text was updated successfully, but these errors were encountered: