Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
9a7716ef43
@ -34,6 +34,12 @@ url = "https://twitter.com/%s"
|
|||||||
title = "Twitter"
|
title = "Twitter"
|
||||||
icon = "fab fa-twitter"
|
icon = "fab fa-twitter"
|
||||||
|
|
||||||
|
[[social_icons]]
|
||||||
|
id = "slack"
|
||||||
|
url = "https://%s.slack.com/"
|
||||||
|
title = "Slack"
|
||||||
|
icon = "fab fa-slack"
|
||||||
|
|
||||||
[[social_icons]]
|
[[social_icons]]
|
||||||
id = "reddit"
|
id = "reddit"
|
||||||
url = "https://reddit.com/u/%s"
|
url = "https://reddit.com/u/%s"
|
||||||
|
@ -68,8 +68,9 @@ pygmentsCodefencesGuessSyntax = true
|
|||||||
paypal = "username"
|
paypal = "username"
|
||||||
telegram = "username"
|
telegram = "username"
|
||||||
500px = "username"
|
500px = "username"
|
||||||
weibo = "username"
|
|
||||||
mastodon = "url"
|
mastodon = "url"
|
||||||
|
weibo = "username"
|
||||||
|
slack = "username"
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Blog"
|
name = "Blog"
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
{{ block "header" . }}{{ partial "header.html" . }}{{ end }}
|
{{ block "header" . }}{{ partial "header.html" . }}{{ end }}
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
|
{{ block "footer" . }}{{ end }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
@ -23,14 +23,19 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.showRelatedPosts }}
|
{{ if .Site.Params.showRelatedPosts }}
|
||||||
{{ $related := .Site.RegularPages.Related . | first 3 }}
|
{{ range first 1 (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
||||||
{{ with $related }}
|
{{ $.Scratch.Set "has_related" true }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if $.Scratch.Get "has_related" }}
|
||||||
<h4 class="see-also">{{ i18n "seeAlso" }}</h4>
|
<h4 class="see-also">{{ i18n "seeAlso" }}</h4>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range . }}
|
{{ $num_to_show := .Site.Params.related_content_limit | default 5 }}
|
||||||
|
{{ range first $num_to_show (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
||||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
|
Loading…
Reference in New Issue
Block a user