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

footer.html « components « article « partials « layouts - github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7f428702f9e96a0f3dc048582cc727ec1f16acca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<footer class="article-footer">
    {{ partial "article/components/tags" . }}

    {{ if and (.Site.Params.article.license.enabled) (not (eq .Params.license false)) }}
    <section class="article-copyright">
        {{ (resources.Get "icons/copyright.svg").Content | safeHTML }}
        <span>{{ default .Site.Params.article.license.default .Params.license }}</span>
    </section>
    {{ end }}

    {{- if ne .Lastmod .Date -}}
    <section class="article-time">
        {{ (resources.Get "icons/clock.svg").Content | safeHTML }}
        <span class="article-time--modified">
            {{ T "lastUpdatedOn" }} {{ .Lastmod.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }}
        </span>
    </section>
    {{- end -}}
</footer>