mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-04-20 15:27:10 +02:00
Compare commits
1 commit
ec2fe73ec8
...
3abae6b153
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3abae6b153 |
41
README.md
41
README.md
|
@ -1,3 +1,4 @@
|
||||||
|
<!-- omit from toc -->
|
||||||
# Terminimal
|
# Terminimal
|
||||||
|
|
||||||
[](https://github.com/pawroman/zola-theme-terminimal/actions/workflows/pages/pages-build-deployment)
|
[](https://github.com/pawroman/zola-theme-terminimal/actions/workflows/pages/pages-build-deployment)
|
||||||
|
@ -8,10 +9,9 @@
|
||||||
See the live demo (of the default configuration) here:
|
See the live demo (of the default configuration) here:
|
||||||
https://pawroman.github.io/zola-theme-terminimal/
|
https://pawroman.github.io/zola-theme-terminimal/
|
||||||
|
|
||||||
Tested with Zola v0.19.2.
|
Tested with Zola v0.17.2. Please note that earlier versions might not work because of breaking changes across Zola versions.
|
||||||
|
|
||||||
Please note that earlier (and older) versions might not work because of breaking changes across Zola versions.
|
|
||||||
|
|
||||||
|
<!-- omit from toc -->
|
||||||
#### Fork disclaimer
|
#### Fork disclaimer
|
||||||
|
|
||||||
This theme is a fork (not a port) of "Terminal" Hugo theme
|
This theme is a fork (not a port) of "Terminal" Hugo theme
|
||||||
|
@ -23,6 +23,37 @@ Many thanks for that outstanding original theme, Radek!
|
||||||
For more information about this fork and the differences to the original theme, please see:
|
For more information about this fork and the differences to the original theme, please see:
|
||||||
[Changes compared to the original theme](#changes-compared-to-the-original-theme) below.
|
[Changes compared to the original theme](#changes-compared-to-the-original-theme) below.
|
||||||
|
|
||||||
|
<!-- omit from toc -->
|
||||||
|
## Table of contents
|
||||||
|
|
||||||
|
- [Versioning](#versioning)
|
||||||
|
- [How to start](#how-to-start)
|
||||||
|
- [Shortcodes](#shortcodes)
|
||||||
|
- [`image`](#image)
|
||||||
|
- [`figure`](#figure)
|
||||||
|
- [Features](#features)
|
||||||
|
- [OpenGraph](#opengraph)
|
||||||
|
- [Mastodon](#mastodon)
|
||||||
|
- [Configuration](#configuration)
|
||||||
|
- [Only show the post's description](#only-show-the-posts-description)
|
||||||
|
- [Colors](#colors)
|
||||||
|
- [Logo text and link](#logo-text-and-link)
|
||||||
|
- [Author and copyright](#author-and-copyright)
|
||||||
|
- [Menu](#menu)
|
||||||
|
- [Tags](#tags)
|
||||||
|
- [Pagination](#pagination)
|
||||||
|
- [Language code](#language-code)
|
||||||
|
- [Hack font subset](#hack-font-subset)
|
||||||
|
- [Favicon](#favicon)
|
||||||
|
- [Page titles](#page-titles)
|
||||||
|
- [Extending](#extending)
|
||||||
|
- [How to contribute](#how-to-contribute)
|
||||||
|
- [Changes compared to the original theme](#changes-compared-to-the-original-theme)
|
||||||
|
- [New features](#new-features)
|
||||||
|
- [Features retained from the original](#features-retained-from-the-original)
|
||||||
|
- [License](#license)
|
||||||
|
|
||||||
|
|
||||||
## Versioning
|
## Versioning
|
||||||
|
|
||||||
This theme used to be non-versioned, e.g. you'd pull the master branch, and occasionally new features or fixes would
|
This theme used to be non-versioned, e.g. you'd pull the master branch, and occasionally new features or fixes would
|
||||||
|
@ -130,7 +161,7 @@ the following to your `config.toml`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[extra]
|
[extra]
|
||||||
mastodon_url = "https://hachyderm.io/@my_username_here"
|
mastodon_url = "https://hachyderm.io/@opeik"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
@ -440,3 +471,5 @@ for more information.
|
||||||
|
|
||||||
The license for Hack fonts used is included in
|
The license for Hack fonts used is included in
|
||||||
[LICENSE-Hack.md](../master/LICENSE-Hack.md).
|
[LICENSE-Hack.md](../master/LICENSE-Hack.md).
|
||||||
|
|
||||||
|
[utterances]: https://utteranc.es/
|
||||||
|
|
|
@ -6,10 +6,10 @@ title = "Zola Terminimal theme"
|
||||||
compile_sass = true
|
compile_sass = true
|
||||||
|
|
||||||
# The theme supports feeds (RSS and ATOM)
|
# The theme supports feeds (RSS and ATOM)
|
||||||
generate_feeds = true
|
generate_feed = true
|
||||||
|
|
||||||
# Use `rss.xml` for RSS feeds and `atom.xml` for ATOM.
|
# Use `rss.xml` for RSS feeds and `atom.xml` for ATOM.
|
||||||
feed_filenames = ["rss.xml", "atom.xml"]
|
feed_filename = "atom.xml"
|
||||||
|
|
||||||
# Optional: enable tags
|
# Optional: enable tags
|
||||||
taxonomies = [
|
taxonomies = [
|
||||||
|
|
|
@ -13,18 +13,14 @@
|
||||||
|
|
||||||
{%- block open_graph %}{{ head_macros::open_graph(config=config) }}{% endblock open_graph -%}
|
{%- block open_graph %}{{ head_macros::open_graph(config=config) }}{% endblock open_graph -%}
|
||||||
|
|
||||||
{%- if config.generate_feeds %}
|
{%- if config.generate_feed %}
|
||||||
{%- for feed in config.feed_filenames %}
|
{%- if "rss" in config.feed_filename %}
|
||||||
{%- if feed is containing('atom') %}
|
{% set feed_type = 'rss+xml' %}
|
||||||
<link rel="alternate" type="application/atom+xml" title="{{ config.title }} Atom Feed" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" />
|
{%- else %}
|
||||||
{%- endif %}
|
{% set feed_type = 'atom+xml' %}
|
||||||
|
{% endif -%}
|
||||||
{%- if feed is containing('rss') %}
|
<link rel="alternate" type="application/{{ feed_type }}" title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}">
|
||||||
<link rel="alternate" type="application/rss+xml" title="{{ config.title }} RSS Feed" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" />
|
{% endif -%}
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
{%- endfor %}
|
|
||||||
{%- endif -%}
|
|
||||||
|
|
||||||
{%- if config.extra.favicon %}
|
{%- if config.extra.favicon %}
|
||||||
<link rel="shortcut icon" type="{{ config.extra.favicon_mimetype | default(value="image/x-icon") | safe }}" href="{{ config.extra.favicon | safe }}">
|
<link rel="shortcut icon" type="{{ config.extra.favicon_mimetype | default(value="image/x-icon") | safe }}" href="{{ config.extra.favicon | safe }}">
|
||||||
|
|
Loading…
Reference in a new issue