diff options
| -rw-r--r-- | layouts/_default/baseof.html | 3 | ||||
| -rw-r--r-- | layouts/partials/footer.html | 2 | ||||
| -rw-r--r-- | static/css/style.css | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2c3a98e..926c1f5 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,6 +9,9 @@ {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} <link rel="stylesheet" href="{{ "css/style.css" | relURL }}"> + {{ range .Site.Params.customCSS -}} + <link rel="stylesheet" href="{{ . | relURL }}?rnd={{ now.Unix }}"> + {{- end }} {{ with .OutputFormats.Get "RSS" -}} {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} {{- end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 19fcd6d..8ba9f44 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,5 @@ <footer> - <p>© {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ .Site.Title }}</b></a>. + <p>© {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ if .Site.Copyright }}{{ .Site.Copyright }}{{ else }}{{ .Site.Title }}{{ end }}</b></a>. {{- range .Site.Menus.footer }} <a href="{{ .URL }}"><b>{{ .Name }}</b></a>. {{- end }} diff --git a/static/css/style.css b/static/css/style.css index dbd8b6b..d239bd5 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,7 +1,7 @@ html {overflow-y: scroll} body{max-width:800px;margin:40px auto;padding:0 10px;font:14px/1.5 monospace;color:#444}h1,h2,h3{line-height:1.2}@media (prefers-color-scheme: dark){body{color:white;background:#444}a:link{color:#5bf}a:visited{color:#ccf}} -code{color: #FFFFFF; background:#000000; padding:2px} -pre{color: #FFFFFF; background:#000000; padding:24px; white-space: pre-wrap} +p > code{color: #FFFFFF; background:#000000; padding:2px} +pre{color: #FFFFFF; background:#000000; padding:24px; overflow-x: auto} article{padding:24px 0} .center {display: block;margin-left: auto;margin-right: auto;width: 100%;} img {display: block; max-width: 100%; height: auto;} |