Compare commits
3 commits
9185b10a81
...
3c56f7a723
Author | SHA1 | Date | |
---|---|---|---|
3c56f7a723 | |||
5f31463079 | |||
71a75c7795 |
18
README.md
18
README.md
|
@ -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/),
|
||||
|
|
|
@ -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"
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue