Merge pull request #58 from pawroman/2023-12-fixes

Fix `show_only_description` breaking page rendering
This commit is contained in:
Paweł Romanowski 2023-12-27 12:07:36 +01:00 committed by GitHub
commit 03ce85ecba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 7 deletions

View file

@ -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

View file

@ -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;") }}
--- ---

View file

@ -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>

View file

@ -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 %}