mirror of
https://github.com/ivabus/www
synced 2024-11-22 04:15:06 +03:00
Added partials to list.html
This commit is contained in:
parent
8b89f20d9d
commit
73a19b741b
2 changed files with 32 additions and 15 deletions
|
@ -2,4 +2,6 @@
|
|||
title: "Blog"
|
||||
description: "A collection of my thoughts, insights, and experiences."
|
||||
date: 2023-03-27
|
||||
menu: "main"
|
||||
weight: 5
|
||||
---
|
||||
|
|
|
@ -1,20 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ .Title }}</title>
|
||||
</head>
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
<span>{{ .Date.Format "2006-01-02" }}</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<a href="/">Back to home</a>
|
||||
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
<main style="height:100vh;">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
<span>{{ .Date.Format "2006-01-02" }}</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<a href="/">Back to home</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
{{- partial "footer-content.html" . -}}
|
||||
{{- partial "footer.html" . -}}
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue