Merge branch 'main' into 'main'
Make dates in post titles optional See merge request atgumx/no-style-please!5
This commit is contained in:
commit
0ec159c783
2 changed files with 7 additions and 1 deletions
|
@ -44,6 +44,12 @@ To enable listing of pages in homepage add the following in `config.toml`
|
||||||
list_pages = true
|
list_pages = true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you do not want the date of the post added next to the title in the list, add the following as well:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
no_list_date = true
|
||||||
|
```
|
||||||
|
|
||||||
### Header and footer nav links
|
### Header and footer nav links
|
||||||
|
|
||||||
Also in the `extra` section in `config.toml`
|
Also in the `extra` section in `config.toml`
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{% for page in pages %}
|
{% for page in pages %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ page.permalink | safe }}">{% if page.date %}{{ page.date }} - {% endif %}{{ page.title }}</a>
|
<a href="{{ page.permalink | safe }}">{% if page.date and not config.extra.no_list_date %}{{ page.date }} - {% endif %}{{ page.title }}</a>
|
||||||
<br />
|
<br />
|
||||||
{{ page.description }}
|
{{ page.description }}
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue