Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jeremybise/twentynineteen-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bise <jeremy.bise@thosegeeks.com>2019-04-17 19:12:29 +0300
committerJeremy Bise <jeremy.bise@thosegeeks.com>2019-04-17 19:12:29 +0300
commit833cdf8037a5fc5ee06032080ed52abcf588e4bf (patch)
treeed5a5590bf909073c2a004008476dbe5b33a722d
parent25871a11640bf3a39aa3df8803efab066cf2fd68 (diff)
categories now covered
-rw-r--r--assets/scss/main.scss7
-rw-r--r--layouts/_default/taxonomy.html4
-rw-r--r--layouts/partials/entry-meta.html16
-rw-r--r--layouts/partials/icons/ui/archive.html4
4 files changed, 27 insertions, 4 deletions
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" }}
<header class="page-header">
- <h1 class="page-title">
- Tag Archives:
+ <h1 class="page-title capitalize">
+ {{ .Data.Singular }} Archives:
<span class="page-description">{{ .Title }}</span>
</h1>
</header>
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 }}
-<span class="cat-links">
+<span class="tags-links">
{{ partial "icons/ui/tag" }}
<span class="screen-reader-text">Posted in</span>
{{ range . }}
@@ -16,4 +16,18 @@
{{ end }}
{{ delimit $tags ", " }}
</span>
+{{ end }}
+
+{{ $categories := slice }}
+{{ with .Params.categories }}
+<span class="cat-links">
+ {{ partial "icons/ui/archive" }}
+ <span class="screen-reader-text">Posted in</span>
+ {{ range . }}
+ {{ $href := print ("categories/" | absLangURL) (. | urlize) "/" }}
+ {{ $element := printf "<a href=\"%s\" rel=\"category tag\">%s</a>" $href . }}
+ {{ $categories = $categories | append $element }}
+ {{ end }}
+ {{ delimit $categories ", " }}
+</span>
{{ 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 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"></path>
+ <path d="M0 0h24v24H0z" fill="none"></path>
+</svg> \ No newline at end of file