🏗️ Finish post follow channel widget coding.
This commit is contained in:
21
layouts/partials/post/post_followme.html
Normal file
21
layouts/partials/post/post_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 }}
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user