From deac28735f843aa4a2bcab309b343caa2bfffbb1 Mon Sep 17 00:00:00 2001 From: mms Date: Tue, 3 Dec 2024 21:54:54 +0100 Subject: links --- assets/more/bookmarks.yml | 33 ++++++++++++++++++++-- assets/more/links.yml | 6 ++++ assets/webbuttons_31/dillo2.gif | Bin 0 -> 1899 bytes bin/bookmark | 9 ++++-- layouts/shortcodes/bookmarks-all.html | 23 ++++++++------- themes/24-unification/layouts/_default/index.html | 2 ++ 6 files changed, 56 insertions(+), 17 deletions(-) create mode 100644 assets/webbuttons_31/dillo2.gif 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 new file mode 100644 index 0000000..850d4df Binary files /dev/null and b/assets/webbuttons_31/dillo2.gif differ 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 }} - + {{ if not (eq $oldDate .date) }} + {{ if not (eq $oldDate "aaa") }} {{ end }} +

{{ .date }}

+