Compare commits

..

5 Commits

Author SHA1 Message Date
19d4b525c0 Added dark theme support 2021-01-03 22:32:46 +01:00
9feff97a17 Modifed RSS to includ full text 2021-01-03 18:36:02 +01:00
nono
5366ec3509 Add print css file 2021-01-03 18:09:31 +01:00
nono
1a31c8ad9b Fixed footer and card shadow 2021-01-03 18:09:00 +01:00
nono
a5c4591bc9 Added a stylesheet to print the blog. 2021-01-03 17:49:52 +01:00
6 changed files with 154 additions and 18 deletions

View File

@@ -4,3 +4,47 @@
* and place all your CSS inside it.
* You should not modify this file.
*/
@media (prefers-color-scheme: dark) {
body {
color: #eee;
background: #121212;
}
body a {
color: #809fff;
}
.content {
background: #121212;
}
.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;
}
}

70
assets/css/print.css Normal file
View File

@@ -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"
}
}

View File

@@ -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;
@@ -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);
@@ -437,10 +437,11 @@ 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-link {
margin: 1rem 0;
}

View File

@@ -2,16 +2,34 @@
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} - {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Thanks for using RSS !</description>
<generator>A special machine that prints octects into text</generator>
{{ with .Site.LanguageCode }}
<language>{{.}}</language>
{{end}}
{{ with .Site.Author.email }}
<managingEditor>
{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}
</managingEditor>
{{end}}
{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>
{{end}}
{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>
{{end}}
{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ $paginator := .Paginate (where .Pages "Params.displayinlist" "!=" false) -}}
{{- range $paginator.Pages -}}
<item>
@@ -20,7 +38,9 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ if (isset .Params "description") }}{{ index .Params "description" | html }}{{ else }}{{ .Summary | html }}{{ end }}</description>
<description>
{{ $.Content | html }}
</description>
</item>
{{- end }}
</channel>

View File

@@ -1,3 +1,3 @@
<footer class="side-padding" >
The Octet Press, N07070's blog. Self-hosted, low-tech, no JS and static, as it should be.
<footer class="content card card-container side-padding " >
<h3>The Octet Press, N07070's blog. Self-hosted, low-tech, no JS and static, as it should be.</h3>
</footer>

View File

@@ -28,7 +28,8 @@
{{ $normalizeStyle := resources.Get "css/normalize.css" }}
{{ $mainStyle := resources.Get "css/style.css" }}
{{ $overrideStyle := resources.Get "css/override.css" }}
{{ $style := slice $normalizeStyle $mainStyle $overrideStyle | resources.Concat "css/concated.css" | minify }}
{{ $printStyle := resources.Get "css/print.css" }}
{{ $style := slice $normalizeStyle $mainStyle $overrideStyle $printStyle | resources.Concat "css/concated.css" | minify }}
<link href="{{ $style.Permalink }}" rel="stylesheet">
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}