mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	Add description to other layouts
- helps adding description to sub-sections, search, terms, archive pages
This commit is contained in:
		| @@ -2,6 +2,11 @@ | ||||
|  | ||||
| <header class="page-header"> | ||||
|   <h1>{{ .Title }}</h1> | ||||
|   {{- if .Description }} | ||||
|   <div class="post-description"> | ||||
|     {{ .Description }} | ||||
|   </div> | ||||
|   {{- end }} | ||||
| </header> | ||||
|  | ||||
| {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} | ||||
|   | ||||
| @@ -7,6 +7,11 @@ | ||||
| {{- if not .IsHome | and .Title }} | ||||
| <header class="page-header"> | ||||
|   <h1>{{ .Title }}</h1> | ||||
|   {{- if .Description }} | ||||
|   <div class="post-description"> | ||||
|     {{ .Description }} | ||||
|   </div> | ||||
|   {{- end }} | ||||
| </header> | ||||
| {{- end }} | ||||
|  | ||||
|   | ||||
| @@ -8,6 +8,11 @@ | ||||
|             <line x1="21" y1="21" x2="16.65" y2="16.65"></line> | ||||
|         </svg> | ||||
|     </h1> | ||||
|     {{- if .Description }} | ||||
|     <div class="post-description"> | ||||
|         {{ .Description }} | ||||
|     </div> | ||||
|     {{- end }} | ||||
|     {{- if not (.Param "hideMeta") }} | ||||
|     <div class="post-meta"> | ||||
|         {{- if .IsTranslated -}} | ||||
|   | ||||
| @@ -3,6 +3,11 @@ | ||||
| {{- if .Title }} | ||||
| <header class="page-header"> | ||||
|     <h1>{{ .Title }}</h1> | ||||
|     {{- if .Description }} | ||||
|     <div class="post-description"> | ||||
|         {{ .Description }} | ||||
|     </div> | ||||
|     {{- end }} | ||||
| </header> | ||||
| {{- end }} | ||||
|  | ||||
| @@ -19,4 +24,4 @@ | ||||
|     {{- end }} | ||||
| </ul> | ||||
|  | ||||
| {{ end  }}{{/* end main */}} | ||||
| {{ end  }}{{/* end main */}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange