commit 88eccfaa7d294cc4a164ef7065ea303d569a4559 Author: stabosa87 Date: Fri Jul 3 21:32:31 2026 -0500 redgardens hugo diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e4b8c67 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +public/ +resources/ +.hugo_build.lock \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a6d6c99 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/nostyle"] + path = themes/nostyle + url = https://github.com/hanwenguo/hugo-theme-nostyleplease diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/assets/css/main.scss b/assets/css/main.scss new file mode 100644 index 0000000..d6657d9 --- /dev/null +++ b/assets/css/main.scss @@ -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; +} diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..8746816 --- /dev/null +++ b/content/_index.md @@ -0,0 +1 @@ +This is where all of redgardens updates are blogged. Using hugo! \ No newline at end of file diff --git a/content/posts/Myfirstblog.md b/content/posts/Myfirstblog.md new file mode 100644 index 0000000..36f35cb --- /dev/null +++ b/content/posts/Myfirstblog.md @@ -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) \ No newline at end of file diff --git a/data/menu.toml b/data/menu.toml new file mode 100644 index 0000000..990db38 --- /dev/null +++ b/data/menu.toml @@ -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" diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..b9335e0 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,3 @@ +baseURL = 'https://blog.redgarden.cv/' +languageCode = 'en-us' +title = 'Redgarden Blog' diff --git a/layouts/footer.md b/layouts/footer.md new file mode 100644 index 0000000..549eca7 --- /dev/null +++ b/layouts/footer.md @@ -0,0 +1 @@ +Thank you for using redgarden! And reading my posts! \ No newline at end of file diff --git a/static/imgs/caterpil.gif b/static/imgs/caterpil.gif new file mode 100644 index 0000000..7f0e5bb Binary files /dev/null and b/static/imgs/caterpil.gif differ diff --git a/themes/nostyle b/themes/nostyle new file mode 160000 index 0000000..cfbfe4e --- /dev/null +++ b/themes/nostyle @@ -0,0 +1 @@ +Subproject commit cfbfe4e8ed13ba6256c9ea076690dba30dd8765b