Add more theme stuff, add a smidge of content

This commit is contained in:
2024-08-08 11:07:08 -04:00
parent 80c987ca91
commit e6340a906b
1138 changed files with 194811 additions and 5 deletions

View File

@@ -1,8 +1,10 @@
<!DOCTYPE html>
<html lang="{{ or site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
<head>
{{ partial "head.html" . }}
</head>
<body>
<header>
{{ partial "header.html" . }}
@@ -12,6 +14,9 @@
</main>
<footer>
{{ partial "footer.html" . }}
<!-- Script inclusion in partials/script.html -->
{{- partial "script.html" . -}}
</footer>
</body>
</html>
</html>

View File

@@ -0,0 +1,5 @@
{{ define "main" }}
<div id="home-jumbotron" class="jumbotron text-center">
<h1 class="title">{{ .Site.Title }}</h1>
</div>
{{ end }}

View File

@@ -1,5 +1,10 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
<!-- We're including bootstrap from a gitmodule, should be able to load it here -->
<link rel="stylesheet" type="text/css" href="/css/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/style.css">
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}
{{ partialCached "head/js.html" . }}

View File

@@ -1,2 +1,19 @@
{{/* <h1>{{ site.Title }}</h1>
{{ partial "menu.html" (dict "menuID" "main" "page" .) }} */}}
<h1>{{ site.Title }}</h1>
{{ partial "menu.html" (dict "menuID" "main" "page" .) }}
<div id="nav-border" class="container">
<nav id="nav" class="nav justify-content-center">
{{ range .Site.Menus.main }}
<a class="nav-link" href="{{ .URL }}">
{{ if .Pre }}
{{ $icon := printf "<i data-feather=\"%s\"></i> " .Pre | safeHTML }}
{{ $icon }}
{{ end }}
{{ $text := print .Name | safeHTML }}
{{ $text }}
</a>
{{ end }}
</nav>
</div>

View File

@@ -0,0 +1,11 @@
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
<i data-feather="calendar"></i>
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
{{ with .Params.tags }}
<i data-feather="tag"></i>
{{ range . }}
{{ $href := print (absURL "tags/") (urlize .) }}
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
{{ end }}
{{ end }}

View File

@@ -0,0 +1,6 @@
{{/* We're using feather.js for the icons, its a submodule located at themes/kitsune-theme/static/js/feather */}}
{{/*
<script src="/js/feather.min.js"></script>
<script>
feather.replace()
</script> */}}