From 833cdf8037a5fc5ee06032080ed52abcf588e4bf Mon Sep 17 00:00:00 2001 From: Jeremy Bise Date: Wed, 17 Apr 2019 12:12:29 -0400 Subject: categories now covered --- assets/scss/main.scss | 7 ++++++- layouts/_default/taxonomy.html | 4 ++-- layouts/partials/entry-meta.html | 16 +++++++++++++++- layouts/partials/icons/ui/archive.html | 4 ++++ 4 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 layouts/partials/icons/ui/archive.html diff --git a/assets/scss/main.scss b/assets/scss/main.scss index d7aabdc..ac0bf64 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -1,3 +1,5 @@ +@import "normalize"; + // Backgrounds $color__background-body: #fff; $color__background-input: #fff; @@ -34,7 +36,6 @@ $color__border-abbr: #666; @import "variables-site/variables-site"; @import "mixins/mixins-master"; -@import "normalize"; @import "typography/typography"; @import "elements/elements"; @import "forms/forms"; @@ -181,4 +182,8 @@ figure { max-width: 100%; } } +} + +.capitalize { + text-transform: capitalize; } \ No newline at end of file diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index c896f64..65e3fe3 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,7 +1,7 @@ {{ define "main" }} diff --git a/layouts/partials/entry-meta.html b/layouts/partials/entry-meta.html index 95287ca..d666223 100644 --- a/layouts/partials/entry-meta.html +++ b/layouts/partials/entry-meta.html @@ -6,7 +6,7 @@ {{ $tags := slice }} {{ with .Params.tags }} - + {{ partial "icons/ui/tag" }} Posted in {{ range . }} @@ -16,4 +16,18 @@ {{ end }} {{ delimit $tags ", " }} +{{ end }} + +{{ $categories := slice }} +{{ with .Params.categories }} + + {{ partial "icons/ui/archive" }} + Posted in + {{ range . }} + {{ $href := print ("categories/" | absLangURL) (. | urlize) "/" }} + {{ $element := printf "%s" $href . }} + {{ $categories = $categories | append $element }} + {{ end }} + {{ delimit $categories ", " }} + {{ end }} \ No newline at end of file diff --git a/layouts/partials/icons/ui/archive.html b/layouts/partials/icons/ui/archive.html new file mode 100644 index 0000000..3c0a3fb --- /dev/null +++ b/layouts/partials/icons/ui/archive.html @@ -0,0 +1,4 @@ + + + + \ No newline at end of file -- cgit v1.2.3