redgardens hugo

This commit is contained in:
2026-07-03 21:32:31 -05:00
commit 88eccfaa7d
11 changed files with 219 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
public/
resources/
.hugo_build.lock
+3
View File
@@ -0,0 +1,3 @@
[submodule "themes/nostyle"]
path = themes/nostyle
url = https://github.com/hanwenguo/hugo-theme-nostyleplease
+5
View File
@@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
+180
View File
@@ -0,0 +1,180 @@
// -------------- THEME SWITCHER -------------- //
@mixin theme($--bg-color, $--primary-text-color, $--secondary-text-color, $--link-color, $--visited-link-color, $--highlight) {
background-color: $--bg-color;
color: $--primary-text-color;
a {
color: $--link-color;
&:visited { color: $--visited-link-color; }
}
details {
border: thin solid $--primary-text-color;
}
details summary {
color: $--primary-text-color;
}
details[open] summary {
border-bottom: 1px solid $--primary-text-color;
}
pre {
background: $--bg-color;
}
code:not(pre > code) {
background-color: $--primary-text-color;
color: $--bg-color;
}
*:target {
background: $--highlight;
color: $--primary-text-color;
}
table, th, td {
border: thin solid $--primary-text-color;
}
.toc {
border: thin solid $--primary-text-color;
padding: 1rem;
}
figcaption { color: $--secondary-text-color; }
blockquote {
border: thin solid $--primary-text-color;
}
}
@mixin dark-appearance {
@include theme(#1f1c1e, #ffffff, #e0d6da, #e06b7d, #e06b7d, #241f22);
}
@mixin light-appearance {
@include theme(#1f1c1e, #ffffff, #e0d6da, #e06b7d, #e06b7d, #241f22);
}
body[a="dark"] { @include dark-appearance; }
body[a="light"] { @include light-appearance; }
@media (prefers-color-scheme: dark) {
body[a="auto"] { @include dark-appearance; }
}
@media (prefers-color-scheme: light) {
body[a="auto"] { @include light-appearance; }
}
// -------------------------------------------- //
html { height: 100%; }
body {
font-family: monospace;
font-size: 16px;
line-height: 1.4;
margin: 0;
min-height: 100%;
overflow-wrap: break-word;
}
h2, h3, h4, h5, h6 { margin-top: 1.5rem; }
p { margin: 1rem 0; }
li { margin: 0.4rem 0; }
a {
text-decoration: none;
&:hover { text-decoration: underline; }
}
hr {
text-align: center;
border: 0;
margin: 2rem 0;
&:before { content: '/////' }
&:after { content: attr(data-content) '/////' }
}
pre {
padding: 1em;
overflow-x: auto; /* Fix pre content overflowing parent without scroll bar */
}
table { width: 100%; }
table, th, td {
border-collapse: collapse;
padding: 0.4rem;
}
code {
text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
code:not(pre > code) {
padding: 0.1em 0.2em;
font-size: 90%;
}
code.has-jax {
-webkit-font-smoothing: antialiased;
background: inherit !important;
border: none !important;
font-size: 100%;
}
blockquote {
padding: 1rem;
p { margin: 0; }
}
img {
max-width: 100%;
display: block;
margin: 0 auto;
}
figcaption {
text-align: center;
opacity: 0.5;
}
details {
padding: 1rem;
}
details summary {
text-decoration: none;
}
details[open] summary {
margin-bottom: 0.5em;
padding-bottom: 0.5em;
}
.post-meta {
display: flex;
justify-content: space-between;
align-items: center;
}
.w {
max-width: 640px;
margin: 0 auto;
padding: 4rem 2rem;
}
.toc {
padding: 1rem;
}
+1
View File
@@ -0,0 +1 @@
This is where all of redgardens updates are blogged. Using hugo!
+10
View File
@@ -0,0 +1,10 @@
---
title: Redgardens first blog!
date: 2026-07-03
---
Hello!
I plan on making blogs whenever i make changes to redgarden or add new services or complain about redgardeny things or MOVE vps's (recently happened!)
![cat](/imgs/caterpil.gif)
+12
View File
@@ -0,0 +1,12 @@
[[entries]]
title = "all posts"
[entries.post_list]
limit = 5
show_more = true
show_more_text = "See archive..."
show_more_url = "posts"
[[entries]]
title = "rss"
url = "index.xml"
+3
View File
@@ -0,0 +1,3 @@
baseURL = 'https://blog.redgarden.cv/'
languageCode = 'en-us'
title = 'Redgarden Blog'
+1
View File
@@ -0,0 +1 @@
Thank you for using redgarden! And reading my posts!
Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

+1
Submodule themes/nostyle added at cfbfe4e8ed