Refactor exp into var
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
{{ $authors := partial "paige/func-authors.html" $page }}
|
{{ $authors := partial "paige/func-authors.html" $page }}
|
||||||
{{ $color := $page.Param `paige.site.color` | default `#0d6efd` }}
|
{{ $color := $page.Param `paige.site.color` | default `#0d6efd` }}
|
||||||
{{ $description := $page.Description | markdownify | plainify | htmlUnescape }}
|
{{ $description := $page.Description | markdownify | plainify | htmlUnescape }}
|
||||||
|
{{ $exists := fileExists "assets/browserconfig.xml" }}
|
||||||
{{ $keywords := partial "paige/func-keywords.html" $page }}
|
{{ $keywords := partial "paige/func-keywords.html" $page }}
|
||||||
|
|
||||||
{{ range $authors }}
|
{{ range $authors }}
|
||||||
@@ -28,7 +29,7 @@
|
|||||||
|
|
||||||
<meta content="{{ $color }}" name="msapplication-TileColor">
|
<meta content="{{ $color }}" name="msapplication-TileColor">
|
||||||
|
|
||||||
{{ if fileExists "assets/browserconfig.xml" }}
|
{{ if $exists }}
|
||||||
<meta content="{{ (resources.Get `browserconfig.xml` | resources.ExecuteAsTemplate `browserconfig.xml` .).RelPermalink }}" name="msapplication-config">
|
<meta content="{{ (resources.Get `browserconfig.xml` | resources.ExecuteAsTemplate `browserconfig.xml` .).RelPermalink }}" name="msapplication-config">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user