Layouts: Remove date from taxonomy templates
Do not show dates on pages where .IsNode is true, rather than using .IsSection. Apparently taxonomy pages are nodes, but are not sections.
This commit is contained in:
		
							parent
							
								
									c1456a6ee2
								
							
						
					
					
						commit
						000353f339
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -4,7 +4,7 @@
 | 
				
			||||||
  <p class="page-header__subtitle">{{ . | markdownify }}</p>
 | 
					  <p class="page-header__subtitle">{{ . | markdownify }}</p>
 | 
				
			||||||
{{- end }}
 | 
					{{- end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{ if not .page.IsSection }}
 | 
					{{ if not .page.IsNode }}
 | 
				
			||||||
  {{- with .page.Date -}}
 | 
					  {{- with .page.Date -}}
 | 
				
			||||||
    <time class="page-date" datetime="{{ . | time.Format "2006-01-02" }}">
 | 
					    <time class="page-date" datetime="{{ . | time.Format "2006-01-02" }}">
 | 
				
			||||||
      {{- . | time.Format "January 02, 2006" -}}
 | 
					      {{- . | time.Format "January 02, 2006" -}}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue