diff options
author | mms <git@sapka.me> | 2024-12-03 21:54:54 +0100 |
---|---|---|
committer | mms <git@sapka.me> | 2024-12-03 21:54:54 +0100 |
commit | deac28735f843aa4a2bcab309b343caa2bfffbb1 (patch) | |
tree | e9ac45e0c59e64a2bf56affb5203cb8c1aed54c9 | |
parent | 1fa238ef9c2044b28853b49f347bd8afd0683c2d (diff) |
links
-rw-r--r-- | assets/more/bookmarks.yml | 33 | ||||
-rw-r--r-- | assets/more/links.yml | 6 | ||||
-rw-r--r-- | assets/webbuttons_31/dillo2.gif | bin | 0 -> 1899 bytes | |||
-rwxr-xr-x | bin/bookmark | 9 | ||||
-rw-r--r-- | layouts/shortcodes/bookmarks-all.html | 23 | ||||
-rw-r--r-- | themes/24-unification/layouts/_default/index.html | 2 |
6 files changed, 56 insertions, 17 deletions
diff --git a/assets/more/bookmarks.yml b/assets/more/bookmarks.yml index 9701679..70b98b5 100644 --- a/assets/more/bookmarks.yml +++ b/assets/more/bookmarks.yml @@ -37,8 +37,7 @@ bookmarks: date: '2024-11-24' host: danluu.com - url: https://datatracker.ietf.org/doc/html/rfc1288 - title: "\n \n RFC 1288 - The Finger User Information Protocol\n - \ \n " + title: RFC 1288 - The Finger User Information Protocol date: '2024-11-24' host: datatracker.ietf.org - url: https://tumfatig.net/2024/running-web-browsers-in-freebsd-jail/ @@ -99,3 +98,33 @@ bookmarks: host: 9to5google.com source_url: https://tech.slashdot.org/story/24/11/26/0029213/googles-ios-app-now-injects-links-on-third-party-websites-that-go-back-to-search source_host: tech.slashdot.org +- url: https://www.youtube.com/watch?v=DestaWfHDIk + title: 'Let''s Code MS DOS 0x01: Hello World!' + date: '2024-12-03' + host: youtube.com + source_url: + source_host: +- url: https://www.theverge.com/2024/12/3/24312016/chatgpt-search-results-review-inaccurate-unpredictable + title: ChatGPTโs search results for news are โunpredictableโ and frequently inaccurate + date: '2024-12-03' + host: theverge.com + source_url: + source_host: +- url: https://www.freebsd.org/releases/14.2R/announce/ + title: FreeBSD 14.2-RELEASE Announcement + date: '2024-12-03' + host: freebsd.org + source_url: + source_host: +- url: https://blog.infected.systems/posts/2024-12-01-no-nat-november/ + title: 'No NAT November: My Month Without IPv4' + date: '2024-12-03' + host: blog.infected.systems + source_url: https://lobste.rs/s/ftizih/no_nat_november_my_month_without_ipv4 + source_host: lobste.rs +- url: https://stfn.pl/blog/28-intro-to-meshtastic/ + title: My first steps in Meshtastic + date: '2024-12-03' + host: stfn.pl + source_url: + source_host: diff --git a/assets/more/links.yml b/assets/more/links.yml index 1605a38..ae76b3b 100644 --- a/assets/more/links.yml +++ b/assets/more/links.yml @@ -230,3 +230,9 @@ links: Url: https://slashdot.org Description: The classic website with news for nerds Button: slashdot.gif + - + Title: jdd's Home Page + Url: https://jdd.freeshell.org/ + Description: A gret directory of the cool part of web + + diff --git a/assets/webbuttons_31/dillo2.gif b/assets/webbuttons_31/dillo2.gif Binary files differnew file mode 100644 index 0000000..850d4df --- /dev/null +++ b/assets/webbuttons_31/dillo2.gif diff --git a/bin/bookmark b/bin/bookmark index eb22730..6d229ee 100755 --- a/bin/bookmark +++ b/bin/bookmark @@ -28,15 +28,18 @@ bookmark.source_host = URI.parse(bookmark[:source_url]).host.gsub(/^www\./, '') URI.parse(bookmark[:url]).open({ ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE }) do |page| noko = Nokogiri::HTML(page) title = noko.xpath('//title').first.content + title = title.gsub("\n", " ") # remove known page title craps title = case bookmark.host + when 'arstechnica.com' then title.gsub(/\s-\sArs Technica$/, '') + when 'blog.thechases.com' then title.gsub(/\s\|\sTim's blog$/, '') when 'brainbaking.com' then title.gsub(/\s\|\sBrain Baking$/, '') + when 'freebsd.org' then title.gsub(/\s\|\sThe FreeBSD Project$/, '') + when 'servethehome.com' then title.gsub(/\s-\sServeTheHome$/, '') + when 'theverge.com' then title.gsub(/\s-\sThe Verge$/, '') when 'vermaden.wordpress.com' then title.gsub(/\s\|\s๐๐๐๐๐๐๐๐$/, '') when 'youtube.com' then title.gsub(/\s-|\sYouTube$/, '') - when 'blog.thechases.com' then title.gsub(/\s\|\sTim's blog$/, '') - when 'arstechnica.com' then title.gsub(/\s-\sArs Technica$/, '') - when 'servethehome.com' then title.gsub(/\s-\sServeTheHome$/, '') else title end diff --git a/layouts/shortcodes/bookmarks-all.html b/layouts/shortcodes/bookmarks-all.html index 4520ad4..6b9eb47 100644 --- a/layouts/shortcodes/bookmarks-all.html +++ b/layouts/shortcodes/bookmarks-all.html @@ -1,19 +1,18 @@ {{- $caption := .Inner }} {{ $lastLetter := "Dupa" }} +{{ $oldDate := "aaa" }} {{ with resources.Get "more/bookmarks.yml"}} {{ with . | transform.Unmarshal }} -<ul> {{ range (sort .bookmarks ".date" "desc") }} - <li> - {{ .date }} - - - <a href="{{ .url }}">{{ .title }}</a> - ({{ .host }}) - {{ if .source_url }} - (via <a href="{{ .source_url }}">{{ .source_host }}</a>) - {{ end }} - - {{ end }} -</ul> + {{ if not (eq $oldDate .date) }} + {{ if not (eq $oldDate "aaa") }} </ul>{{ end }} + <h3>{{ .date }}</h3> + <ul> + {{ end }} + {{ $oldDate = .date }} + <li><a href="{{ .url }}">{{ .title }}</a> + ({{ .host }}) + {{ if .source_url }}(via <a href="{{ .source_url }}">{{ .source_host }}</a>){{ end }} + {{ end }} {{ end }} {{ end }} diff --git a/themes/24-unification/layouts/_default/index.html b/themes/24-unification/layouts/_default/index.html index b168a8e..591f7f8 100644 --- a/themes/24-unification/layouts/_default/index.html +++ b/themes/24-unification/layouts/_default/index.html @@ -18,6 +18,7 @@ <p> Nothing here was created with the use of GenAI. </p> +<p> {{ range where .Site.RegularPages.ByDate.Reverse ".Params.nolist" "<>" true }} {{$newDate := .PublishDate.Format "2006"}} @@ -33,6 +34,7 @@ {{ $oldDate = $newDate }} {{ end }} +</p> </div> </article> {{ end }} |