🏗️ Finish post follow channel widget coding.

This commit is contained in:
凡梦星尘
2022-06-04 11:03:09 +08:00
parent 6c362cf117
commit df06c05c4e
7 changed files with 35 additions and 5 deletions

View 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 }}

View File

@@ -10,6 +10,7 @@
<div class="post-eof"></div>
{{- else }}
{{ partial "post/post_copyright.html" . }}
{{ partial "post/post_followme.html" . }}
<div class="post-nav">
<div class="post-nav-next post-nav-item">
{{- with .NextInSection }}