feat: add social link for RSS and some configs (#250)

This commit is contained in:
Dillon
2020-04-22 23:58:40 +08:00
committed by GitHub
parent f5fb31ec43
commit 07b669c826
18 changed files with 199 additions and 67 deletions

View File

@@ -3,7 +3,7 @@
{{- else -}}
{{- $src := .source -}}
{{- $integrity := .integrity -}}
{{- if strings.HasPrefix $src "http" | or (strings.HasPrefix $src "//") | not -}}
{{- if (urls.Parse $src).Host | not -}}
{{- $res := resources.Get $src -}}
{{- with .template -}}
{{- $res = $res | resources.ExecuteAsTemplate . $.context -}}