mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-28 16:53:30 -05:00 
			
		
		
		
	BREAKING: Only show date in lists if showdate is set to true in _index.md
				
					
				
			This commit is contained in:
		| @@ -8,9 +8,10 @@ | ||||
| <h1>{{ .Title | markdownify }}</h1> | ||||
| {{ end }} | ||||
| <ul> | ||||
|     {{ $showDate := .Params.showdate }} | ||||
|     {{ range .Pages }} | ||||
|     <li> | ||||
|         {{ if .Date }} | ||||
|         {{ if $showDate }} | ||||
|         <time datetime="{{ .Date.Format "2006-01-02" }}" pubdate> | ||||
|             {{ .Date.Format "2006-01-02" }} | ||||
|         </time> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user