Skip to content

Commit 03ce85e

Browse files
authored
Merge pull request #58 from pawroman/2023-12-fixes
Fix `show_only_description` breaking page rendering
2 parents 39d13a9 + d22b1e5 commit 03ce85e

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Example:
8686

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

89-
- **`caption`**
89+
- **`caption`** (supports markdown)
9090
- **`caption_position`** (center \[default\] | left | right)
9191
- **`caption_style`**
9292

@@ -97,8 +97,8 @@ Example:
9797
style="width: 25%;",
9898
position="right",
9999
caption_position="left",
100-
caption="Ferris, the (unofficial) Rust mascot",
101-
caption_style="font-weight: bold; font-style: italic;") }}
100+
caption="**Ferris**, the (unofficial) Rust mascot",
101+
caption_style="font-style: italic;") }}
102102
```
103103

104104
## OpenGraph

content/welcome-terminimal-theme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ figure(src="http://rustacean.net/assets/rustacean-flat-gesture.png",
7777
style="width: 25%;",
7878
position="center",
7979
caption_position="left",
80-
caption="Ferris, the (unofficial) Rust mascot",
80+
caption="**Ferris**, the (unofficial) Rust mascot",
8181
caption_style="font-weight: bold; font-style: italic;")
8282
```
8383

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

9191
---
9292

templates/macros/post.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
</a>
1616
</div>
1717
{% else %}
18+
{#- full content -#}
1819
<div class="post-content">
1920
{{ page.content | safe }}
2021
</div>

templates/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% block content %}
88
<div class="post">
99
{{ post_macros::header(page=page) }}
10-
{{ post_macros::content(page=page, summary=true, show_only_description=false) }}
10+
{{ post_macros::content(page=page, summary=false, show_only_description=false) }}
1111
{{ post_macros::earlier_later(page=page) }}
1212
</div>
1313
{% endblock content %}

0 commit comments

Comments
 (0)