diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2022-08-10 18:42:13 +0200 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2022-08-10 19:11:42 +0200 |
commit | 51497a91d412dd7f03824ec58a039d371e8b1bfa (patch) | |
tree | 87a0694e806fc5b7feeba7defef4754669329376 | |
parent | c8a6c4eed5011758d8eaa18639cc546b017d922b (diff) |
rss feed: add description
-rw-r--r-- | 20211011-browsing-gems.md | 4 | ||||
-rw-r--r-- | 20220105-advent-of-code-2021.md | 4 | ||||
-rwxr-xr-x | makesite.pl | 15 | ||||
-rw-r--r-- | static/index.md | 2 | ||||
-rw-r--r-- | template/rss-item.xml | 2 |
5 files changed, 18 insertions, 9 deletions
diff --git a/20211011-browsing-gems.md b/20211011-browsing-gems.md index 0973fa7..c246052 100644 --- a/20211011-browsing-gems.md +++ b/20211011-browsing-gems.md @@ -2,7 +2,9 @@ October 11, 2021 -Lately, I've been browsing small articles that I decided to call "gems" for the purpose of this article's title. And in my opinion they are actually gems. It all stems from my recent discovery of [Gemini](https://gemini.circumlunar.space/), which is a new internet protocol. According to the project page, it "is heavier than gopher, lighter than the web, will not replace either". Basically it's like a text-based web experience. It's mostly static and clutter-free, a gemini document looks like a traditional web page after you've activated the "reading mode" of your browser, except with Gemini it's *native*. Sounds good doesn't it? Among other things I love about geminispace are the absence of ads, or annoying cookie banners, or auto-play videos, or pages that make your laptop scream while loading... I could keep listing things I don't like about the modern web, but I'm sure you've got the gist of it. +Lately, I've been browsing small articles that I decided to call "gems" for the purpose of this article's title. And in my opinion they are actually gems. It all stems from my recent discovery of Gemini, which is a new internet protocol. + +According to the project page, it "is heavier than gopher, lighter than the web, will not replace either". Basically it's like a text-based web experience. It's mostly static and clutter-free, a gemini document looks like a traditional web page after you've activated the "reading mode" of your browser, except with [Gemini](https://gemini.circumlunar.space/) it's *native*. Sounds good doesn't it? Among other things I love about geminispace are the absence of ads, or annoying cookie banners, or auto-play videos, or pages that make your laptop scream while loading... I could keep listing things I don't like about the modern web, but I'm sure you've got the gist of it. By now you may be thinking "sounds good, how do I hop on?". All you need is a Gemini browser really. I use [Lagrange](https://gmi.skyjake.fi/lagrange/) on my computer and [Elaho](https://github.com/pitr/gemini-ios) on my phone. The [Gemini software](https://gemini.circumlunar.space/software/) page lists some clients you can choose from. What I found on Gemini (those links require a Gemini browser): diff --git a/20220105-advent-of-code-2021.md b/20220105-advent-of-code-2021.md index a35e3e1..4eb0ccd 100644 --- a/20220105-advent-of-code-2021.md +++ b/20220105-advent-of-code-2021.md @@ -2,9 +2,9 @@ January 5th, 2022 -This year, or rather last year, I decided to participate in the [Advent of code](https://adventofcode.com). This post will explain why and how I decided to do it, but also reflect on my progress since it's well over now. +This year, or rather last year, I decided to participate in the Advent of code. This post will explain why and how I decided to do it, but also reflect on my progress since it's well over now. -One of the great things about the Advent of code is that you can participate with whatever language you choose. So instead of coding in a language I'm comfortable with, I decided to go with C, for the following reasons: +One of the great things about the [Advent of code](https://adventofcode.com) is that you can participate with whatever language you choose. So instead of coding in a language I'm comfortable with, I decided to go with C, for the following reasons: * it's been 10+ years since I last programmed in C, and I wanted to dive back into it * maybe I can learn some "modern" C features as I will be targeting C11 diff --git a/makesite.pl b/makesite.pl index 92064c5..83bbce4 100755 --- a/makesite.pl +++ b/makesite.pl @@ -57,16 +57,23 @@ while(<*.md>) { open my $articleHandle, "<", $articleFile; my $headLine = <$articleHandle>; $headLine = substr $headLine, 2, -1; + + # Extract description : first paragraph of the article + my $description = ""; + while(my $line = <$articleHandle>) { + if($. == 5) { + $description = $line; + last; + } + } + $description =~ s/\R//; # remove any new line + $description .= ".."; # to have "..." at the end of description close $articleHandle; # Extract output file name: MD file name without the date my $pageFile = substr $articleFile, 9, -3; $pageFile .= ".html"; - # Extract description - # TODO - my $description = ""; - # Build article my $articleContent = read_file $articleFile; $articleContent = markdown $articleContent; diff --git a/static/index.md b/static/index.md index 9bf570a..ab2ee66 100644 --- a/static/index.md +++ b/static/index.md @@ -1,2 +1,2 @@ -Hello and welcome, my name is Vincent and you've landed on the small space where I ramble mainly about IT and occasionally other topics. You can check my articles below, my [git repos](git.vdouillet.fr) or the [about](/about.html) page. +Hello and welcome, my name is Vincent and you've landed on the small space where I ramble mainly about IT and occasionally other topics. You might be interested in the [RSS feed](/rss.xml), my [git repos](git.vdouillet.fr) or the [about](/about.html) page. diff --git a/template/rss-item.xml b/template/rss-item.xml index 77b6e88..0a86187 100644 --- a/template/rss-item.xml +++ b/template/rss-item.xml @@ -2,6 +2,6 @@ <title>$title</title> <link>$link</link> <description>$description</description> -<guid>$guid</guid> +<guid isPermaLink="false">$guid</guid> <pubDate>$pubDate</pubDate> </item> |