added xsl style to feed

This commit is contained in:
Gabriele Musco 2022-05-03 12:16:40 +02:00
parent a570911957
commit 7f1e272646
No known key found for this signature in database
GPG key ID: 0587A5D65B5DC99E
5 changed files with 97 additions and 1 deletions

View file

@ -0,0 +1,10 @@
{{/*
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 }}