Compare commits

..

3 commits

Author SHA1 Message Date
Jan Christian Grünhage 3c56f7a723 feat: add katex support 2021-08-13 11:51:20 +02:00
Jan Christian Gr??nhage 5f31463079 generate summary if it isn't present 2021-08-13 11:51:20 +02:00
Jan Christian Gr??nhage 71a75c7795 render content on landing page 2021-08-13 11:51:20 +02:00
5 changed files with 5 additions and 37 deletions

View file

@ -8,7 +8,6 @@
- [Options](#options)
- [Top menu](#top-menu)
- [Title](#title)
- [Author](#author)
## Installation
First download this theme to your `themes` directory:
@ -66,23 +65,6 @@ The site title is shown on the homepage. As it might be different from the `<tit
element that the `title` field in the config represents, you can set the `after_dark_title`
instead.
### Author
You can set this on a per page basis or in the config file.
`config.toml`:
```toml
[extra]
author = "John Smith"
```
In a page (wrap this in +++):
```toml
title = "..."
date = 1970-01-01
[extra]
author = "John Smith"
```
### KaTeX math formula support
This theme contains math formula support using [KaTeX](https://katex.org/),

View file

@ -1,8 +0,0 @@
[build]
command = "zola build"
[build.environment]
ZOLA_VERSION = "0.16.0"
[context.deploy-preview]
command = "zola build --base-url $DEPLOY_PRIME_URL"

View file

@ -19,11 +19,6 @@ h1, h2, h3, h4, h5, h6 {
line-height: 1.3em
}
img {
max-width: 100%;
height: auto;
}
fieldset {
border: none;
padding: 0;

View file

@ -48,7 +48,8 @@
<a itemprop="url"
class="{% if item.url | replace(from="$BASE_URL", to=config.base_url) == current_url %}active{% endif %}"
href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">
<span itemprop="name">{{ item.name }}</span></a>
<span itemprop="name">{{ item.name }}
</span></a>
{% endfor %}
</nav>
</header>

View file

@ -19,9 +19,7 @@
<footer>
<hr>
<p>
{% if page.extra.author %}
Published by {{ page.extra.author }}
{% elif config.extra.author %}
{% if config.extra.author %}
Published by {{ config.extra.author }}
{% endif %}
{% if page.taxonomies.categories %}
@ -29,8 +27,7 @@
in <a href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">{{ category }}</a>
{% endif %}
{% if page.taxonomies.tags %}
{% if page.taxonomies.categories %}and{% endif %}
tagged
and tagged
{% for tag in page.taxonomies.tags %}
<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">{{ tag }}</a>
{% if page.taxonomies.tags | length > 1 %}
@ -52,3 +49,4 @@
</article>
{% endblock content %}