Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base.tpl.xml « xml « assets - github.com/de-souza/hugo-flex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: abcb2821abb3bf0cc784e4ef25b8553a78e47f1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{{ safeHTML `<?xml version="1.0" encoding="utf-8" ?>` }}
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" doctype-system="about:legacy-compat" />
  <xsl:template match="/rss/channel">
    <html lang="{{ site.LanguageCode }}">
      <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        {{ hugo.Generator }}
        <title><xsl:value-of select="title" /></title>
        {{ $site_css := (.Scratch.Get "css").base }}
        <link rel="stylesheet" href="{{ $site_css.Permalink }}" integrity="{{ $site_css.Data.Integrity }}" />
      </head>
      <body>
        {{ partialCached "banner.html" . }}
        <main>
          <div class="u-wrapper">
            <div class="u-padding">
              <h2 class="Heading-title">
                <a class="Heading-link u-clickable" href="{link}" rel="bookmark"><xsl:value-of select="title" /></a>
              </h2>
              {{ with site.Params.rss }}
                <p>
                  {{ safeHTML . }}
                </p>
              {{ end }}
            </div>
          </div>
        </main>
        {{ partialCached "footer.html" . }}
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>