add breadcrumbs

This commit is contained in:
Daniel Alejandro Gallegos 2022-07-28 21:47:37 -04:00
parent 7db06ee4d0
commit 8800115b41
No known key found for this signature in database
GPG key ID: E1C60F5E34937B03
9 changed files with 60 additions and 26 deletions

View file

@ -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 ' )

View file

@ -0,0 +1,7 @@
.crumbs
li
display: inline
footer
text-align: center
margin: 2vh auto auto auto

View file

@ -1,3 +1,9 @@
body body
background: #151515 background: #151515
color: #eeeeee color: #eeeeee
a
color: #33ff33
&:hover
color: Orange
&:visited
color: #33ff33

View file

@ -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}}">
<p> {{.Description}} </p> <h3>{{.Name}}</h3></a>
</li> <p>{{.Description}}</p>
{{ end }} </li>{{ end }}
</ul> </ul>
</main> </main>{{ end }}
{{ end }}

View file

@ -0,0 +1,8 @@
{{ define "main" }}
<section id="main">
<div>
<article id="content">
{{ .Content }}
</article>
</div>
</section>{{ end }}

View 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 }}

View file

@ -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>

View file

@ -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>{{ $title }}</title>
{{ $title := print .Title " | " .Site.Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
</head>

View file

@ -0,0 +1,4 @@
<h1>{{lower .Title}}</h1>
<div class="subtitle">
{{lower .Description}}
</div>{{- partial "crumbs.html" . -}}