From 688ac06b2cc370c240cbc7321e3c414a639f7026 Mon Sep 17 00:00:00 2001 From: ch0ccyra1n Date: Mon, 13 Mar 2023 14:34:18 -0700 Subject: [PATCH] theme overhaul --- .gitmodules | 3 -- config.toml | 2 +- content/_index.md | 27 ++----------- content/contact/_index.md | 7 ++++ layouts/partials/footer.html | 27 ++++++++++++- themes/ch0ccy-in-the-nineties/LICENSE | 20 ++++++++++ .../archetypes/default.md | 2 + .../ch0ccy-in-the-nineties/layouts/404.html | 0 .../layouts/_default/baseof.html | 11 +++++ .../layouts/_default/list.html | 17 ++++++++ .../layouts/_default/single.html | 17 ++++++++ .../ch0ccy-in-the-nineties/layouts/index.html | 3 ++ .../layouts/partials/footer.html | 0 .../layouts/partials/head.html | 1 + .../layouts/partials/header.html | 7 ++++ .../static/css/style.css | 40 +++++++++++++++++++ themes/ch0ccy-in-the-nineties/theme.toml | 21 ++++++++++ themes/hugo-classic | 1 - 18 files changed, 176 insertions(+), 30 deletions(-) create mode 100644 content/contact/_index.md create mode 100644 themes/ch0ccy-in-the-nineties/LICENSE create mode 100644 themes/ch0ccy-in-the-nineties/archetypes/default.md create mode 100644 themes/ch0ccy-in-the-nineties/layouts/404.html create mode 100644 themes/ch0ccy-in-the-nineties/layouts/_default/baseof.html create mode 100644 themes/ch0ccy-in-the-nineties/layouts/_default/list.html create mode 100644 themes/ch0ccy-in-the-nineties/layouts/_default/single.html create mode 100644 themes/ch0ccy-in-the-nineties/layouts/index.html create mode 100644 themes/ch0ccy-in-the-nineties/layouts/partials/footer.html create mode 100644 themes/ch0ccy-in-the-nineties/layouts/partials/head.html create mode 100644 themes/ch0ccy-in-the-nineties/layouts/partials/header.html create mode 100644 themes/ch0ccy-in-the-nineties/static/css/style.css create mode 100644 themes/ch0ccy-in-the-nineties/theme.toml delete mode 160000 themes/hugo-classic diff --git a/.gitmodules b/.gitmodules index 628de72..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "themes/hugo-classic"] - path = themes/hugo-classic - url = https://github.com/goodroot/hugo-classic.git diff --git a/config.toml b/config.toml index 59513fd..6ff7e12 100644 --- a/config.toml +++ b/config.toml @@ -3,7 +3,7 @@ license = "" licenselink = "" languageCode = 'en-us' title = "ch0ccyra1n's website" -theme = 'hugo-classic' +theme = 'ch0ccy-in-the-nineties' [menu] [[menu.main]] diff --git a/content/_index.md b/content/_index.md index 055d4da..67a60f5 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,36 +1,15 @@ --- --- -{{< rawhtml >}}picture of ch0ccyra1n, a cat sitting at a computer desk{{< /rawhtml >}} - -Hi, I’m **ch0ccyra1n**! Thanks for stopping by! +Hi, I’m **ch0ccyra1n**{{< rawhtml >}}(she/her){{< /rawhtml >}}, Thanks for stopping by! I'm a trans woman, nerd, and anarchist and occasionally post things here. Mainly more techie stuff, since most of my political writings are in *[The Student Insurgent](https://studentinsurgent.org/)*. This is my website (***you*** should have one too. even if you don't think it's important, it is.) ## In my network... -- {{< rawhtml >}}GitLab icon My Gitlab{{< /rawhtml >}}, where I publish code. -- {{< rawhtml >}}ch0ccyra1n's website icon My Posts on this blog{{< /rawhtml >}} -- {{< rawhtml >}}Insurgent icon My Writings for The Student Insurgent{{< /rawhtml >}} +{{< rawhtml >}}GitLab icon My Gitlab, where I publish code
Insurgent icon My Writings for The Student Insurgent{{< /rawhtml >}} ## Projects I maintain... -- {{< rawhtml >}}Insurgent icon The Student Insurgent website{{< /rawhtml >}} -- {{< rawhtml >}}Defiance icon Defiance Hugo Theme{{< /rawhtml >}} -- {{< rawhtml >}}UO Student Workers icon UO Student Workers website{{< /rawhtml >}} -- {{< rawhtml >}}Mastodon icon Emerald Social Mastodon Instance{{< /rawhtml >}} -## Socials - -- {{< rawhtml >}}Mastodon iconFollow me on Mastodon{{< /rawhtml >}} - -- {{< rawhtml >}}RSS icon Subscribe to this blog via RSS{{< /rawhtml >}} - -## Contact - -Feel free to send me questions, fanmail, or anything else that's cool through these. - -- {{< rawhtml >}}Element Messenger icon Matrix (recommended){{< /rawhtml >}} -- {{< rawhtml >}}E-mail icon E-mail{{< /rawhtml >}} - -## Recent Posts \ No newline at end of file +{{< rawhtml >}}Insurgent icon The Student Insurgent website
UO Student Workers icon UO Student Workers website
Mastodon icon Emerald Social Mastodon Instance{{< /rawhtml >}} diff --git a/content/contact/_index.md b/content/contact/_index.md new file mode 100644 index 0000000..8c178c3 --- /dev/null +++ b/content/contact/_index.md @@ -0,0 +1,7 @@ +--- +title: "Contact" +--- + +Feel free to send me questions, fanmail, or anything else that’s cool through these. + +{{< rawhtml >}}Element Messenger icon Matrix (recommended)
E-mail icon E-mail{{< /rawhtml >}} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e369a9f..23453c9 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,2 +1,27 @@ -

+
+ + Follow me on Mastodon + + + RSS Feed + + + Tux the penguin winking at you to click on this button to go to the linux directory + + + Jellyfin + + + Anything but Chrome + + + Bitwarden + +Discord? No way! + + Internet privacy now! + +Trans Rights Now! +Anarchy Now! +

Copyright (c) {{ now.Format "2006"}} ch0ccyra1n

\ No newline at end of file diff --git a/themes/ch0ccy-in-the-nineties/LICENSE b/themes/ch0ccy-in-the-nineties/LICENSE new file mode 100644 index 0000000..ee4048c --- /dev/null +++ b/themes/ch0ccy-in-the-nineties/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2023 ch0ccyra1n + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/ch0ccy-in-the-nineties/archetypes/default.md b/themes/ch0ccy-in-the-nineties/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/ch0ccy-in-the-nineties/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/ch0ccy-in-the-nineties/layouts/404.html b/themes/ch0ccy-in-the-nineties/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/ch0ccy-in-the-nineties/layouts/_default/baseof.html b/themes/ch0ccy-in-the-nineties/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/themes/ch0ccy-in-the-nineties/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/themes/ch0ccy-in-the-nineties/layouts/_default/list.html b/themes/ch0ccy-in-the-nineties/layouts/_default/list.html new file mode 100644 index 0000000..cf6b9ee --- /dev/null +++ b/themes/ch0ccy-in-the-nineties/layouts/_default/list.html @@ -0,0 +1,17 @@ +{{ define "main" }} +
+
+
+
+

{{ .Title }}

+ {{ .Content }} + {{ range .Pages }} + + {{ end }} +
+
+
+
+{{ end }} \ No newline at end of file diff --git a/themes/ch0ccy-in-the-nineties/layouts/_default/single.html b/themes/ch0ccy-in-the-nineties/layouts/_default/single.html new file mode 100644 index 0000000..2659a85 --- /dev/null +++ b/themes/ch0ccy-in-the-nineties/layouts/_default/single.html @@ -0,0 +1,17 @@ +{{ define "main" }} +
+
+
+

{{ .Title }}

+
+

| + {{ .ReadingTime }} {{ if eq .ReadingTime 1 }} minute {{ else }} minutes {{ end }} read +

+
+
+ {{ .Content }} +
+
+
+
+{{ end }} \ No newline at end of file diff --git a/themes/ch0ccy-in-the-nineties/layouts/index.html b/themes/ch0ccy-in-the-nineties/layouts/index.html new file mode 100644 index 0000000..a6eefa7 --- /dev/null +++ b/themes/ch0ccy-in-the-nineties/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/themes/ch0ccy-in-the-nineties/layouts/partials/footer.html b/themes/ch0ccy-in-the-nineties/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/ch0ccy-in-the-nineties/layouts/partials/head.html b/themes/ch0ccy-in-the-nineties/layouts/partials/head.html new file mode 100644 index 0000000..f649039 --- /dev/null +++ b/themes/ch0ccy-in-the-nineties/layouts/partials/head.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/ch0ccy-in-the-nineties/layouts/partials/header.html b/themes/ch0ccy-in-the-nineties/layouts/partials/header.html new file mode 100644 index 0000000..2758309 --- /dev/null +++ b/themes/ch0ccy-in-the-nineties/layouts/partials/header.html @@ -0,0 +1,7 @@ +
+
+ Home + Posts + Contact +
+
\ No newline at end of file diff --git a/themes/ch0ccy-in-the-nineties/static/css/style.css b/themes/ch0ccy-in-the-nineties/static/css/style.css new file mode 100644 index 0000000..f75a72d --- /dev/null +++ b/themes/ch0ccy-in-the-nineties/static/css/style.css @@ -0,0 +1,40 @@ +body { + background-color: black; + color: silver; + font-size: 125%; + line-height: 1.5; + margin: 0 auto; +} + +img { + max-width: 100%; + height: auto; +} + +a { + color: red; +} + +h1, h2, h3, h4, h5, h6 { + color: yellow; +} + +#content { + margin-left: 160px; + padding: 0px 10px; +} + +.sidenav { + height: 75%; + width: 160px; +} + +.sidenav a { + padding: 6px 8px 6px 16px; + display: block; +} + +.badge{ + display: inline; + text-decoration: none; +} \ No newline at end of file diff --git a/themes/ch0ccy-in-the-nineties/theme.toml b/themes/ch0ccy-in-the-nineties/theme.toml new file mode 100644 index 0000000..dd5b116 --- /dev/null +++ b/themes/ch0ccy-in-the-nineties/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Ch0ccy In The Nineties" +license = "MIT" +licenselink = "https://gitlab.com/ch0ccyra1n/ch0ccyra1n.gitlab.io/-/tree/no-masters/themes/ch0ccy-in-the-nineties/LICENSE" +description = "" +homepage = "https://ch0ccyra1n.gitlab.io" +tags = [] +features = [] +min_version = "0.41.0" + +[author] + name = "ch0ccyra1n" + homepage = "https://ch0ccyra1n.gitlab.io" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = "" diff --git a/themes/hugo-classic b/themes/hugo-classic deleted file mode 160000 index 2148343..0000000 --- a/themes/hugo-classic +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2148343bbcadff4ff6ef5d2bc0cf95f74ce6837d