Add more hugo templates
This commit is contained in:
39
hugo/layouts/_default/baseof.html
Normal file
39
hugo/layouts/_default/baseof.html
Normal file
@ -0,0 +1,39 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' data: ;">
|
||||
<title>
|
||||
{{ block "title" . }}
|
||||
{{ .Site.Title }}
|
||||
{{ end }}
|
||||
</title>
|
||||
|
||||
<!-- Diable favicon requests: https://stackoverflow.com/a/13416784 -->
|
||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||
<link href="/assets/bootstrap.min.css" rel="stylesheet" >
|
||||
|
||||
<script src="/assets/bootstrap.min.js" defer></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<nav>
|
||||
<ul class="nav">
|
||||
<li class="nav-item"><a class="nav-link" href="/"> Home </a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="https://blog.balki.me"> Blog </a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/stuff.html"> Stuff </a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="https://gitea.balki.me/balki/blog"> Source </a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<div class="container" >
|
||||
<main>
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
9
hugo/layouts/_default/list.html
Normal file
9
hugo/layouts/_default/list.html
Normal file
@ -0,0 +1,9 @@
|
||||
{{ define "main" }}
|
||||
<h1>Posts</h1>
|
||||
{{ range .Pages }}
|
||||
<article>
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
9
hugo/layouts/_default/single.html
Normal file
9
hugo/layouts/_default/single.html
Normal file
@ -0,0 +1,9 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }} – {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
||||
|
Reference in New Issue
Block a user