From af74689d846ea4bf8cda00b71da00b758802eec4 Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Fri, 4 Jul 2025 00:19:58 -0400 Subject: [PATCH] General theme changes & Fixing warnings --- content/post/tf2classic-docker/index.md | 14 +++--- .../hugo-theme-stack/assets/scss/general.scss | 2 - themes/hugo-theme-stack/assets/scss/grid.scss | 5 +-- .../assets/scss/partials/layout/article.scss | 9 ++++ .../assets/scss/partials/menu.scss | 24 ++++++++++ .../assets/scss/partials/sidebar.scss | 4 ++ .../assets/scss/partials/widgets.scss | 14 ++++++ .../partials/comments/provider/disqusjs.html | 2 +- .../layouts/partials/head/style.html | 2 +- .../layouts/partials/sidebar/left.html | 44 +++++++++++-------- .../layouts/partials/widget/toc.html | 11 ++--- 11 files changed, 93 insertions(+), 38 deletions(-) diff --git a/content/post/tf2classic-docker/index.md b/content/post/tf2classic-docker/index.md index 6c3aa98..8e827f4 100644 --- a/content/post/tf2classic-docker/index.md +++ b/content/post/tf2classic-docker/index.md @@ -19,7 +19,7 @@ I created this Docker image for my own servers, but have released it for anyone ## How to use this image ### Hosting a simple game server -Running on the *host* interface (recommended):
+Running on the *host* interface (recommended): ```console $ docker run -d -it --net=host --name=tf2classic -e SRCDS_TOKEN={YOURTOKEN} litltoast/tf2-classic ``` @@ -37,11 +37,12 @@ $ docker run -d -it --net=host --name=tf2classic-2 -e SRCDS_PORT=27016 -e SRCDS_ ``` `SRCDS_TOKEN` **is required to be listed & reachable. Generate one here using AppID `243750`:** -[https://steamcommunity.com/dev/managegameservers](https://steamcommunity.com/dev/managegameservers)

-`SRCDS_WORKSHOP_AUTHKEY` **is required to use workshop features:** -[https://steamcommunity.com/dev/apikey](https://steamcommunity.com/dev/apikey)
+[https://steamcommunity.com/dev/managegameservers](https://steamcommunity.com/dev/managegameservers) -**It's also recommended to use "--cpuset-cpus=" to limit the game server to a specific core & thread.**
+`SRCDS_WORKSHOP_AUTHKEY` **is required to use workshop features:** +[https://steamcommunity.com/dev/apikey](https://steamcommunity.com/dev/apikey) + +**It's also recommended to use "--cpuset-cpus=" to limit the game server to a specific core & thread.** ## Configuration ### Environment Variables @@ -76,8 +77,5 @@ If you want to learn more about configuring a TF2 server check this [documentati ### `tf2-classic:latest` This is the only image -## Contributors -[![Contributors Display](https://badges.pufler.dev/contributors/joshuafhiggins/TF2-Classic?size=50&padding=5&bots=false)](https://github.com/joshuafhiggins/TF2-Classic/graphs/contributors) - ## The Making of the Image The original image from cm2network used `git clone` to pull the `entry.sh` script changes into the image. This meant that new containers would not get the entry script changes, unless the whole image was scrapped and rebuilt. Docker doesn't rebuild images if the `Dockerfile` hasn't changed, but the image needs to change if the script has changed. The solution was to simply use the `COPY` command in the `Dockerfile`. Besides that, making the Docker image was smooth. I plan on making one for [my Discord bot](https://discord.gg/b48D4m8jNs) next and to find other cool services to spin up on my home server. \ No newline at end of file diff --git a/themes/hugo-theme-stack/assets/scss/general.scss b/themes/hugo-theme-stack/assets/scss/general.scss index 77b3adb..fac8257 100644 --- a/themes/hugo-theme-stack/assets/scss/general.scss +++ b/themes/hugo-theme-stack/assets/scss/general.scss @@ -18,8 +18,6 @@ a { .section-title { text-transform: uppercase; - margin-top: 0; - margin-bottom: 10px; display: block; font-size: 1.6rem; font-weight: bold; diff --git a/themes/hugo-theme-stack/assets/scss/grid.scss b/themes/hugo-theme-stack/assets/scss/grid.scss index 9284da9..6a45dff 100644 --- a/themes/hugo-theme-stack/assets/scss/grid.scss +++ b/themes/hugo-theme-stack/assets/scss/grid.scss @@ -91,10 +91,9 @@ main.main { .main-container { min-height: 100vh; align-items: flex-start; - padding: 0 15px; gap: var(--section-separation); - padding-top: var(--main-top-padding); - + padding: var(--main-top-padding) 15px 0; + @include respond(md) { padding: 0 20px; } diff --git a/themes/hugo-theme-stack/assets/scss/partials/layout/article.scss b/themes/hugo-theme-stack/assets/scss/partials/layout/article.scss index ac9b76a..9828af5 100644 --- a/themes/hugo-theme-stack/assets/scss/partials/layout/article.scss +++ b/themes/hugo-theme-stack/assets/scss/partials/layout/article.scss @@ -14,6 +14,15 @@ box-shadow: var(--shadow-l1); overflow: hidden; + @media (max-width:768px) { + border-radius: unset; + width: 100vw; + position: relative; + left: 50%; + transform: translateX(-50%); + max-width: none; + } + .article-header { .article-image { img { diff --git a/themes/hugo-theme-stack/assets/scss/partials/menu.scss b/themes/hugo-theme-stack/assets/scss/partials/menu.scss index 281dc3a..7e3d78b 100644 --- a/themes/hugo-theme-stack/assets/scss/partials/menu.scss +++ b/themes/hugo-theme-stack/assets/scss/partials/menu.scss @@ -218,6 +218,30 @@ flex-direction: row; gap: 10px; + @media (max-width: 768px) { + display: none; + } + + svg { + width: 24px; + height: 24px; + stroke: var(--body-text-color); + stroke-width: 1.33; + } +} + +.social-menu-waffle { + list-style: none; + padding: 0; + margin: 0; + display: flex; + flex-direction: row; + gap: 10px; + + @media (min-width: 768px) { + display: none; + } + svg { width: 24px; height: 24px; diff --git a/themes/hugo-theme-stack/assets/scss/partials/sidebar.scss b/themes/hugo-theme-stack/assets/scss/partials/sidebar.scss index a6a77c5..3cf05f9 100644 --- a/themes/hugo-theme-stack/assets/scss/partials/sidebar.scss +++ b/themes/hugo-theme-stack/assets/scss/partials/sidebar.scss @@ -90,6 +90,10 @@ flex-direction: column; gap: var(--sidebar-element-separation); + @media (max-width: 768px) { + flex-direction: row; + } + @include respond(md) { padding: 0; } diff --git a/themes/hugo-theme-stack/assets/scss/partials/widgets.scss b/themes/hugo-theme-stack/assets/scss/partials/widgets.scss index 42cfcc2..6680623 100644 --- a/themes/hugo-theme-stack/assets/scss/partials/widgets.scss +++ b/themes/hugo-theme-stack/assets/scss/partials/widgets.scss @@ -14,6 +14,13 @@ /* Tag cloud widget */ .tagCloud { + a { + display: flex; + flex-direction: row; + gap: 1rem; + align-items: center; + } + .tagCloud-tags { display: flex; flex-wrap: wrap; @@ -43,6 +50,13 @@ background-color: var(--card-background); } + a { + display: flex; + flex-direction: row; + gap: 1rem; + align-items: center; + } + .archives-year { &:not(:last-of-type) { border-bottom: 1.5px solid var(--card-separator-color); diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/disqusjs.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/disqusjs.html index 8dbcc13..500bb0c 100644 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/disqusjs.html +++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/disqusjs.html @@ -2,7 +2,7 @@ {{- $disqusjs := .Site.Params.Comments.disqusjs -}} {{- if and (not $pc.Disable) (and $disqusjs.Shortname $disqusjs.ApiKey) -}} -{{- $style := resources.Get "scss/partials/comments/disqusjs.scss" | resources.ToCSS | minify -}} +{{- $style := resources.Get "scss/partials/comments/disqusjs.scss" | css.Sass | minify -}}
diff --git a/themes/hugo-theme-stack/layouts/partials/head/style.html b/themes/hugo-theme-stack/layouts/partials/head/style.html index ee6b017..1df17c6 100644 --- a/themes/hugo-theme-stack/layouts/partials/head/style.html +++ b/themes/hugo-theme-stack/layouts/partials/head/style.html @@ -1,3 +1,3 @@ {{ $sass := resources.Get "scss/style.scss" }} -{{ $style := $sass | resources.ToCSS | minify | resources.Fingerprint "sha256" }} +{{ $style := $sass | css.Sass | minify | resources.Fingerprint "sha256" }} \ No newline at end of file diff --git a/themes/hugo-theme-stack/layouts/partials/sidebar/left.html b/themes/hugo-theme-stack/layouts/partials/sidebar/left.html index 32e5a12..3ed2210 100644 --- a/themes/hugo-theme-stack/layouts/partials/sidebar/left.html +++ b/themes/hugo-theme-stack/layouts/partials/sidebar/left.html @@ -1,10 +1,4 @@
+ + {{- with .Site.Menus.social -}} @@ -76,18 +76,6 @@ {{ end }} diff --git a/themes/hugo-theme-stack/layouts/partials/widget/toc.html b/themes/hugo-theme-stack/layouts/partials/widget/toc.html index e311de3..56cd09c 100644 --- a/themes/hugo-theme-stack/layouts/partials/widget/toc.html +++ b/themes/hugo-theme-stack/layouts/partials/widget/toc.html @@ -1,11 +1,12 @@ {{ if (.Context.Scratch.Get "TOCEnabled") }}
-
- {{ partial "helper/icon" "hash" }} -
-

{{ T "article.tableOfContents" }}

-
+
+
+ {{ partial "helper/icon" "hash" }} +
+

{{ T "article.tableOfContents" }}

+
{{ .Context.TableOfContents }}