Skip to content

Commit

Permalink
Merge pull request #58 from pawroman/2023-12-fixes
Browse files Browse the repository at this point in the history
Fix `show_only_description` breaking page rendering
  • Loading branch information
pawroman authored Dec 27, 2023
2 parents 39d13a9 + d22b1e5 commit 03ce85e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Example:

Same as `image`, but with a few extra optional arguments:

- **`caption`**
- **`caption`** (supports markdown)
- **`caption_position`** (center \[default\] | left | right)
- **`caption_style`**

Expand All @@ -97,8 +97,8 @@ Example:
style="width: 25%;",
position="right",
caption_position="left",
caption="Ferris, the (unofficial) Rust mascot",
caption_style="font-weight: bold; font-style: italic;") }}
caption="**Ferris**, the (unofficial) Rust mascot",
caption_style="font-style: italic;") }}
```

## OpenGraph
Expand Down
6 changes: 3 additions & 3 deletions content/welcome-terminimal-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@ figure(src="http://rustacean.net/assets/rustacean-flat-gesture.png",
style="width: 25%;",
position="center",
caption_position="left",
caption="Ferris, the (unofficial) Rust mascot",
caption="**Ferris**, the (unofficial) Rust mascot",
caption_style="font-weight: bold; font-style: italic;")
```

{{ figure(src="http://rustacean.net/assets/rustacean-flat-gesture.png",
style="width: 25%;",
position="center",
caption_position="left",
caption="Ferris, the (unofficial) Rust mascot",
caption_style="font-weight: bold; font-style: italic;") }}
caption="**Ferris**, the (unofficial) Rust mascot",
caption_style="font-style: italic;") }}

---

Expand Down
1 change: 1 addition & 0 deletions templates/macros/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</a>
</div>
{% else %}
{#- full content -#}
<div class="post-content">
{{ page.content | safe }}
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% block content %}
<div class="post">
{{ 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) }}
</div>
{% endblock content %}

0 comments on commit 03ce85e

Please sign in to comment.