diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..e69de29 diff --git a/assets/css/override.css b/assets/css/override.css index 78b1517..5adba9e 100644 --- a/assets/css/override.css +++ b/assets/css/override.css @@ -3,4 +3,57 @@ * project_root/assets/css/override.css * and place all your CSS inside it. * You should not modify this file. - */ \ No newline at end of file + */ + +@media (prefers-color-scheme: dark) { + body { + color: #eee; + background: #121212; + } + + body a { + color: #809fff; + } + + .content { + background: #121212; + box-shadow: 0 0.7rem 2.3rem 0 rgba(255,255,255,0.3); + } + + .card-container { + background: #121212; + } + + .menu-container { + color: white; + background: #121212; + } + + .nav-header { + background: #121212; + color: white; + } + + .nav-text{ + background: #121212; + color: white; + } + + .blog-card { + background: #121212; + color: white; + } + + .blog-card h2{ + background: #121212; + color: white; + } + + footer h3 { + color: white; + } + + .webring { + background-color: #121212; + } +} diff --git a/assets/css/print.css b/assets/css/print.css new file mode 100644 index 0000000..5b8f8f5 --- /dev/null +++ b/assets/css/print.css @@ -0,0 +1,70 @@ +/** + * Print stylesheet for the blogotheme theme. +* @version 1.0 +* @lastmodified 2021-01-03 +*/ + +@media print { + + body { + word-break: keep-all; + font-size: 1em; + font-family: serif; + } + + h1, h2, p, hr { + margin: 0; + padding: 0; + padding-top: 1em; + } + + .post{ + line-height: 1; + } + + .nav-bar { + max-width: none; + padding: 0; + } + + .card { + border: none; + margin: 0; + } + + #menu { + display: none; + float: left; + max-width: none; + } + + .content { + text-align: justify; + margin: 0; + max-width: none; + + } + + .side-text-padding { + padding-left: 0rem !important; + padding-right: 0rem !important; + box-sizing: border-box !important; + } + + .end-nav { + display: none; + } + + main { + padding: none; + } + + footer { + color: black; + font-size: 1em; + } + + footer::after { + content: "Printed from https://n07070.xyz" + } +} diff --git a/assets/css/style.css b/assets/css/style.css index ef1e157..eda34a1 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -55,7 +55,7 @@ p { width: 100%; background-color: white; border-radius: 1.2rem; - box-shadow: 0 0.7rem 2.3rem 0 rgba(0,0,0,0.1); + box-shadow: 0 0.7rem 2.3rem 0 rgba(0,0,0,0.3); } .home-faceshot { margin: 0; @@ -160,7 +160,7 @@ p { } .content { background-color: white; - padding: 2em 0; + /* padding: 2em 0; */ margin-bottom: 3rem; margin-top: 1em; width: 100%; @@ -168,7 +168,7 @@ p { /* border-radius: 1.2rem; */ z-index: 2; transition: transform 0.2s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.2s cubic-bezier(0.25,0.8,0.25,1); - box-shadow: 0 0.7rem 2.3rem 0 rgba(0,0,0,0.1); + box-shadow: 0 0.7rem 2.3rem 0 rgba(0,0,0,0.3); } .list-header { margin: 1em; @@ -204,7 +204,7 @@ p { /* border-radius: 1.2rem; */ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: transform 0.2s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.2s cubic-bezier(0.25,0.8,0.25,1); - box-shadow: 0 0.7rem 2.3rem 0 rgba(0,0,0,0.1); + box-shadow: 0 0.7rem 2.3rem 0 rgba(0,0,0,0.3); } .home-card { padding: 0.8em; @@ -303,7 +303,7 @@ p { text-decoration: none; border-radius: 0.3rem; transition: transform 0.1s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.1s cubic-bezier(0.25,0.8,0.25,1); - box-shadow: 0 0.7rem 2.3rem 0 rgba(0,0,0,0.1); + box-shadow: 0 0.7rem 2.3rem 0 rgba(0,0,0,0.3); } .button:hover { box-shadow: 0 0.05rem 0.15rem rgba(0,0,0,0.12), 0 0.05rem 0.1rem rgba(0,0,0,0.24); @@ -429,7 +429,7 @@ tr:nth-child(even) td { background: #f5f6f7; } footer { - height: 17rem; + height: 100%; max-width: 50rem; width: 100%; margin-top: -10rem; @@ -437,10 +437,15 @@ footer { flex-flow: row wrap; justify-content: space-evenly; align-items: flex-end; - color: white; background-position: 40% 0%; background-size: 50rem; + text-align: center; } + +footer h3 { + margin: 1em; +} + .footer-link { margin: 1rem 0; } @@ -449,6 +454,10 @@ footer { margin: 0; } +.webring { + text-align: left; +} + /* Medium devices (tablets, ~641px and up) */ @media only screen and (min-width: 40.063em) { body { diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 69d3013..4f3bc09 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -2,16 +2,34 @@ {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} - {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} - {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Thanks for using RSS ! + A special machine that prints octects into text + {{ with .Site.LanguageCode }} + {{.}} + {{end}} + + {{ with .Site.Author.email }} + + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}} + + {{end}} + + {{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}} + {{end}} + + {{ with .Site.Copyright }} + {{.}} + {{end}} + + {{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ end }} + {{ with .OutputFormats.Get "RSS" }} {{ printf "" .Permalink .MediaType | safeHTML }} {{ end }} + {{ $paginator := .Paginate (where .Pages "Params.displayinlist" "!=" false) -}} {{- range $paginator.Pages -}} @@ -20,8 +38,10 @@ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} - {{ if (isset .Params "description") }}{{ index .Params "description" | html }}{{ else }}{{ .Summary | html }}{{ end }} + + {{ $.Content | html }} + {{- end }} - \ No newline at end of file + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 1ba20a8..080b025 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,10 @@ -