🎨 Finish archives page coding.
This commit is contained in:
36
layouts/partials/post/footer_meta/copyright.html
Normal file
36
layouts/partials/post/footer_meta/copyright.html
Normal file
@@ -0,0 +1,36 @@
|
||||
{{- if .Site.Params.creativeCommons.post }}
|
||||
<div class="post-copyright">
|
||||
<img src="/imgs/cc/cc.svg" width="75" height="75" align="right" />
|
||||
<ul>
|
||||
<li class="post-copyright-title">
|
||||
<strong>{{ print (T "PostCRTitle") (T "SymbolColon") }}</strong>
|
||||
{{ .Title }}
|
||||
</li>
|
||||
<li class="post-copyright-author">
|
||||
{{- if isset .Params "author" }}
|
||||
<strong>{{ print (T "PostCROriginAuthor") (T "SymbolColon") }} </strong>
|
||||
{{ .Params.Author }}
|
||||
{{- else }}
|
||||
<strong>{{ print (T "PostCRAuthor") (T "SymbolColon") }} </strong>
|
||||
{{ .Site.Params.author }}
|
||||
{{- end }}
|
||||
</li>
|
||||
<li class="post-copyright-link">
|
||||
{{- if isset .Params "originlink" }}
|
||||
<strong>{{ print (T "PostCROriginLink") (T "SymbolColon") }} </strong>
|
||||
<a target="_blank" href="{{ .Params.OriginLink }}" title="{{ .Title }}">{{ .Params.OriginLink }}</a>
|
||||
{{- else }}
|
||||
<strong>{{ print (T "PostCRLink") (T "SymbolColon") }}</strong>
|
||||
<a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Permalink }}</a>
|
||||
{{- end }}
|
||||
</li>
|
||||
<li class="post-copyright-license">
|
||||
<strong>{{ print (T "PostCRLicenseTitle") (T "SymbolColon") }} </strong>
|
||||
{{- $ccText := .Site.Params.creativeCommons.license | upper }}
|
||||
{{- $lang := .Scratch.Get "lang" }}
|
||||
{{- $ccLink := printf "<a target='_blank' href='https://creativecommons.org/licenses/by-nc-sa/4.0/deed.%s'>%s</a>" (substr $lang 0 2) $ccText }}
|
||||
{{ printf (T "PostCRLicenseContent") $ccLink | safeHTML }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{{- end }}
|
||||
21
layouts/partials/post/footer_meta/followme.html
Normal file
21
layouts/partials/post/footer_meta/followme.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- with .Site.Params.followMe }}
|
||||
<div class="followme">
|
||||
<span>{{ T "PostFollowMe" }}</span>
|
||||
<div class="social-list">
|
||||
{{ range . }}
|
||||
{{- $vals := split . "||" }}
|
||||
{{- $name := trim (index $vals 0) " " }}
|
||||
{{- $url := trim (index $vals 1) " " }}
|
||||
{{- $icon := trim (index $vals 2) " " }}
|
||||
<div class="social-item">
|
||||
<a target="_blank" class="social-link" href="{{ $url }}">
|
||||
<span class="icon">
|
||||
<i class="{{ $icon }}"></i>
|
||||
</span>
|
||||
<span class="label">{{ $name }}</span>
|
||||
</a>
|
||||
</div>
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
{{- end }}
|
||||
21
layouts/partials/post/footer_meta/reward.html
Normal file
21
layouts/partials/post/footer_meta/reward.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- with .Site.Params.rewardSets }}
|
||||
{{- if .enable }}
|
||||
<div class="reward-container">
|
||||
<div>{{- .comment | safeHTML -}}</div>
|
||||
<button>
|
||||
{{- T "RewardDonate" -}}
|
||||
</button>
|
||||
<div class="post-reward">
|
||||
{{- range $name,$img := $.Site.Params.reward }}
|
||||
{{- $fw := substr $name 0 1 }}
|
||||
{{- $pay := replace $name $fw ($fw | upper) 1 }}
|
||||
{{- $payName := T (printf "Reward%s" $pay) }}
|
||||
<div class="post-reward-item">
|
||||
<img src="{{ $img }}" alt="{{ $.Site.Params.author }} - {{ $payName }}">
|
||||
<span>{{ $payName }}</span>
|
||||
</div>
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
9
layouts/partials/post/footer_meta/tags.html
Normal file
9
layouts/partials/post/footer_meta/tags.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{- with .Params.tags }}
|
||||
{{- if gt (len .) 0 }}
|
||||
<div class="post-tags">
|
||||
{{ range . }}
|
||||
<a href="{{ . }}">{{ . }}</a>
|
||||
{{- end }}
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user