add breadcrumbs
This commit is contained in:
parent
7db06ee4d0
commit
8800115b41
9 changed files with 60 additions and 26 deletions
|
@ -1,10 +1,14 @@
|
||||||
---
|
---
|
||||||
title: "home"
|
title: "home"
|
||||||
|
|
||||||
description: "taco's furry trash receptable"
|
description: "taco's furry trash receptable"
|
||||||
---
|
---
|
||||||
|
|
||||||
Nothing here yet but us birds!
|
i'm busy setting everything up still. sorry for the mess.
|
||||||
|
trust me, it'll look better soon.
|
||||||
|
|
||||||
|
## things you can look at for now:
|
||||||
|
|
||||||
|
* [characters](characters)
|
||||||
|
|
||||||
( ' v ' )
|
( ' v ' )
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
.crumbs
|
||||||
|
li
|
||||||
|
display: inline
|
||||||
|
|
||||||
|
footer
|
||||||
|
text-align: center
|
||||||
|
margin: 2vh auto auto auto
|
|
@ -1,3 +1,9 @@
|
||||||
body
|
body
|
||||||
background: #151515
|
background: #151515
|
||||||
color: #eeeeee
|
color: #eeeeee
|
||||||
|
a
|
||||||
|
color: #33ff33
|
||||||
|
&:hover
|
||||||
|
color: Orange
|
||||||
|
&:visited
|
||||||
|
color: #33ff33
|
||||||
|
|
|
@ -1,18 +1,11 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<main>
|
<main>
|
||||||
<article>
|
|
||||||
<header>
|
|
||||||
<h1>{{.Title}}</h1>
|
|
||||||
</header>
|
|
||||||
{{.Content}}
|
|
||||||
</article>
|
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{.Permalink}}"><h3 >{{.Name}}</h3> </a>
|
<a href="{{.Permalink}}">
|
||||||
|
<h3>{{.Name}}</h3></a>
|
||||||
<p>{{.Description}}</p>
|
<p>{{.Description}}</p>
|
||||||
</li>
|
</li>{{ end }}
|
||||||
{{ end }}
|
|
||||||
</ul>
|
</ul>
|
||||||
</main>
|
</main>{{ end }}
|
||||||
{{ end }}
|
|
||||||
|
|
8
themes/birdspace/layouts/characters/single.html
Normal file
8
themes/birdspace/layouts/characters/single.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<section id="main">
|
||||||
|
<div>
|
||||||
|
<article id="content">
|
||||||
|
{{ .Content }}
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
</section>{{ end }}
|
9
themes/birdspace/layouts/partials/crumbs.html
Normal file
9
themes/birdspace/layouts/partials/crumbs.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<ol class="crumbs">
|
||||||
|
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
||||||
|
</ol>{{ define "breadcrumbnav" }} {{ if .p1.Parent }} {{ template
|
||||||
|
"breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }} {{ else if not
|
||||||
|
.p1.IsHome }} {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home
|
||||||
|
"p2" .p2 ) }} {{ end }}
|
||||||
|
<li if="" eq="" class="active" end="">
|
||||||
|
<a href="{{.p1.Permalink}}">{{ lower .p1.Title }}</a>
|
||||||
|
</li>{{ end }}
|
|
@ -0,0 +1,7 @@
|
||||||
|
<footer>
|
||||||
|
content © 2022 <a href=
|
||||||
|
"https://twitter.com/chirpbirb">@chirpbirb</a> ● <a href=
|
||||||
|
"http://gitlab.com/takouhai/bird" target="_blank">source</a> ●
|
||||||
|
<a href="https://bird.tacowolf.net" target="_blank">made by
|
||||||
|
taco 🌮</a>
|
||||||
|
</footer>
|
|
@ -1,11 +1,7 @@
|
||||||
<head>
|
{{ template "_internal/opengraph.html" . }} {{ template
|
||||||
<meta charset="utf-8">
|
"_internal/twitter_cards.html" . }} {{ $style := resources.Get
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
"/css/main.sass" | toCSS }}
|
||||||
{{ template "_internal/opengraph.html" . }}
|
<link href="{{ $style.RelPermalink }}" rel="stylesheet">{{ $title
|
||||||
{{ template "_internal/twitter_cards.html" . }}
|
:= print .Title " | " .Site.Title }} {{ if .IsHome }}{{ $title =
|
||||||
{{ $style := resources.Get "/css/main.sass" | toCSS }}
|
.Site.Title }}{{ end }}
|
||||||
<link href="{{ $style.RelPermalink }}" rel="stylesheet">
|
|
||||||
{{ $title := print .Title " | " .Site.Title }}
|
|
||||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
|
||||||
<title>{{ $title }}</title>
|
<title>{{ $title }}</title>
|
||||||
</head>
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
<h1>{{lower .Title}}</h1>
|
||||||
|
<div class="subtitle">
|
||||||
|
{{lower .Description}}
|
||||||
|
</div>{{- partial "crumbs.html" . -}}
|
Reference in a new issue