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"> | <header class="page-header"> | ||||||
|   <h1>{{ .Title }}</h1> |   <h1>{{ .Title }}</h1> | ||||||
|  |   {{- if .Description }} | ||||||
|  |   <div class="post-description"> | ||||||
|  |     {{ .Description }} | ||||||
|  |   </div> | ||||||
|  |   {{- end }} | ||||||
| </header> | </header> | ||||||
|  |  | ||||||
| {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} | {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} | ||||||
|   | |||||||
| @@ -7,6 +7,11 @@ | |||||||
| {{- if not .IsHome | and .Title }} | {{- if not .IsHome | and .Title }} | ||||||
| <header class="page-header"> | <header class="page-header"> | ||||||
|   <h1>{{ .Title }}</h1> |   <h1>{{ .Title }}</h1> | ||||||
|  |   {{- if .Description }} | ||||||
|  |   <div class="post-description"> | ||||||
|  |     {{ .Description }} | ||||||
|  |   </div> | ||||||
|  |   {{- end }} | ||||||
| </header> | </header> | ||||||
| {{- end }} | {{- end }} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -8,6 +8,11 @@ | |||||||
|             <line x1="21" y1="21" x2="16.65" y2="16.65"></line> |             <line x1="21" y1="21" x2="16.65" y2="16.65"></line> | ||||||
|         </svg> |         </svg> | ||||||
|     </h1> |     </h1> | ||||||
|  |     {{- if .Description }} | ||||||
|  |     <div class="post-description"> | ||||||
|  |         {{ .Description }} | ||||||
|  |     </div> | ||||||
|  |     {{- end }} | ||||||
|     {{- if not (.Param "hideMeta") }} |     {{- if not (.Param "hideMeta") }} | ||||||
|     <div class="post-meta"> |     <div class="post-meta"> | ||||||
|         {{- if .IsTranslated -}} |         {{- if .IsTranslated -}} | ||||||
|   | |||||||
| @@ -3,6 +3,11 @@ | |||||||
| {{- if .Title }} | {{- if .Title }} | ||||||
| <header class="page-header"> | <header class="page-header"> | ||||||
|     <h1>{{ .Title }}</h1> |     <h1>{{ .Title }}</h1> | ||||||
|  |     {{- if .Description }} | ||||||
|  |     <div class="post-description"> | ||||||
|  |         {{ .Description }} | ||||||
|  |     </div> | ||||||
|  |     {{- end }} | ||||||
| </header> | </header> | ||||||
| {{- end }} | {{- end }} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange