feat(home): add custom content for home page (#248)

This commit is contained in:
Dillon
2020-04-22 17:50:30 +08:00
committed by GitHub
parent a0ab272f7d
commit 3c38d54a87
20 changed files with 148 additions and 47 deletions

View File

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