Add more theme stuff, add a smidge of content
This commit is contained in:
@@ -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>
|
||||
5
themes/kitsune-theme/layouts/index.html
Normal file
5
themes/kitsune-theme/layouts/index.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<div id="home-jumbotron" class="jumbotron text-center">
|
||||
<h1 class="title">{{ .Site.Title }}</h1>
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -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" . }}
|
||||
@@ -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>
|
||||
11
themes/kitsune-theme/layouts/partials/metadata.html
Normal file
11
themes/kitsune-theme/layouts/partials/metadata.html
Normal 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 }}
|
||||
6
themes/kitsune-theme/layouts/partials/script.html
Normal file
6
themes/kitsune-theme/layouts/partials/script.html
Normal 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> */}}
|
||||
1
themes/kitsune-theme/static/css/bootstrap
Submodule
1
themes/kitsune-theme/static/css/bootstrap
Submodule
Submodule themes/kitsune-theme/static/css/bootstrap added at 3083596e87
1
themes/kitsune-theme/static/js/feather
Submodule
1
themes/kitsune-theme/static/js/feather
Submodule
Submodule themes/kitsune-theme/static/js/feather added at 1b002399e8
Reference in New Issue
Block a user