|
|
@ -1,14 +1,14 @@ |
|
|
|
{{ define "main" }} |
|
|
|
{{ define "main" }} |
|
|
|
<main class="post"> |
|
|
|
<main class="post"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="post-info"> |
|
|
|
<div class="post-info"> |
|
|
|
{{ if .IsTranslated }} |
|
|
|
{{ if .IsTranslated }} |
|
|
|
{{ i18n "postAvailable" }} |
|
|
|
{{ i18n "postAvailable" }} |
|
|
|
{{ range .Translations }} |
|
|
|
{{ range .Translations }} |
|
|
|
<a href="{{ .Permalink }}"><span class="flag flag-icon flag-icon-{{ index $.Site.Data.langFlags (.Lang) }} flag-icon-squared"></span></a> |
|
|
|
<a href="{{ .Permalink }}"><span |
|
|
|
|
|
|
|
class="flag flag-icon flag-icon-{{ index $.Site.Data.langFlags (.Lang) }} flag-icon-squared"></span></a> |
|
|
|
{{ end}} |
|
|
|
{{ end}} |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<article> |
|
|
|
<article> |
|
|
@ -37,7 +37,12 @@ |
|
|
|
<div class="post-info"> |
|
|
|
<div class="post-info"> |
|
|
|
{{- with .Params.tags }} |
|
|
|
{{- with .Params.tags }} |
|
|
|
<p> |
|
|
|
<p> |
|
|
|
<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-tag meta-icon"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7" y2="7"></line></svg> |
|
|
|
<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-tag meta-icon"> |
|
|
|
|
|
|
|
<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path> |
|
|
|
|
|
|
|
<line x1="7" y1="7" x2="7" y2="7"></line> |
|
|
|
|
|
|
|
</svg> |
|
|
|
{{- range . -}} |
|
|
|
{{- range . -}} |
|
|
|
<span class="tag"><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">{{.}}</a></span> |
|
|
|
<span class="tag"><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">{{.}}</a></span> |
|
|
|
{{- end }} |
|
|
|
{{- end }} |
|
|
@ -45,8 +50,17 @@ |
|
|
|
{{- end }} |
|
|
|
{{- end }} |
|
|
|
|
|
|
|
|
|
|
|
{{- if .GitInfo }} |
|
|
|
{{- if .GitInfo }} |
|
|
|
<p><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-git-commit"><circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line></svg><a href="{{ .Site.Params.gitUrl -}}{{ .GitInfo.Hash }}" target="_blank" rel="noopener">{{ .GitInfo.AbbreviatedHash }}</a> @ {{ if .Site.Params.dateformNum }}{{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local }}{{ else }}{{ dateFormat "2006-01-02" .GitInfo.AuthorDate.Local }}{{ end }}</p> |
|
|
|
<p><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-git-commit"> |
|
|
|
|
|
|
|
<circle cx="12" cy="12" r="4"></circle> |
|
|
|
|
|
|
|
<line x1="1.05" y1="12" x2="7" y2="12"></line> |
|
|
|
|
|
|
|
<line x1="17.01" y1="12" x2="22.96" y2="12"></line> |
|
|
|
|
|
|
|
</svg><a href="{{ .Site.Params.gitUrl -}}{{ .GitInfo.Hash }}" target="_blank" |
|
|
|
|
|
|
|
rel="noopener">{{ .GitInfo.AbbreviatedHash }}</a> @ |
|
|
|
|
|
|
|
{{ if .Site.Params.dateformNum }}{{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local }}{{ else }}{{ dateFormat "2006-01-02" .GitInfo.AuthorDate.Local }}{{ end }} |
|
|
|
|
|
|
|
</p> |
|
|
|
{{- end }} |
|
|
|
{{- end }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</main> |
|
|
|
</main> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |