mirror of
				https://github.com/adityatelange/hugo-PaperMod.git
				synced 2025-11-04 10:22:44 +01:00 
			
		
		
		
	fix(post_meta): add span tags for reading time, word count, and author metadata fix(edit_post): wrap edit link in a span for consistent styling
		
			
				
	
	
		
			11 lines
		
	
	
		
			692 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			692 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{{- if and (or .Params.editPost.URL site.Params.editPost.URL) (not (.Param "editPost.disabled")) -}}
 | 
						|
{{- $fileUrlPath := path.Join .File.Path }}
 | 
						|
 | 
						|
{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}}
 | 
						|
<span>
 | 
						|
    <a href="{{ .Params.editPost.URL | default site.Params.editPost.URL }}{{ if .Params.editPost.appendFilePath | default ( site.Params.editPost.appendFilePath | default false ) }}/{{ $fileUrlPath }}{{ end }}" rel="noopener noreferrer edit" target="_blank">
 | 
						|
        {{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}}
 | 
						|
    </a>
 | 
						|
</span>
 | 
						|
{{- end }}
 |