Skip to content
Permalink
Browse files

parameterise copyright and license

  • Loading branch information
htr3n committed Nov 29, 2018
1 parent f4aca1f commit 1ea35f44308997d2e4879f3b7938dd1a77a99578
@@ -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;
}
@@ -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
@@ -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/
@@ -1,6 +1,13 @@
{{ with .Site.Params.copyright }}
<div class="copyright">
{{ with .Site.Params.copyright }}{{.|safeHTML}}{{ else }}&copy; {{ now.Format "2006"}} {{.Site.Params.author}}.
<a href="https://creativecommons.org/licenses/by-sa/4.0">Some Rights Reserved</a>.
Built with <a href="https://gohugo.io">Hugo</a> ❤️ <a href="https://github.com/htr3n/hyde-hyde">hyde-hyde</a>.
&copy; {{ now.Format "2006"}} {{ . | safeHTML }}
{{ with $.Site.Params.license }}
<a href="{{$.Site.Params.licenseURL | safeHTML}}">{{ . | safeHTML }}</a>
{{end}}
</div>
{{ end }}
{{ with .Site.Params.showBuiltWith }}
<div class="builtwith">
Built with <a href="https://gohugo.io">Hugo</a> ❤️ <a href="https://github.com/htr3n/hyde-hyde">hyde-hyde</a>.
</div>
{{ end }}

0 comments on commit 1ea35f4

Please sign in to comment.
You can’t perform that action at this time.