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

Having a "Series" of posts #234

Closed
agilix opened this issue Jul 27, 2021 · 3 comments · Fixed by #242
Closed

Having a "Series" of posts #234

agilix opened this issue Jul 27, 2021 · 3 comments · Fixed by #242
Assignees
Labels
enhancement New feature or request

Comments

@agilix
Copy link
Contributor

agilix commented Jul 27, 2021

Is your feature request related to a problem? Please describe.
I would like to add series to my blog posts. So I would like to group posts that have been broken up in Part I, II, III, ...

Describe the solution you'd like
I would like to set series in the front matter so when looking at the post you see a See also or Related or something like this.

Describe alternatives you've considered
I thought about working with the tags or with the category. But that would not do it justice.

Additional context
Well, I added the taxonomies in the config.toml:

[taxonomies]
    category = "categories"
    series = "series"
    tag = "tags"

And the series in the Front Matter:
series: 'Retrospective'

But then I get the following error:

render of "page" failed: execute of template failed: template: _default/single.html:7:6: executing "_default/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: template: _internal/opengraph.html:36:44: executing "_internal/opengraph.html" at <.>: range can't iterate over Retrospective
failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:7:6: executing "_default/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: template: _internal/opengraph.html:36:44: executing "_internal/opengraph.html" at <.>: range can't iterate over Retrospective

Or maybe I'm missing something?

PS: Great work on this theme!

@agilix agilix added the enhancement New feature or request label Jul 27, 2021
@lxndrblz
Copy link
Owner

@SchabrechtsK Did you try setting the series to a list in the front matter?

series:
- Retrospective

@lxndrblz lxndrblz added bug Something isn't working and removed enhancement New feature or request labels Jul 27, 2021
@agilix
Copy link
Contributor Author

agilix commented Jul 27, 2021

@lxndrblz That indeed fixes the error.
This also makes the /series/<series_name> url available.

But each blog post in that series is not linking to another, so there is no Also see or Related?
Is that part a missing feature or am I missing something?

@lxndrblz
Copy link
Owner

lxndrblz commented Jul 27, 2021

@SchabrechtsK That is indeed still a todo.
Personally, I think this feature should be fairly easy to fix as there are numerous examples online.

Unfortunately, currently I am quite busy with my other projects and can not dedicate much time to the development of this theme. However, if you are wanting to develop this feature and have it added to the theme then please send me a PR and I'll review it.

@lxndrblz lxndrblz added enhancement New feature or request and removed bug Something isn't working labels Jul 27, 2021
@lxndrblz lxndrblz linked a pull request Aug 15, 2021 that will close this issue
lxndrblz added a commit that referenced this issue Aug 15, 2021
Closes #234 

* Implemented basic functionality to group posts by a series
* Added two example posts to display how the series work
* Updated the ReadMe to include how to setup the series

Co-authored-by: Alexander Bilz <mail@alexbilz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants