pawroman / zola-theme-terminimal

A simple, minimal retro theme for Zola
https://pawroman.github.io/zola-theme-terminimal/
Other
371 stars 85 forks source link

Web title matching post title #4

Closed lacraig2 closed 3 years ago

lacraig2 commented 3 years ago

Love this theme. It's great. One small issue I've had is that when you click on a post it keeps the title of the overall blog instead of incorporating the title of the article.

For example: https://pawroman.github.io/zola-theme-terminimal/terminimal-theme/

The title is the same as the overall site: "Zola Terminimal theme" when I'd expect it to be the title of the post: "Terminimal Theme for Zola".

pawroman commented 3 years ago

Hi, thanks for the praise. Most credit goes to https://github.com/panr/hugo-theme-terminal :smile: -- I have merely ported it to Zola and made some tweaks.

Thanks for reporting the issue. Should be easy enough to incorporate into the theme itself, since index.html defines a title block.

However, I don't see that as a mandatory addition to the theme, since Zola makes it easy to customize the templates of a theme. See more info on this in Zola documentation.

As an example, you could customize your site by adding the title to your templates/page.html like this:

{% extends "terminimal/templates/page.html" %}

{% block title %}{{ page.title }}{% endblock %}
lacraig2 commented 3 years ago

That's perfect. Thank you!