From efe2dafd1df63a8d21ec1d215ad330fed747dedc Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Mon, 18 Nov 2024 17:10:08 +0200 Subject: [PATCH] it ugly but it is getting there --- Makefile | 3 +- _data/projects.yml | 31 ++++++++- _posts/faster-steam-downloads.md | 20 ++++++ _posts/test-post.md | 9 --- config/config.exs | 4 +- lib/layouts/page_layout.ex | 6 +- lib/layouts/post_layout.ex | 2 + lib/layouts/projects_layout.ex | 12 ++++ lib/layouts/root_layout.ex | 34 +++++----- lib/pages/about_page.ex | 4 +- lib/pages/blog_page.ex | 4 +- lib/pages/home_page.ex | 14 +++- lib/pages/projects_page.ex | 35 ++++------ static/css/site.css | 112 ++++++++++++++++++++++++++++++- static/js/site.js | 9 +++ test-post.md | 36 ---------- 16 files changed, 233 insertions(+), 102 deletions(-) create mode 100644 _posts/faster-steam-downloads.md delete mode 100644 _posts/test-post.md create mode 100644 lib/layouts/projects_layout.ex create mode 100644 static/js/site.js delete mode 100644 test-post.md diff --git a/Makefile b/Makefile index ffdbe67..892e423 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,5 @@ clean: rm -fr _build/ _site/ publish: - ssh criminallycute.fi "rm -r /var/www/criminallycute.fi/public" - scp -Cr _site criminallycute.fi:/var/www/criminallycute.fi/public + rsync -avz _site/* criminallycute.fi:/var/www/criminallycute.fi/public diff --git a/_data/projects.yml b/_data/projects.yml index 5c579aa..21506cc 100644 --- a/_data/projects.yml +++ b/_data/projects.yml @@ -1,5 +1,30 @@ - active: - - name: test - link: https://some.site + - name: criminallycute.fi + link: https://code.criminallycute.fi/CriminallyCute/website description: | - Fleet bilge rat hang the jib Sail ho dead men tell no tales gibbet yardarm galleon. Bowsprit long boat cackle fruit draft chandler scurvy crimp black spot lugger Sea Legs. + This current website. It is written in Elixir. + - name: Escia + link: + description: | + My long-time tabletop roleplaying world and ruleset. Currently + digitising all of it and doing some formatting updates before + it is ready to show off fully. It is Creative Commons licensed. + + - name: Unpleasant Hammer Princess + link: + description: | + A 2d platformer that is mostly learning how to use godot. + +- inactive: + - name: ameliabot + link: https://code.criminallycute.fi/siina/ameliabot + description: | + An owncast bot I had been working on. Wanted to make it work on twitch too + but project priorities have changed and this is now on the backburner. + +- archived: + - name: siina.monster + link: https://code.criminallycute.fi/siina/siina.monster + description: | + An old instance of my noter blog. It was a nice idea but I decided to + combine it with criminallycute.fi diff --git a/_posts/faster-steam-downloads.md b/_posts/faster-steam-downloads.md new file mode 100644 index 0000000..1faad22 --- /dev/null +++ b/_posts/faster-steam-downloads.md @@ -0,0 +1,20 @@ +--- +layout: Website.PostLayout +title: Faster Steam Downloads +date: 2024-02-28 +categories: blog +permalink: /blog/faster-steam-downloads +--- + +To get faster steam downloads in linux: + +create `~/.steam/steam/steam_dev.cfg` and add: + +```elixir +@nClientDownloadEnableHTTP2PlatformLinux 0 +@fDownloadRateImprovementToAddAnotherConnection 1.0 +``` + +restart steam, start a download, and you should notice a better download rate. + +for me it went from capping at 100mbps to now going 500+mbps like it should. diff --git a/_posts/test-post.md b/_posts/test-post.md deleted file mode 100644 index 10d50e1..0000000 --- a/_posts/test-post.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -layout: Website.PostLayout -title: Test Post -date: 2024-11-08 -categories: post -permalink: /blog/test-post ---- - -TEST POST PLEASE IGNORE diff --git a/config/config.exs b/config/config.exs index bb3c1b1..51f739e 100644 --- a/config/config.exs +++ b/config/config.exs @@ -4,6 +4,7 @@ config :tableau, :reloader, patterns: [ ~r"^lib/.*.ex", ~r"^(_posts|_pages)/.*.md", + ~r"%(_notes|_notes)/.*.md", ~r"assets/.*.(css|js)", ] @@ -17,7 +18,7 @@ config :tableau, :config, mdex: [ extension: [table: true, header_ids: "", tasklist: true, strikethrough: true], render: [unsafe_: true], - features: [syntax_highlight_theme: "kanagawa"] + features: [syntax_highlight_theme: "nord"] ] ] @@ -34,4 +35,3 @@ config :tableau, Tableau.RSSExtension, config :elixir, :time_zone_database, Tz.TimeZoneDatabase import_config "#{Mix.env()}.exs" - diff --git a/lib/layouts/page_layout.ex b/lib/layouts/page_layout.ex index dfb90c5..50a89f8 100644 --- a/lib/layouts/page_layout.ex +++ b/lib/layouts/page_layout.ex @@ -4,9 +4,9 @@ defmodule Website.PageLayout do def template(assigns) do ~H""" -
- <%= {:safe, render(@inner_content)} %> -
+
+ <%= {:safe, render(@inner_content)} %> +
""" end end diff --git a/lib/layouts/post_layout.ex b/lib/layouts/post_layout.ex index 2dbb02b..6a2f484 100644 --- a/lib/layouts/post_layout.ex +++ b/lib/layouts/post_layout.ex @@ -4,7 +4,9 @@ defmodule Website.PostLayout do def template(assigns) do ~H""" +
<%= {:safe, render(@inner_content)} %> +
""" end end diff --git a/lib/layouts/projects_layout.ex b/lib/layouts/projects_layout.ex new file mode 100644 index 0000000..54e5755 --- /dev/null +++ b/lib/layouts/projects_layout.ex @@ -0,0 +1,12 @@ +defmodule Website.ProjectsLayout do + use Tableau.Layout, layout: Website.RootLayout + use Phoenix.Component + + def template(assigns) do + ~H""" +
+ <%= {:safe, render(@inner_content)} %> +
+ """ + end +end diff --git a/lib/layouts/root_layout.ex b/lib/layouts/root_layout.ex index 24f431b..4690f12 100644 --- a/lib/layouts/root_layout.ex +++ b/lib/layouts/root_layout.ex @@ -17,22 +17,21 @@ defmodule Website.RootLayout do + +