diff --git a/assets/scss/_content.scss b/assets/scss/_content.scss index f444b86..79e56d5 100644 --- a/assets/scss/_content.scss +++ b/assets/scss/_content.scss @@ -38,6 +38,10 @@ margin-bottom: 0.75em; } .post-meta { + display: flex; + flex-wrap: wrap; + justify-content: center; + i { text-align: center; width: 1.6rem; @@ -46,11 +50,49 @@ } .date { .posted-on { - margin-left: 0; - margin-right: 1.5rem; + // margin-left: 0; + // margin-right: 1.5rem; } } } + + .taxonomy { + display: flex; + flex-wrap: wrap; + justify-content: center; + } + + .meta-tag { + padding: 0 12px; + margin: 3px; + border: 1px solid #eaeaea; + border-radius: 1px; + background-color: #ededed; + + color: #333; + + i { + font-size: 0.9em; + } + + &--link { + font-size: 0.8em; + text-decoration: underline; + + &:hover { + opacity: 1; + color: #999; + } + + i { + font-size: 1em; + } + } + + .icon { + color: inherit; + } + } } img { display: block; @@ -72,39 +114,6 @@ margin-left: auto; margin-right: auto; } - - .taxonomy { - display: flex; - flex-wrap: wrap; - justify-content: center; - @media only screen and (min-width: 768px) { - max-width: 50%; - margin-left: auto; - margin-right: auto; - } - } - - .category, - .tag { - font-size: 0.8em; - padding: 0 12px; - margin: 3px; - border-radius: 1px; - background-color: #ededed; - - color: #333; - text-decoration: none; - - &:hover { - opacity: 1; - color: #555; - text-decoration: underline; - } - - .icon { - color: inherit; - } - } } .avatar img { diff --git a/layouts/partials/taxonomy/categories.html b/layouts/partials/taxonomy/categories.html index abff57b..529371c 100644 --- a/layouts/partials/taxonomy/categories.html +++ b/layouts/partials/taxonomy/categories.html @@ -1,3 +1,3 @@ {{- range $index, $el := . -}} - {{ . }} + {{ . }} {{- end -}} diff --git a/layouts/partials/taxonomy/tags.html b/layouts/partials/taxonomy/tags.html index 5dcaf36..1bbe983 100644 --- a/layouts/partials/taxonomy/tags.html +++ b/layouts/partials/taxonomy/tags.html @@ -1,3 +1,3 @@ {{- range $index, $el := . -}} - {{ . }} + {{ . }} {{- end -}} diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 4a77c22..bd82f5d 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -9,17 +9,15 @@

{{ .Title }}

-
- - - - - - - {{ i18n "reading_time" .ReadingTime }} - +
+ + +
+
+ + {{ i18n "reading_time" .ReadingTime }}
{{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }}