|
@@ -0,0 +1,37 @@
|
|
|
+{{ define "main" }}
|
|
|
+ <main class="wrapper">
|
|
|
+ <h1><a href="/" class="home">{{.Title}}</a></h1>
|
|
|
+ <ul class="lsn dim album-header">
|
|
|
+ {{ with .Params.location -}}
|
|
|
+ <li><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-map-pin"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>{{ . }}</li>
|
|
|
+ {{ end -}}
|
|
|
+ <li><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>{{ dateFormat ":date_long" .Date.Local }}</li>
|
|
|
+ {{ with .Params.shot_with -}}
|
|
|
+ <li><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-camera"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle></svg>{{ . }}</li>
|
|
|
+ {{ end -}}
|
|
|
+ {{ with .Params.description -}}
|
|
|
+ <li class="album-desc">{{ . }}</li>
|
|
|
+ {{ end -}}
|
|
|
+ </ul>
|
|
|
+ {{ if .Content -}}
|
|
|
+ <div class="content">
|
|
|
+ {{ .Content }}
|
|
|
+ </div>
|
|
|
+ {{- end }}
|
|
|
+ <ul class="lsn dim post-footer">
|
|
|
+ <li>发布于{{ dateFormat "2006-01-02 15:04 MST" .Date.UTC }},最后更新于{{ dateFormat "2006-01-02 15:04 MST" .Lastmod.UTC }}</li>
|
|
|
+ {{- with .Params.tags }}
|
|
|
+ <li>标 签:{{- range . -}}<a href="{{ "tags/" | relURL }}{{ . | urlize }}" class="post-tag">{{.}}</a>{{ end }}</li>
|
|
|
+ {{- end }}
|
|
|
+ <li></li>
|
|
|
+ {{- with .PrevInSection }}
|
|
|
+ <li>上一篇:<a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
|
+ {{- end }}
|
|
|
+ {{- with .NextInSection }}
|
|
|
+ <li>下一篇:<a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
|
+ {{- end }}
|
|
|
+ </ul>
|
|
|
+ {{ partialCached "comments.html" . }}
|
|
|
+ </main>
|
|
|
+ <hr>
|
|
|
+{{- end }}
|