this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Rename blog entries, restructure some templates to make use of lua

Tholp 3af1483e 8f80bc6b

+125 -69
+21
skid/404.sk
··· 16 16 </div> 17 17 18 18 <script> 19 + function redirectIfNeeded() 20 + { 21 + // Urls ive changed the name of after publication 22 + let routes = [ 23 + ["/blog/blog1.html", "/blog/is_this_thing_on.html"], 24 + ["/blog/blog2.html", "/blog/skidmark_overview.html"], 25 + ["/blog/blog3.html", "/blog/rainy_bass.html"], 26 + ["/blog/blog4.html", "/blog/went_hiking.html"], 27 + ["/blog/blog5.html", "/blog/sourcemod_dev_linux.html"], 28 + ["/blog/blog6.html", "/blog/its_raining.html"], 29 + ]; 30 + 31 + routes.forEach((route) => { 32 + if ( route[0] == window.location.pathname ) { 33 + window.location.replace(route[1]); 34 + return; 35 + } 36 + }) 37 + } 38 + 19 39 function setFakeGifText() 20 40 { 21 41 var d = document.getElementById("gifheader"); ··· 23 43 d.textContent = "Trying to visit " + text; 24 44 } 25 45 46 + redirectIfNeeded(); 26 47 setFakeGifText(); 27 48 </script> 28 49
+1 -1
skid/blog/atom.sk
··· 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <feed xmlns="http://www.w3.org/2005/Atom"> 3 3 4 - <title>The Thlog</title> 4 + <title>Tholp's Blog</title> 5 5 <link href="http://tholps.site/"/> 6 6 <id>https://tholps.site/</id> 7 7 <updated>!time()</updated>
+3 -17
skid/blog/blog1.sk skid/blog/is_this_thing_on.sk
··· 1 1 !insert("//style.sk") 2 2 !insert("blog_templates.sk") 3 3 4 - !blog_post( 1 "Is This Thing On?" "2025-06-02" "The 'thlog'? probably not.") 4 + !blog_post( "Is This Thing On?" "2025-06-02" "The 'thlog'? probably not.") 5 5 {{{ 6 6 Yo. 7 7 ··· 12 12 13 13 And heres what it looks as you're reading this: 14 14 <div class="divcenter"> 15 - <iframe style="width: 95%; height:55%;" src="/blog/blog1.html" title="Tholps site" referer></iframe> 15 + <iframe style="width: 95%; height:55%;" src="/!output_filename()" title="Tholps site" referer></iframe> 16 16 </div> 17 17 18 18 Pretty nice right? ··· 37 37 }}} 38 38 39 39 }}} 40 - &section(){{{ 41 - <div align="center" height="1.5em" class="blog_nav downpour_collide"> 42 - 43 - ~~previous~~ 44 - 45 - [home](/) 46 - 47 - <a href="/blog/atom.atom">atom feed</a> 48 - 49 - [index](/blog) 50 - 51 - [next](blog2.html) 52 - 53 - </div> 54 - }}} 40 + &blog_nav() 55 41 56 42 &bsky_comments("https://bsky.app/profile/tholps.site/post/3ltqahiza722p") 57 43
+2 -2
skid/blog/blog2.sk skid/blog/skidmark_overview.sk
··· 1 1 !insert("//style.sk") 2 2 !insert("blog_templates.sk") 3 3 4 - !blog_post( 2 "An Overview on Skidmark" "2025-07-11" "Nominative determinism in software") 4 + !blog_post( "An Overview on Skidmark" "2025-07-11" "Nominative determinism in software") 5 5 {{{ 6 6 This post will cover the current features and some future plans of my tool I've been working on, [Skidmark](https://github.com/Tholp1/Skidmark). If you have no interest in such a thing avert your eyes. 7 7 ··· 534 534 }}} 535 535 536 536 }}} 537 - &blog_nav("blog1.html" "blog3.html") 537 + &blog_nav() 538 538 539 539 540 540 &bsky_comments("https://bsky.app/profile/tholps.site/post/3ltqai4cwsc23")
+2 -2
skid/blog/blog3.sk skid/blog/rainy_bass.sk
··· 1 1 !insert("//style.sk") 2 2 !insert("blog_templates.sk") 3 3 4 - !blog_post( 3 "Rainy Bass" "2025-07-30" "Not fishing for compliments") 4 + !blog_post( "Rainy Bass" "2025-07-30" "Not fishing for compliments") 5 5 {{{ 6 6 This is the first post I've written since this website has been public and I'm glad to say things went mostly smooth, just had to fix some css for mobile. Everything is just static content so not really anything that could go wrong that I wouldn't have caught beforehand but I was still a bit nervous - in a cool and relaxed way though. 7 7 ··· 35 35 Thats all for now, see you soon. 36 36 37 37 }}} 38 - &blog_nav("blog2.html" "blog4.html") 38 + &blog_nav() 39 39 40 40 &bsky_comments("closed") 41 41
+2 -2
skid/blog/blog4.sk skid/blog/went_hiking.sk
··· 1 1 !insert("//style.sk") 2 2 !insert("blog_templates.sk") 3 3 4 - !blog_post( 4 "Went hiking" "2025-10-30" "Pictures of rocks and trees") 4 + !blog_post( "Went hiking" "2025-10-30" "Pictures of rocks and trees") 5 5 {{{ 6 6 This past weekend my family and I went hiking in Matthiessen State Park since we were nearby. I took some pictures of cool trees and cool rocks. 7 7 ··· 23 23 24 24 !note("psst, I've added an atom feed to the blog ↓ though if you're reading this when it came out you probably already know about it") 25 25 }}} 26 - &blog_nav("blog3.html" "blog5.html") 26 + &blog_nav() 27 27 28 28 &bsky_comments("closed") 29 29
+2 -2
skid/blog/blog5.sk skid/blog/sourcemod_dev_linux.sk
··· 2 2 !insert("blog_templates.sk") 3 3 &insert("//templates_generic.sk") 4 4 5 - !blog_post( 5 "Sourcemod Development on Linux" "2026-01-27" "Sharing some scripts and things I know") 5 + !blog_post( "Sourcemod Development on Linux" "2026-01-27" "Sharing some scripts and things I know") 6 6 {{{ 7 7 Over the last couple of months I have been asked by a couple of people how to or how I do a specific thing when developing Sourcemods on Linux, so it's probably a good idea to just aggregate parts of those conversations into a short little something I can just point people towards ~~instead of talking to them because I **HATE THEM** 😈~~. 8 8 ··· 220 220 ``` 221 221 222 222 }}} 223 - &blog_nav("blog4.html" "blog6.html") 223 + &blog_nav() 224 224 &bsky_comments("https://bsky.app/profile/tholps.site/post/3mdha26n2ss2e") 225 225 226 226 &copy_footer()
+3 -3
skid/blog/blog6.sk skid/blog/its_raining.sk
··· 1 1 &insert("//style.sk") 2 2 !insert("blog_templates.sk") 3 3 4 - !blog_post( 6 "It's Raining?" "2026-01-28" "I talk about a website update &amp; the new year.") {{{ 4 + !blog_post( "It's Raining?" "2026-01-28" "I talk about a website update &amp; the new year.") {{{ 5 5 Ok, stop for a second. 6 6 7 7 I don't want to alarm you in case you haven't noticed, but it has begun to rain and it's getting my website all wet :(. ··· 29 29 }}} 30 30 31 31 }}} 32 - &blog_nav_no_next("blog5.html" "blog7.html") 32 + &blog_nav() 33 33 34 34 &bsky_comments("closed") 35 35 36 - &copy_footer() 36 + &copy_footer()
+25 -26
skid/blog/blog_templates.sk
··· 1 1 !insert("//templates_generic.sk") 2 2 3 - !template(blog_nav prev next) 4 - {{{ 5 - <div align="center" height="1.5em" class="blog_nav downpour_collide"> 3 + !template(blog_nav) {{{ 6 4 7 - [previous]([[prev]]) 5 + $[ 6 + index = !groupindex() 8 7 9 - [home](/) 10 - 11 - <a href="/blog/atom.atom">atom feed</a> 12 - 13 - [index](/blog) 8 + isprev = index > 1 9 + isnext = files[index + 1] ~= nil 10 + ] 14 11 15 - [next]([[next]]) 12 + <div align="center" height="1.5em" class="blog_nav downpour_collide"> 16 13 17 - </div> 14 + !if($[isprev]){{{ 15 + [previous](/!output_filename($[files[ index - 1 ]])) 16 + }}} !if($[not isprev]) {{{ 17 + ~~previous~~ 18 18 }}} 19 19 20 - !template(blog_nav_no_next prev next) 21 - {{{ 22 - <div align="center" height="1.5em" class="blog_nav downpour_collide"> 23 - 24 - [previous]([[prev]]) 25 - 26 20 [home](/) 27 21 28 22 <a href="/blog/atom.atom">atom feed</a> 29 23 30 24 [index](/blog) 31 25 32 - ~~next~~ 33 - 34 - <!-- [next]([[next]]) --> 26 + !if($[isnext]) {{{ 27 + [next](/!output_filename($[files[ index + 1 ]])) 28 + }}} !if($[not isnext]) {{{ 29 + ~~next~~ 30 + }}} 35 31 36 32 </div> 33 + 34 + 37 35 }}} 38 36 39 - !template(blog_post number title date desc) 37 + !template(blog_post title date desc) 40 38 {{{ 41 39 &downpour() 42 - &page_title("Blog #[[number]]: [[title]]") 43 - &basic_embed("Blog #[[number]]: [[title]]" "[[desc]]") 40 + $[number = !groupindex()] 44 41 45 - !&section(number){{{[[number]]}}} 42 + &page_title("Blog #$[number]: [[title]]") 43 + &basic_embed("Blog #$[number]: [[title]]" "[[desc]]") 44 + 46 45 !&section(title){{{[[title]]}}} 47 46 !&section(date){{{[[date]]}}} 48 47 !&section(blurb){{{[[desc]]}}} ··· 59 58 60 59 <div align="center" class="blog_container downpour_collide"> 61 60 <!-- <sub>#[[number]]</sub>--> 62 - !colored("#[[number]]" #0F0) 61 + !colored("#$[number]" #0F0) 63 62 64 - !&section(){{{ <a style="color: #009900;" href="blog[[number]].html"> <h1> [[title]] </h1> </a> }}} 63 + !&section(){{{ <a style="color: #009900;" href="/!output_filename()"> <h1> [[title]] </h1> </a> }}} 65 64 66 65 &section(){{{ <h1> [[title]] </h1> }}} 67 66
+15 -3
skid/blog/index.sk
··· 12 12 <a href="/blog/atom.atom">atom feed</a> 13 13 14 14 </header> 15 - 15 + $[ 16 + files = { 17 + !for_each_file_in_group( f blog ) 18 + {{{ 19 + "[[f..1]]", 20 + }}} 21 + } 22 + count = 0 23 + for i, v in ipairs(files) do 24 + count = i 25 + end 26 + ] 16 27 !for_each_file_in_group_reverse( post "blog" ) {{{ 17 28 <div align="center" style="color: #cac123;" class="blog_container downpour_collide"> 18 - <a href="blog!insert("[[post..1]]" "number").html"> 19 - <h1>!colored("#!insert("[[post..1]]" "number"):" #00FF00) !insert("[[post..1]]" "title")</h1> 29 + <a href="/!output_filename([[post..1]])"> 30 + <h1>!colored("#$[count]:" #00FF00) !insert("[[post..1]]" "title")</h1> 20 31 <h4>!insert("[[post..1]]" "date") - !insert("[[post..1]]" "blurb")</h4> 21 32 </a> 22 33 </div> 34 + $[count = count - 1] 23 35 }}} 24 36 25 37
-8
skid/blog/test.sk
··· 1 - s 2 - 3 - ```html 4 - 5 - \!template(test2 a){{{ [[b]] }}} 6 - tewst 7 - 8 - ```
+21
skid/templates_generic.sk
··· 101 101 <a id="downpour_open_settings" onclick="document.getElementById('downpour_settings').style.display = 'block';document.getElementById('downpour_open_settings').style.display = 'none';">Open Settings</a> 102 102 <script type="module" src="/res/scripts/downpour/glue.js" defer></script> 103 103 }}} 104 + 105 + !template(groupindex) {{{ 106 + $[ 107 + files = { 108 + !for_each_file_in_group( f $["!groupname()"] ) 109 + {{{ 110 + "[[f..1]]", 111 + }}} 112 + } 113 + 114 + curfile = "!filename()" 115 + index = -1 116 + 117 + for i, v in ipairs(files) do 118 + if curfile == v then 119 + index = i 120 + end 121 + end 122 + return index 123 + ] 124 + }}}
+23
skid/test.sk
··· 1 1 test1 2 + $[ 3 + a = "hi" .. " world " 4 + a = a .. ( 67 + 420 ) .. " !filename() :)" 5 + ] 6 + 7 + 8 + junk and stuff 9 + 10 + 11 + $[a] 12 + 13 + $[b = "//sometihng.sk"] 14 + 15 + 16 + $[hello = 10] 17 + 18 + !if($[hello < 5]) {{{ 19 + small 20 + }}} 21 + 22 + !if($[hello > 5]) {{{ 23 + big 24 + }}}
+4 -1
skidmark.toml
··· 5 5 [fileGroups] 6 6 7 7 [fileGroups.blog] 8 - files = ["blog/blog1.sk", "blog/blog2.sk", "blog/blog3.sk", "blog/blog4.sk", "blog/blog5.sk", "blog/blog6.sk"] 8 + files = ["blog/is_this_thing_on.sk", "blog/skidmark_overview.sk", "blog/rainy_bass.sk", "blog/went_hiking.sk", "blog/sourcemod_dev_linux.sk", "blog/its_raining.sk"] 9 9 10 10 [fileGroups.misc] 11 11 files = ["index.sk", "blog/index.sk", "404.sk", "sinister.sk", "junk-drawer.sk", "changelog.sk"] ··· 14 14 files = ["blog/atom.sk"] 15 15 outputExtention = "atom" 16 16 convertHTML = false 17 + 18 + [fileGroups.test] 19 + files = ["test.sk"]
+1 -2
startlocal.sh
··· 1 1 #!/bin/bash 2 2 cd $(dirname $0) 3 - skidmark 4 - podman run -it --rm --name tholps-site -p 8080:80 -v ./httpd.conf:/usr/local/apache2/conf/httpd.conf -v ./content:/usr/local/apache2/htdocs/ httpd:2.4 3 + skidmark && podman run -it --rm --name tholps-site -p 8080:80 -v ./httpd.conf:/usr/local/apache2/conf/httpd.conf -v ./content:/usr/local/apache2/htdocs/ httpd:2.4