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"
|
||||
|
||||
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 ' )
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
.crumbs
|
||||
li
|
||||
display: inline
|
||||
|
||||
footer
|
||||
text-align: center
|
||||
margin: 2vh auto auto auto
|
|
@ -1,3 +1,9 @@
|
|||
body
|
||||
background: #151515
|
||||
color: #eeeeee
|
||||
a
|
||||
color: #33ff33
|
||||
&:hover
|
||||
color: Orange
|
||||
&:visited
|
||||
color: #33ff33
|
||||
|
|
|
@ -1,18 +1,11 @@
|
|||
{{ define "main" }}
|
||||
<main>
|
||||
<article>
|
||||
<header>
|
||||
<h1>{{.Title}}</h1>
|
||||
</header>
|
||||
{{.Content}}
|
||||
</article>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a href="{{.Permalink}}"><h3 >{{.Name}}</h3> </a>
|
||||
<p> {{.Description}} </p>
|
||||
</li>
|
||||
{{ end }}
|
||||
<a href="{{.Permalink}}">
|
||||
<h3>{{.Name}}</h3></a>
|
||||
<p>{{.Description}}</p>
|
||||
</li>{{ end }}
|
||||
</ul>
|
||||
</main>
|
||||
{{ end }}
|
||||
</main>{{ 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>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
{{ $style := resources.Get "/css/main.sass" | toCSS }}
|
||||
<link href="{{ $style.RelPermalink }}" rel="stylesheet">
|
||||
{{ $title := print .Title " | " .Site.Title }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
</head>
|
||||
{{ template "_internal/opengraph.html" . }} {{ template
|
||||
"_internal/twitter_cards.html" . }} {{ $style := resources.Get
|
||||
"/css/main.sass" | toCSS }}
|
||||
<link href="{{ $style.RelPermalink }}" rel="stylesheet">{{ $title
|
||||
:= print .Title " | " .Site.Title }} {{ if .IsHome }}{{ $title =
|
||||
.Site.Title }}{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<h1>{{lower .Title}}</h1>
|
||||
<div class="subtitle">
|
||||
{{lower .Description}}
|
||||
</div>{{- partial "crumbs.html" . -}}
|
Reference in a new issue