Commit graph

46 commits

Author SHA1 Message Date
Andrew Borg 9989929679
Allow customizing post date format
Now you can set the format of the date used in the post in the config:

```toml
[extra]
post_date_format = "%Y-%m-%d"
```
2025-01-13 14:33:09 +00:00
Paweł Romanowski 26ab720d51 Tweak default config to reflect changes in RSS generation after Zola 0.19 changes 2024-08-17 17:48:30 +02:00
Heitor Pascoal de Bittencourt d0bb9da1d1
templates/index: fix broken RSS/ATOM feed rel links
Zola 0.19.0 changed the config options related to RSS/ATOM feed
generation, allowing multiple feeds at once. This patch addresses this
change and adds as many links in the HTML head as there are feeds.

Fix #64
2024-08-12 16:36:10 -03:00
Paweł Romanowski c620187811
Merge pull request #60 from heitorPB/trailing-slash
tag page: add / to "all tags" link
2024-06-08 01:12:06 +02:00
Lucas Kent cf114ec7e2 Fix postview navigation 2024-05-04 12:20:58 +10:00
Heitor Pascoal de Bittencourt 4be31aa151
tag page: add / to "all tags" link
This is to improve Google indexing pages, for the /tags/ page. In GitHub
Pages, the URL /tags does not exist per se, but is a redirect to /tags/.
Google Crawler gets confused with 301 HTTP status and does not index it.
2024-03-05 09:29:16 -03:00
Heitor Pascoal de Bittencourt bef4cc9020
shortcodes: use async and lazy for images.
Zola v0.18 added an option to set all images with `decoding=async` and
`load=lazy`, but this only applies to `<img>` tags generated from
Markdown `![]()` syntax. This patch adds these attributes by default to
`figure` and `image` macros.
2024-02-06 15:31:27 -03:00
Paweł Romanowski 964fffab09 Fix show_only_description not to break page content 2023-12-18 21:22:33 +01:00
Paweł Romanowski 39d13a9a6a
Merge pull request #53 from AntoniosBarotsis/show-description
Added the option to only show the description (continuation)
2023-12-14 09:05:43 +01:00
Heitor Pascoal de Bittencourt 207f0c33ea
Fix path for colocated image 2023-11-16 20:29:42 -03:00
Heitor Pascoal de Bittencourt c99f284681
Improve tag description in OpenGraph metatags 2023-11-10 17:22:33 -03:00
Heitor Pascoal de Bittencourt 6af6b597fa
Add OpenGraph support
Add the necessary OpenGraph meta tags to all pages.

Fix https://github.com/pawroman/zola-theme-terminimal/issues/3
2023-11-09 17:43:30 -03:00
Antonios Barotsis 4ce06e1894 Added the option to only show the description
Co-authored-by: Antonios Barotsis <a.barotsis@student.tudelft.nl>
Co-authored-by: Bkeinn <60117033+Bkeinn@users.noreply.github.com>
2023-08-02 21:49:04 +03:00
Heitor Pascoal de Bittencourt a9969735db
Allow markdown in caption of figures 2023-07-31 13:27:33 -03:00
Paweł Romanowski 6e91e642f6
Merge pull request #35 from heitorPB/autoconfigure-feed-type
Automatically set link to RSS or ATOM feed
2023-06-23 11:49:20 +02:00
David Janda fe3dc232d8 Check if page_titles exists in config.toml 2023-06-21 17:51:01 -07:00
Paweł Romanowski 9f79a41208
Merge pull request #37 from goingforbrooke/patch-2
Fix: shortcode images don't load after build
2023-05-16 12:03:40 +02:00
Brooke d7f9e84041
Fix: link the top-left logo to logo_home_link
This fix works by adding missing two missing `.extra`'s when accessing the `logo_home_link` in the `header` template block.

The bug is caused by the first missing `.extra`, which makes Tera assume that `logo_home_link` variable doesn't exist, so the `if` trigger for using it never fires. This means that the logo will always link to the default value of `base_url`.

The second missing `.extra` comes after the `if` fires. It's used to set the value of `logo_link` to `logo_home_link`.
2023-05-11 14:27:27 -07:00
Brooke f8026666f3
Fix: shortcode images don't load after build
This fixes an issue where images added with the [`image` shortcode](https://github.com/pawroman/zola-theme-terminimal#image) are visible via `zola serve` but not `zola build`.

It works by [prepending](https://tera.netlify.app/docs#concatenation) the site's base URL to external image URLs so `https://www.awesomesite.com/flower.png` is just as valid as `http://127.0.0.1:1111/flower.png`.

External images are differentiated from internal images by the presence of `http` at the beginning of their URL.

Fixes issue #36.
2023-05-10 21:21:49 -07:00
Heitor Pascoal de Bittencourt 491d7d061e
Automatically set link to RSS or ATOM feed
Set the <link > type to either `application/rss+xml` or
`application/atom+xml` according to the `feed_filename` from
`config.toml`.
2023-05-04 12:57:57 -03:00
Heitor Pascoal de Bittencourt b1148b47ef
macros:post: sort tags alphabetically
Sort tags alphabetically before displaying them.
2023-04-23 17:17:03 -03:00
Paweł Romanowski cfbcb940be Add the ability to include page titles in HTML title element 2023-01-28 13:15:03 +01:00
Pablo Martí Gamboa 5e4318ae64
Add extra_body block to index.html
This enables theme users to add HTML snippets to all the pages in the blog (like an analytics snippet).
2022-11-13 07:53:40 +01:00
Paweł Romanowski 40afc1f6c7
Merge pull request #23 from pablogamboa/patch-2
Render the favicon_mimetype with `| safe`
2022-11-10 11:55:42 +01:00
Paweł Romanowski c06e9232db
Merge pull request #24 from pawroman/fix-navigation-for-zola-0.16
Fix post navigation for Zola 0.16
2022-11-10 11:54:39 +01:00
Paweł Romanowski df24472ca3 Fix post navigation for Zola 0.16 2022-11-10 11:53:45 +01:00
Pablo Martí Gamboa fe5f5aea01
Render the favicon_mimetype with | safe
Otherwise it will be escaped!
2022-11-10 11:45:04 +01:00
Paweł Romanowski d8565d716c
Merge pull request #19 from BrightOpen/master
#14 fix menu
2022-11-10 11:44:16 +01:00
Pablo Martí Gamboa c2ecdad64d
Fix RSS generation
Since https://github.com/getzola/zola/blob/master/CHANGELOG.md#0110-2020-05-25, Zola renamed this option to config.generate_feed
2022-11-10 11:24:49 +01:00
Bright Open Jo ef8ff785a4 #14 fix menu 2022-06-24 01:00:23 +02:00
Paweł Romanowski 880b4bdb84
Merge pull request #7 from ipetkov/404
Add 404 page which fits the rest of the theme
2021-12-08 20:36:51 +01:00
Ivan Petkov 5cd633f92b
Make 404 content configurable 2021-12-08 09:41:07 -08:00
Ivan Petkov 3abbf9f7d2
Place the logo body inside of a logo_content block
* This will allow for customizing the logo contents with a template,
  which can be slightly more powerful than a static configuration value
2021-12-07 17:39:39 -08:00
Ivan Petkov b04b1f5951
Add 404 page which fits the rest of the theme
* Noting that (as of 0.14) zola does not pass much of a context when
  rendering the 404 page, so things like current URL/path aren't
  available
* To work around this the `menu` macro has been split into `menu_for`
  which accepts a parameter for which item is active.
* The previous macro continues to work as is, forwarding the results of
  figuring out which item is active to the new `menu_for` macro
* The added 404 page will then use the `menu_for` macro and pass in a
  blank item
2021-12-07 17:25:02 -08:00
Paweł Romanowski 1e013d81e4 Fix URL escapes in hrefs 2019-04-03 19:21:19 +02:00
Paweł Romanowski 01bce4ff04 Add shortcut rel to favicon link 2019-04-03 18:59:34 +02:00
Paweł Romanowski df84c55f4c Add favicon support 2019-04-01 17:25:45 +02:00
Paweł Romanowski 34047623ff Fix theme for Zola 0.6.0 2019-04-01 11:36:41 +02:00
Paweł Romanowski 0577f22e54 Skip draft pages in archive 2019-03-02 11:49:42 +00:00
Paweł Romanowski 582749d5e7 Fix typos, change button icons to be sans-serif 2019-02-05 22:13:39 +00:00
Paweł Romanowski 8688b5b87f Attempt to fix iOS emoji problem 2019-02-05 21:00:19 +00:00
Paweł Romanowski a1cbba7796 Improve current menu item detection 2019-02-05 20:32:00 +00:00
Paweł Romanowski 9f26ec2814 Fix tag view page 2019-02-05 19:36:13 +00:00
Paweł Romanowski 4623287652 Fix relative URL handling for posts 2019-02-05 19:21:59 +00:00
Paweł Romanowski 7653cfed54 Fix relative URL handling 2019-02-05 19:13:23 +00:00
Paweł Romanowski deee53f745 First public release 2019-02-05 18:27:02 +00:00