mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-31 10:03:30 -05:00 
			
		
		
		
	Update post-metadata to use a partial, and add word count
This commit is contained in:
		| @@ -3,35 +3,7 @@ | ||||
|         <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||||
|     </h2> | ||||
|  | ||||
|     {{ if or .Date (.GetTerms "tags") }} | ||||
|     <div class="post-metadata"> | ||||
|         {{ if .Date }} | ||||
|  | ||||
|         <span class="date"> | ||||
|             {{ partial "icon.html" "calendar" }} | ||||
|             <time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate> | ||||
|                 {{ .Date.Format "January 2, 2006" }} | ||||
|             </time> | ||||
|  | ||||
|             {{ if ne .Lastmod .Date }} | ||||
|             <time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate> | ||||
|                 (Modified {{ .Lastmod.Format "January 2, 2006" }}) | ||||
|             </time> | ||||
|             {{ end }} | ||||
|  | ||||
|             {{ end }} | ||||
|         </span> | ||||
|  | ||||
|         <span class="tags"> | ||||
|             {{ range (.GetTerms "tags") }} | ||||
|             <span class="tag"> | ||||
|                 {{ partial "icon.html" "tag" }} | ||||
|                 <a href="{{ .Permalink }}">{{ .LinkTitle }}</a> | ||||
|             </span> | ||||
|             {{ end }} | ||||
|         </span> | ||||
|     </div> | ||||
|     {{ end }} | ||||
|     {{ partial "post-metadata.html" . }} | ||||
|  | ||||
|     {{ with .Resources.GetMatch "feature" }} | ||||
|     {{ if eq .MediaType.MainType "image" }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user