mirror of
https://github.com/trwnh/hugo-theme-paradox.git
synced 2024-11-24 10:21:21 +00:00
26 lines
1.1 KiB
HTML
26 lines
1.1 KiB
HTML
{{ define "main" }}
|
|
<main>
|
|
<article class="page">
|
|
<header class="section page-header">
|
|
<div class="container">
|
|
<h1 class="page-title">{{ .Title }}</h1>
|
|
<p class="page-summary">{{.Summary}}</p>
|
|
{{ partial "i18nlist.html" . }}
|
|
</div>
|
|
</header>
|
|
<aside class="toc section">
|
|
<div class="container">
|
|
<p class="toc-title">Page outline</p>
|
|
{{ .TableOfContents }}
|
|
</div>
|
|
</aside>
|
|
<section class="content section">
|
|
<div class="container">
|
|
{{ .Content }}
|
|
<p class="lastmod">Last modified <datetime class="date"><span class="edit-link">{{ .Lastmod.Format "Mon Jan 2, 2006" }}</datetime> - <a href='{{if eq .Site.Params.forge "github"}}{{printf "https://github.com/%s/edit/%s/%s/%s" .Site.Params.repo .Site.Params.branch .Site.Language.ContentDir .File.Path}}{{else if eq .Site.Params.forge "gitea"}}{{printf "%s/%s/_edit/%s/%s/%s" .Site.Params.forgeUrl .Site.Params.repo .Site.Params.branch (cond (isset .Site.Language "ContentDir") .Site.Language.ContentDir "content") .File.Path}}{{else}}#{{end}}'>Edit this page</a></span></p>
|
|
</div>
|
|
</section>
|
|
</article>
|
|
</main>
|
|
{{ end }}
|