1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-21 13:03:15 +00:00
This commit is contained in:
2026-01-12 18:08:52 +01:00
parent 55f4fd90ad
commit b5514e9e86
26 changed files with 1120 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.subtitle }}{{ end }}">
{{ partial "adsense/head.html" . }}
<link rel="stylesheet" href="{{ "css/main.css" | relURL }}">
</head>
<body>
<header class="site-header">
<div class="container header-grid">
<div>
<a class="brand" href="{{ "/" | relURL }}">{{ .Site.Title }}</a>
<p class="tagline">{{ .Site.Params.subtitle }}</p>
</div>
<nav>
<ul class="nav">
{{ range .Site.Menus.main }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
</nav>
</div>
</header>
<main class="container">
{{ block "main" . }}{{ end }}
</main>
<footer class="site-footer">
<div class="container footer-grid">
<p>Built with Hugo · {{ now.Format "2006-01-02" }}</p>
<p class="muted">Repo: <a href="https://github.com/alexandrev/xslt-lab">alexandrev/xslt-lab</a></p>
</div>
</footer>
</body>
</html>
+19
View File
@@ -0,0 +1,19 @@
{{ define "main" }}
<section class="page-header">
<p class="eyebrow">{{ .Section | title }}</p>
<h1>{{ .Title }}</h1>
{{ with .Description }}<p class="lead">{{ . }}</p>{{ end }}
</section>
<ul class="post-list spaced">
{{ range .Paginator.Pages }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
<span class="muted">{{ .Date.Format "02 Jan 2006" }}</span>
{{ with .Params.description }}<p class="muted">{{ . }}</p>{{ end }}
</li>
{{ end }}
</ul>
{{ template "_internal/pagination.html" . }}
{{ end }}
+13
View File
@@ -0,0 +1,13 @@
{{ define "main" }}
<article class="post">
<p class="eyebrow">{{ .Section | title }}</p>
<h1>{{ .Title }}</h1>
<p class="muted">{{ .Date.Format "02 Jan 2006" }}</p>
{{ with .Params.description }}<p class="lead">{{ . }}</p>{{ end }}
{{ partial "adsense/in-article.html" . }}
<div class="content">
{{ .Content }}
</div>
<p class="muted back-link"><a href="{{ .CurrentSection.RelPermalink }}">← Back to {{ .CurrentSection.Title }}</a></p>
</article>
{{ end }}