blog/themes/ficurinia/layouts/partials/build_assets.html
2023-04-29 16:12:36 +02:00

11 lines
442 B
HTML

{{/*
This partial builds non-standard assets (like xsl files) with the template
engine. It is necessary to do it this way to reduce user friction and
ensure that the file is there.
*/}}
{{ if .IsHome }}
{{ $feed_style_xsl_template := resources.Get "feed_style.xsl" }}
{{ $feed_style_xsl := $feed_style_xsl_template | resources.ExecuteAsTemplate "feed_style.xsl" . }}
{{ $noop := $feed_style_xsl.Permalink }}
{{ end }}