mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-01-08 19:51:06 +01:00
Merge pull request #58 from pawroman/2023-12-fixes
Fix `show_only_description` breaking page rendering
This commit is contained in:
commit
03ce85ecba
|
@ -86,7 +86,7 @@ Example:
|
||||||
|
|
||||||
Same as `image`, but with a few extra optional arguments:
|
Same as `image`, but with a few extra optional arguments:
|
||||||
|
|
||||||
- **`caption`**
|
- **`caption`** (supports markdown)
|
||||||
- **`caption_position`** (center \[default\] | left | right)
|
- **`caption_position`** (center \[default\] | left | right)
|
||||||
- **`caption_style`**
|
- **`caption_style`**
|
||||||
|
|
||||||
|
@ -97,8 +97,8 @@ Example:
|
||||||
style="width: 25%;",
|
style="width: 25%;",
|
||||||
position="right",
|
position="right",
|
||||||
caption_position="left",
|
caption_position="left",
|
||||||
caption="Ferris, the (unofficial) Rust mascot",
|
caption="**Ferris**, the (unofficial) Rust mascot",
|
||||||
caption_style="font-weight: bold; font-style: italic;") }}
|
caption_style="font-style: italic;") }}
|
||||||
```
|
```
|
||||||
|
|
||||||
## OpenGraph
|
## OpenGraph
|
||||||
|
|
|
@ -77,7 +77,7 @@ figure(src="http://rustacean.net/assets/rustacean-flat-gesture.png",
|
||||||
style="width: 25%;",
|
style="width: 25%;",
|
||||||
position="center",
|
position="center",
|
||||||
caption_position="left",
|
caption_position="left",
|
||||||
caption="Ferris, the (unofficial) Rust mascot",
|
caption="**Ferris**, the (unofficial) Rust mascot",
|
||||||
caption_style="font-weight: bold; font-style: italic;")
|
caption_style="font-weight: bold; font-style: italic;")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -85,8 +85,8 @@ figure(src="http://rustacean.net/assets/rustacean-flat-gesture.png",
|
||||||
style="width: 25%;",
|
style="width: 25%;",
|
||||||
position="center",
|
position="center",
|
||||||
caption_position="left",
|
caption_position="left",
|
||||||
caption="Ferris, the (unofficial) Rust mascot",
|
caption="**Ferris**, the (unofficial) Rust mascot",
|
||||||
caption_style="font-weight: bold; font-style: italic;") }}
|
caption_style="font-style: italic;") }}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{#- full content -#}
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
{{ page.content | safe }}
|
{{ page.content | safe }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="post">
|
<div class="post">
|
||||||
{{ post_macros::header(page=page) }}
|
{{ post_macros::header(page=page) }}
|
||||||
{{ post_macros::content(page=page, summary=true, show_only_description=false) }}
|
{{ post_macros::content(page=page, summary=false, show_only_description=false) }}
|
||||||
{{ post_macros::earlier_later(page=page) }}
|
{{ post_macros::earlier_later(page=page) }}
|
||||||
</div>
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
Loading…
Reference in a new issue