feat(config): add config for default theme light/dark

This commit is contained in:
Dillon
2020-02-08 22:19:22 +08:00
parent c5e64a9a61
commit 095089fb3f
5 changed files with 14 additions and 6 deletions

View File

@@ -269,7 +269,7 @@
</a>
{{- end -}}
{{- with .Site.Params.Social.Mastodon}}
{{ $MastodonPrefix := $.Site.Params.Social.MastodonPrefix | default "https://mastodon.social/" }}
{{- $MastodonPrefix := $.Site.Params.Social.MastodonPrefix | default "https://mastodon.social/" -}}
<a href="{{ $MastodonPrefix | safeURL }}{{ . }}" rel="me noopener noreffer" target="_blank">
<i class="fab fa-mastodon fa-fw" title="Mastodon"></i>
</a>