mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 11:45:26 +01:00 
			
		
		
		
	Merge pull request #26 from canaltinova/date-param
Add a way to change the date format with 'dateFormat' site param
This commit is contained in:
		| @@ -20,7 +20,7 @@ | |||||||
|    <p>{{ .Summary | plainify | htmlUnescape }}...</p> |    <p>{{ .Summary | plainify | htmlUnescape }}...</p> | ||||||
|   </section> |   </section> | ||||||
|   <footer class="entry-footer"> |   <footer class="entry-footer"> | ||||||
|     <time >{{ .Date.Format "2006.1.2" }}</time> |     <time>{{ .Date.Format (.Site.Params.dateFormat | default "2006.1.2") }}</time> | ||||||
|   </footer> |   </footer> | ||||||
|   <a class="entry-link" href="{{ .Permalink }}"></a> |   <a class="entry-link" href="{{ .Permalink }}"></a> | ||||||
| </article> | </article> | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ | |||||||
|     <div class="post-meta"> |     <div class="post-meta"> | ||||||
|       {{- if or .Params.author .Site.Params.author -}} |       {{- if or .Params.author .Site.Params.author -}} | ||||||
|       {{ .Params.author | default .Site.Params.author }} · {{ end }} |       {{ .Params.author | default .Site.Params.author }} · {{ end }} | ||||||
|       {{- .Date.Format "2006.1.2" -}} |       {{- .Date.Format (.Site.Params.dateFormat | default "2006.1.2") -}} | ||||||
|     </div> |     </div> | ||||||
|   </header> |   </header> | ||||||
|   <div class="post-content">{{ .Content }}</div> |   <div class="post-content">{{ .Content }}</div> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 南小北
					南小北