edited post
This commit is contained in:
		
							parent
							
								
									eaeebd59ff
								
							
						
					
					
						commit
						d64eb2d82b
					
				| 
						 | 
				
			
			@ -1,31 +1,24 @@
 | 
			
		|||
{{- define "main" }}
 | 
			
		||||
 | 
			
		||||
<article class="post-single">
 | 
			
		||||
 | 
			
		||||
  <header class="post-header">
 | 
			
		||||
    {{ partial "breadcrumbs.html" . }}
 | 
			
		||||
    <h1 class="post-title">
 | 
			
		||||
      {{ .Title }}
 | 
			
		||||
      {{- if .Draft }}<sup><span class="entry-isdraft">  [draft]</span></sup>{{- end }}
 | 
			
		||||
    </h1>
 | 
			
		||||
    {{- if .Description }}
 | 
			
		||||
    <div class="post-description">
 | 
			
		||||
      {{ .Description }}
 | 
			
		||||
    </div>
 | 
			
		||||
    {{- end }}
 | 
			
		||||
    {{- if not (.Param "hideMeta") }}
 | 
			
		||||
 | 
			
		||||
    <div class="post-meta">
 | 
			
		||||
      {{- partial "post_meta.html" . -}}
 | 
			
		||||
      {{- partial "translation_list.html" . -}}
 | 
			
		||||
      {{- partial "edit_post.html" . -}}
 | 
			
		||||
      {{- partial "post_canonical.html" . -}}
 | 
			
		||||
      {{- $scratch := newScratch }}
 | 
			
		||||
        {{- if not .Date.IsZero -}}
 | 
			
		||||
        {{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }}
 | 
			
		||||
        {{- end }}
 | 
			
		||||
    </div>
 | 
			
		||||
    {{- end }}
 | 
			
		||||
  </header>
 | 
			
		||||
  {{- $isHidden := .Params.cover.hidden | default site.Params.cover.hiddenInSingle | default site.Params.cover.hidden }}
 | 
			
		||||
  {{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }}
 | 
			
		||||
  {{- if (.Param "ShowToc") }}
 | 
			
		||||
  {{- partial "toc.html" . }}
 | 
			
		||||
  {{- end }}
 | 
			
		||||
 | 
			
		||||
  {{- if .Content }}
 | 
			
		||||
  <div class="post-content">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue