Compare commits
14 commits
3c56f7a723
...
9185b10a81
Author | SHA1 | Date | |
---|---|---|---|
9185b10a81 | |||
d583017080 | |||
f6e05f4e65 | |||
cd671fc193 | |||
e2c7a20ae2 | |||
b72248919e | |||
3da2668a61 | |||
a9d9441c4a | |||
8c4c185ac5 | |||
e686fbc89b | |||
4565fba03e | |||
3cc3905552 | |||
3359f859f7 | |||
d4ff89ef02 |
18
README.md
18
README.md
|
@ -8,6 +8,7 @@
|
||||||
- [Options](#options)
|
- [Options](#options)
|
||||||
- [Top menu](#top-menu)
|
- [Top menu](#top-menu)
|
||||||
- [Title](#title)
|
- [Title](#title)
|
||||||
|
- [Author](#author)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
First download this theme to your `themes` directory:
|
First download this theme to your `themes` directory:
|
||||||
|
@ -65,6 +66,23 @@ 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`
|
element that the `title` field in the config represents, you can set the `after_dark_title`
|
||||||
instead.
|
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
|
### KaTeX math formula support
|
||||||
|
|
||||||
This theme contains math formula support using [KaTeX](https://katex.org/),
|
This theme contains math formula support using [KaTeX](https://katex.org/),
|
||||||
|
|
8
netlify.toml
Normal file
8
netlify.toml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[build]
|
||||||
|
command = "zola build"
|
||||||
|
|
||||||
|
[build.environment]
|
||||||
|
ZOLA_VERSION = "0.16.0"
|
||||||
|
|
||||||
|
[context.deploy-preview]
|
||||||
|
command = "zola build --base-url $DEPLOY_PRIME_URL"
|
|
@ -19,6 +19,11 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
line-height: 1.3em
|
line-height: 1.3em
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
|
@ -48,8 +48,7 @@
|
||||||
<a itemprop="url"
|
<a itemprop="url"
|
||||||
class="{% if item.url | replace(from="$BASE_URL", to=config.base_url) == current_url %}active{% endif %}"
|
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) }}">
|
href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">
|
||||||
<span itemprop="name">{{ item.name }}
|
<span itemprop="name">{{ item.name }}</span></a>
|
||||||
</span></a>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -19,7 +19,9 @@
|
||||||
<footer>
|
<footer>
|
||||||
<hr>
|
<hr>
|
||||||
<p>
|
<p>
|
||||||
{% if config.extra.author %}
|
{% if page.extra.author %}
|
||||||
|
Published by {{ page.extra.author }}
|
||||||
|
{% elif config.extra.author %}
|
||||||
Published by {{ config.extra.author }}
|
Published by {{ config.extra.author }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.taxonomies.categories %}
|
{% if page.taxonomies.categories %}
|
||||||
|
@ -27,7 +29,8 @@
|
||||||
in <a href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">{{ category }}</a>
|
in <a href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">{{ category }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.taxonomies.tags %}
|
{% if page.taxonomies.tags %}
|
||||||
and tagged
|
{% if page.taxonomies.categories %}and{% endif %}
|
||||||
|
tagged
|
||||||
{% for tag in page.taxonomies.tags %}
|
{% for tag in page.taxonomies.tags %}
|
||||||
<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">{{ tag }}</a>
|
<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">{{ tag }}</a>
|
||||||
{% if page.taxonomies.tags | length > 1 %}
|
{% if page.taxonomies.tags | length > 1 %}
|
||||||
|
@ -49,4 +52,3 @@
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue