mirror of
				https://github.com/ItsDrike/itsdrike.com.git
				synced 2025-11-04 12:16:37 +00:00 
			
		
		
		
	Show revision date if added
This commit is contained in:
		
							parent
							
								
									d405c24b4c
								
							
						
					
					
						commit
						61b1cffd15
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -5,6 +5,13 @@
 | 
			
		|||
 | 
			
		||||
{{ if .IsPage }}
 | 
			
		||||
  <p>{{ partial "content-details.html" . }}</p>
 | 
			
		||||
 | 
			
		||||
  <!-- When directly viewing the article, if available, we also include revision date-->
 | 
			
		||||
  {{ if and (not .Lastmod.IsZero) (not (.Lastmod.Equal .Date)) }}
 | 
			
		||||
    <span class="pr-2" title='{{ .Lastmod.Format "January 2 2006" }}'>
 | 
			
		||||
      <i class="pr-1 content-detail">Article revised in: {{ .Lastmod.Format "January 2 2006" }}</i>
 | 
			
		||||
    </span>
 | 
			
		||||
  {{ end }}
 | 
			
		||||
{{ end }}
 | 
			
		||||
 | 
			
		||||
{{ if .Content }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue