mirror of
				https://github.com/pawroman/zola-theme-terminimal.git
				synced 2025-10-30 23:56:15 +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
					
				
					 4 changed files with 8 additions and 7 deletions
				
			
		|  | @ -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`** | ||||
| 
 | ||||
|  | @ -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 | ||||
|  |  | |||
|  | @ -77,7 +77,7 @@ 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;") | ||||
| ``` | ||||
| 
 | ||||
|  | @ -85,8 +85,8 @@ 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;") }} | ||||
| 
 | ||||
| --- | ||||
| 
 | ||||
|  |  | |||
|  | @ -15,6 +15,7 @@ | |||
|             </a> | ||||
|         </div> | ||||
|     {% else %} | ||||
|         {#- full content -#} | ||||
|         <div class="post-content"> | ||||
|             {{ page.content | safe }} | ||||
|         </div> | ||||
|  |  | |||
|  | @ -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 %} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Paweł Romanowski
						Paweł Romanowski