From 15350681afbd8884f2f3208bc444c4161846da61 Mon Sep 17 00:00:00 2001 From: Vrifox Date: Fri, 9 Oct 2020 10:00:12 +0200 Subject: [PATCH] font order optimized for windows --- ..gitignore.kate-swp | Bin 0 -> 249 bytes assets/partials/_main.scss | 13 ++++++++--- config.yaml | 4 ++-- content/privacy/_index.md | 32 -------------------------- layouts/_default/single.html | 43 +++++++++++++++++++---------------- layouts/partials/nav.html | 2 +- 6 files changed, 36 insertions(+), 58 deletions(-) create mode 100644 ..gitignore.kate-swp delete mode 100644 content/privacy/_index.md diff --git a/..gitignore.kate-swp b/..gitignore.kate-swp new file mode 100644 index 0000000000000000000000000000000000000000..038df14593450a5199b5bc72d0d34a3a68789451 GIT binary patch literal 249 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?Vn3BI{-Vo{rLhTzVa)y0=O?$1BWcriE} zD8mB8Jg&j6!Ja?{D-eSKqdtPq2;#>h_)H*v4ua1N;-@0`AOjiG5qyxDjEM+78;DOG5qzj_0N?5$?EnA( literal 0 HcmV?d00001 diff --git a/assets/partials/_main.scss b/assets/partials/_main.scss index 3d66db8..d3ce109 100644 --- a/assets/partials/_main.scss +++ b/assets/partials/_main.scss @@ -1,9 +1,16 @@ * { box-sizing: border-box; -} -html { scrollbar-color: rgb(255, 130, 130) rgb(60, 60, 90); scrollbar-width: thin; + &::-webkit-scrollbar { + background: rgb(60, 60, 90); + width: 6px; + } + &::-webkit-scrollbar-thumb { + background: rgb(255, 130, 130); + } +} +html { overflow-x: hidden; overflow-y: scroll; } @@ -11,7 +18,7 @@ body { background: rgb(40, 40, 60); color: rgb(245, 245, 255); display: grid; - font-family: monospace, 'Lucida Console', 'Monaco'; + font-family: 'Lucida Console', monospace; line-height: 1.8; margin: 0; } diff --git a/config.yaml b/config.yaml index e6d5a23..f69b375 100644 --- a/config.yaml +++ b/config.yaml @@ -37,12 +37,12 @@ menu: - identifier: privacy name: privacy title: privacy - url: https://vrifox.cc/privacy + url: /privacy/ weight: 1 - identifier: feed name: feed (rss) title: rss-feed - url: https://vrifox.cc/blog/index.xml + url: /blog/index.xml weight: 2 - identifier: sourcecode name: source code diff --git a/content/privacy/_index.md b/content/privacy/_index.md deleted file mode 100644 index 001ba37..0000000 --- a/content/privacy/_index.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: privacy policy ---- - -#### last updated: 2020-10-05 - -# Websites - -This privacy policy applies to: - - vrifox.cc - - git.vrifox.cc - -# What data do I store and process? - - - browser type and version - - operating system - - requested url - - downloaded / accessed files - - ip address - - time of request - -The data will not be given to third party and deleted after three (3) days. - -## Cookies - -Cookies will not be set on these websites. - -I configured [nginx](https://nginx.org) to drop the header »Set-Cookie«. - ---- - -This privacy policy was inspired by [Natenoms Datenschutz[-erklärung]](https://blog.natenom.com/datenschutz/). diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 567d273..731efbe 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,8 +8,9 @@

- {{ if eq .Params.type "project" }}latest update: {{ .Date.Format "2. January 2006" }}{{ end }} - {{ if ne .Params.type "project" }}{{ .Date.Format "2. January 2006" }}{{ end }} + {{ if eq .Params.type "project" }}last updated: {{ .Date.Format "2. January 2006" }}{{ end }} + {{ if eq .Params.type "post" }}{{ .Date.Format "2. January 2006" }}{{ end }} + {{ if eq .Params.type "privacy" }}last updated: {{ .Date.Format "2006-01-02" }}{{ end }} {{ with .Params.author }}by {{ end }}{{ .Params.author }}

{{ .Title }}

@@ -40,24 +41,26 @@
-
- - -
+ {{ if ne .Params.type "privacy" }} +
+ + +
+ {{ end }} {{ end }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 5c9a045..0297c19 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -15,7 +15,7 @@
    {{ range .Site.Menus.main }} - {{ if $currentPage.IsMenuCurrent "main" . }} + {{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
  • {{ .Name }}