From 8800115b41f1c357a9392491cbcad2eb7c41e3ae Mon Sep 17 00:00:00 2001 From: Daniel Alejandro Gallegos Date: Thu, 28 Jul 2022 21:47:37 -0400 Subject: [PATCH] add breadcrumbs --- content/_index.md | 8 ++++++-- themes/birdspace/assets/css/layout.sass | 7 +++++++ themes/birdspace/assets/css/theme.sass | 6 ++++++ themes/birdspace/layouts/characters/list.html | 19 ++++++------------- .../birdspace/layouts/characters/single.html | 8 ++++++++ themes/birdspace/layouts/partials/crumbs.html | 9 +++++++++ themes/birdspace/layouts/partials/footer.html | 7 +++++++ themes/birdspace/layouts/partials/head.html | 18 +++++++----------- themes/birdspace/layouts/partials/header.html | 4 ++++ 9 files changed, 60 insertions(+), 26 deletions(-) create mode 100644 themes/birdspace/layouts/characters/single.html create mode 100644 themes/birdspace/layouts/partials/crumbs.html diff --git a/content/_index.md b/content/_index.md index 1584099..68a7423 100644 --- a/content/_index.md +++ b/content/_index.md @@ -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 ' ) diff --git a/themes/birdspace/assets/css/layout.sass b/themes/birdspace/assets/css/layout.sass index e69de29..6948f6a 100644 --- a/themes/birdspace/assets/css/layout.sass +++ b/themes/birdspace/assets/css/layout.sass @@ -0,0 +1,7 @@ +.crumbs + li + display: inline + +footer + text-align: center + margin: 2vh auto auto auto diff --git a/themes/birdspace/assets/css/theme.sass b/themes/birdspace/assets/css/theme.sass index 3c62441..f4e3f84 100644 --- a/themes/birdspace/assets/css/theme.sass +++ b/themes/birdspace/assets/css/theme.sass @@ -1,3 +1,9 @@ body background: #151515 color: #eeeeee +a + color: #33ff33 + &:hover + color: Orange + &:visited + color: #33ff33 diff --git a/themes/birdspace/layouts/characters/list.html b/themes/birdspace/layouts/characters/list.html index eb1cf6d..6e693e4 100644 --- a/themes/birdspace/layouts/characters/list.html +++ b/themes/birdspace/layouts/characters/list.html @@ -1,18 +1,11 @@ {{ define "main" }}
-
-
-

{{.Title}}

-
- {{.Content}} -
-
-{{ end }} +{{ end }} diff --git a/themes/birdspace/layouts/characters/single.html b/themes/birdspace/layouts/characters/single.html new file mode 100644 index 0000000..ae55e87 --- /dev/null +++ b/themes/birdspace/layouts/characters/single.html @@ -0,0 +1,8 @@ +{{ define "main" }} +
+
+
+ {{ .Content }} +
+
+
{{ end }} diff --git a/themes/birdspace/layouts/partials/crumbs.html b/themes/birdspace/layouts/partials/crumbs.html new file mode 100644 index 0000000..98db6c9 --- /dev/null +++ b/themes/birdspace/layouts/partials/crumbs.html @@ -0,0 +1,9 @@ +
    + {{ template "breadcrumbnav" (dict "p1" . "p2" .) }} +
{{ 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 }} +
  • + {{ lower .p1.Title }} +
  • {{ end }} diff --git a/themes/birdspace/layouts/partials/footer.html b/themes/birdspace/layouts/partials/footer.html index e69de29..b5654e1 100644 --- a/themes/birdspace/layouts/partials/footer.html +++ b/themes/birdspace/layouts/partials/footer.html @@ -0,0 +1,7 @@ + diff --git a/themes/birdspace/layouts/partials/head.html b/themes/birdspace/layouts/partials/head.html index 647c9cc..664d0f0 100644 --- a/themes/birdspace/layouts/partials/head.html +++ b/themes/birdspace/layouts/partials/head.html @@ -1,11 +1,7 @@ - - - - {{ template "_internal/opengraph.html" . }} - {{ template "_internal/twitter_cards.html" . }} - {{ $style := resources.Get "/css/main.sass" | toCSS }} - - {{ $title := print .Title " | " .Site.Title }} - {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} - {{ $title }} - +{{ template "_internal/opengraph.html" . }} {{ template +"_internal/twitter_cards.html" . }} {{ $style := resources.Get +"/css/main.sass" | toCSS }} +{{ $title +:= print .Title " | " .Site.Title }} {{ if .IsHome }}{{ $title = +.Site.Title }}{{ end }} +{{ $title }} diff --git a/themes/birdspace/layouts/partials/header.html b/themes/birdspace/layouts/partials/header.html index e69de29..e6ce804 100644 --- a/themes/birdspace/layouts/partials/header.html +++ b/themes/birdspace/layouts/partials/header.html @@ -0,0 +1,4 @@ +

    {{lower .Title}}

    +
    + {{lower .Description}} +
    {{- partial "crumbs.html" . -}}