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