diff --git a/assets/scss/hyde-hyde/_sidebar.scss b/assets/scss/hyde-hyde/_sidebar.scss index 3e53171..0686b42 100644 --- a/assets/scss/hyde-hyde/_sidebar.scss +++ b/assets/scss/hyde-hyde/_sidebar.scss @@ -72,9 +72,17 @@ font-style: italic; } +%small-center-text { + font-size: $font-scale-dot7; + line-height: 1.1rem; + text-align: center; +} + .copyright { padding-top: 1rem; - text-align: center; - font-size: $copyright-font-size; - line-height: 1.1rem; + @extend %small-center-text; +} +.builtwith { + padding-top: .2rem; + @extend %small-center-text; } diff --git a/assets/scss/hyde-hyde/_variables.scss b/assets/scss/hyde-hyde/_variables.scss index e10be37..e7ae6e5 100644 --- a/assets/scss/hyde-hyde/_variables.scss +++ b/assets/scss/hyde-hyde/_variables.scss @@ -35,6 +35,8 @@ $border-color: #e5e5e5; $large-breakpoint: 38em; $large-font-size: 20px; +$font-scale-dot7: .7rem; +$font-scale-dot8: .8rem; // // hyde-hyde @@ -44,7 +46,7 @@ $large-device-font-size: $large-font-size; // https://www.client9.com/css-system-font-stack-monospace-v2 $code-font-family: "SF-Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Roboto Mono", "Ubuntu Mono", "Courier New", Courier, monospace; $code-font-size: .9rem; -$code-fence-font-size: .9rem; +$code-fence-font-size: .8rem; $code-color: #bf616a; $code-background-color: #f9f2f4; $code-line-height: 1.4; @@ -62,7 +64,7 @@ $gradient-color-1: #ff2c2c; $gradient-color-2: #7a5e91; // post meta -$meta-font-size: .8rem; +$meta-font-size: $font-scale-dot8; $meta-font-weight: 300; $meta-color: $gray-6; @@ -90,7 +92,7 @@ $h5-font-size:1rem; $sidebar-color: #300030; $sidebar-width: 16rem; $site__title-font-size: 2.5rem; -$copyright-font-size: 0.7rem; +$copyright-font-size: $font-scale-dot7; // content $content-max-width: 38rem; // @ ~70 CPL diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9368df2..05db08a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -21,8 +21,17 @@ theme = "hyde-hyde" # description = "..." authorimage = "/img/hugo.png" dateformat = "Jan 2, 2006" + + # sidebar, copyright & license + copyright = "htr3n" + license = "CC BY-SA 4.0" + licenseURL = "https://creativecommons.org/licenses/by-sa/4.0" + showBuiltWith = true + + # https://highlightjs.org highlightjs = true highlightjsstyle = "github" + # please choose either GraphComment or Disqus or Utterances #GraphCommentId = "..." #UtterancesRepo = "..." # https://utteranc.es/ diff --git a/layouts/partials/sidebar/copyright.html b/layouts/partials/sidebar/copyright.html index 59beb37..e9227d8 100644 --- a/layouts/partials/sidebar/copyright.html +++ b/layouts/partials/sidebar/copyright.html @@ -1,6 +1,13 @@ +{{ with .Site.Params.copyright }} +{{ end }} +{{ with .Site.Params.showBuiltWith }} +
+Built with Hugo ❤️ hyde-hyde. +
+{{ end }}