From 40013704cf16f53468940a7d0160b40e8241a87c Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 17 Sep 2024 07:16:43 +0200 Subject: Remove jekyll MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a complete rewrite of my blog to a vastly simpler form. That is, we only need HTML and a couple of build scripts to have something equivalent, without all the dependencies that jekyll brings. I have also taken the chance to remove a lot of stuff that was actually not needed. Signed-off-by: Miquel Sabaté Solà --- _includes/assets.html | 5 ---- _includes/date.html | 41 ------------------------- _includes/favicon.html | 13 -------- _includes/feed.html | 2 -- _includes/footer.html | 13 -------- _includes/grid.html | 80 ------------------------------------------------- _includes/header.html | 45 ---------------------------- _includes/listtags.html | 21 ------------- _includes/meta.html | 5 ---- _includes/postmeta.html | 22 -------------- _includes/social.html | 22 -------------- _includes/tags.html | 18 ----------- _includes/title.html | 23 -------------- 13 files changed, 310 deletions(-) delete mode 100644 _includes/assets.html delete mode 100644 _includes/date.html delete mode 100644 _includes/favicon.html delete mode 100644 _includes/feed.html delete mode 100644 _includes/footer.html delete mode 100644 _includes/grid.html delete mode 100644 _includes/header.html delete mode 100644 _includes/listtags.html delete mode 100644 _includes/meta.html delete mode 100644 _includes/postmeta.html delete mode 100644 _includes/social.html delete mode 100644 _includes/tags.html delete mode 100644 _includes/title.html (limited to '_includes') diff --git a/_includes/assets.html b/_includes/assets.html deleted file mode 100644 index e0db38b..0000000 --- a/_includes/assets.html +++ /dev/null @@ -1,5 +0,0 @@ -{% comment %}{% endcomment %} - - -{% comment %}{% endcomment %} - diff --git a/_includes/date.html b/_includes/date.html deleted file mode 100644 index 47aa3cb..0000000 --- a/_includes/date.html +++ /dev/null @@ -1,41 +0,0 @@ - -{% assign day = include.date | date: "%-d" %} -{% capture day %}{{ day }}{% endcapture %} - -{% case day %} -{% when "1" or "11" %} - {% capture pre %} l'{% endcapture %} -{% else %} - {% capture pre %} el {% endcapture %} -{% endcase %} - -{% assign month = include.date | date: "%-m" %} -{% case month %} -{% when "1" %} - {% capture month %}gener{% endcapture %} -{% when "2" %} - {% capture month %}febrer{% endcapture %} -{% when "3" %} - {% capture month %}març{% endcapture %} -{% when "4" %} - {% capture month %}abril{% endcapture %} -{% when "5" %} - {% capture month %}maig{% endcapture %} -{% when "6" %} - {% capture month %}juny{% endcapture %} -{% when "7" %} - {% capture month %}juliol{% endcapture %} -{% when "8" %} - {% capture month %}agost{% endcapture %} -{% when "9" %} - {% capture month %}setembre{% endcapture %} -{% when "10" %} - {% capture month %}octubre{% endcapture %} -{% when "11" %} - {% capture month %}novembre{% endcapture %} -{% when "12" %} - {% capture month %}desembre{% endcapture %} -{% endcase %} - -{% assign year = include.date | date: "%Y" %} -{% capture year %}{{ year }}{% endcapture %} diff --git a/_includes/favicon.html b/_includes/favicon.html deleted file mode 100644 index a0284b9..0000000 --- a/_includes/favicon.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/_includes/feed.html b/_includes/feed.html deleted file mode 100644 index a8fdaf2..0000000 --- a/_includes/feed.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/_includes/footer.html b/_includes/footer.html deleted file mode 100644 index 9423e87..0000000 --- a/_includes/footer.html +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/_includes/grid.html b/_includes/grid.html deleted file mode 100644 index dcaa799..0000000 --- a/_includes/grid.html +++ /dev/null @@ -1,80 +0,0 @@ -
-
- {% if include.hasfeed %} -

- {% t titles.blog %} - - - {% if site.lang == "ca" %} - RSS - {% else %} - RSS Feed - {% endif %} - -

- {% endif %} - -

- {% if include.index %} - {% t index.intro %} - {% t titles.writingsu %} - {% t index.after %} - {% t titles.blogu %}. - {% t index.final %} - {% elsif include.writings %} - {% t writings.intro %} - {% elsif include.misc %} - {% t misc.intro %} - {% else %} - {% t blog.intro %} - {% endif %} -

- -

- {% t tags.filtering_by %}: - . - {% t tags.click %} {% t tags.here %} {% t tags.to_cancel %}. -

-
- -
- {% t blog.empty_search %} -
- -
- {% if page.url == "/" %} - {% assign posts = site.posts | where:"lang",site.lang| where:"blogpost",true %} - {% elsif page.url == "/blog/" %} - {% assign posts = site.posts | where:"lang",site.lang | where:"blogpost",true %} - {% elsif page.url == "/misc/" %} - {% assign posts = site.posts | where:"lang",site.lang | where:"misc",true %} - {% else %} - {% assign posts = site.posts | where:"lang",site.lang | where:"blogpost",false | where:"misc",false %} - {% endif %} - - {% capture posts_count %}{{ posts | size }}{% endcapture %} - {% if posts_count == "0" %} -
{% t blog.empty %}
- {% endif %} - - {% for post in posts %} - {% if site.lang == post.lang %} -
- -

- {{ post.title }} -

-
- {% if post.subtitle %}

{{ post.subtitle }}

{% endif %} - - {% include postmeta.html date=post.date tags=post.tags %} - -
- {{ post.content | truncatewords: 50 | strip_html }} - [{% t blog.read %} {% t blog.more %}] -
-
- {% endif %} - {% endfor %} -
-
diff --git a/_includes/header.html b/_includes/header.html deleted file mode 100644 index 61e5491..0000000 --- a/_includes/header.html +++ /dev/null @@ -1,45 +0,0 @@ -{% if site.tags != "" %} - {% include tags.html %} -{% endif %} - - diff --git a/_includes/listtags.html b/_includes/listtags.html deleted file mode 100644 index 068eb55..0000000 --- a/_includes/listtags.html +++ /dev/null @@ -1,21 +0,0 @@ -
-{% for tag in include.tags %} - {% capture tag_name %}{{ tag }}{% endcapture %} - - {% if include.urltobeused == "" %} - {% assign url = page.url | append: "/blog" %} - {% else %} - {% assign url = "/blog" %} - {% endif %} - - {% if site.lang == "ca" %} - {% capture tag_url %}{{ url }}?tag={{ tag_name }}{% endcapture %} - {% else %} - {% capture tag_url %}en/{{ url }}?tag={{ tag_name }}{% endcapture %} - {% endif %} - - - {{ tag_name }} - -{% endfor %} -
diff --git a/_includes/meta.html b/_includes/meta.html deleted file mode 100644 index a7a0d2c..0000000 --- a/_includes/meta.html +++ /dev/null @@ -1,5 +0,0 @@ - - - -{% capture description %}{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}{% endcapture %} - diff --git a/_includes/postmeta.html b/_includes/postmeta.html deleted file mode 100644 index d9cc684..0000000 --- a/_includes/postmeta.html +++ /dev/null @@ -1,22 +0,0 @@ - diff --git a/_includes/social.html b/_includes/social.html deleted file mode 100644 index d3c06ab..0000000 --- a/_includes/social.html +++ /dev/null @@ -1,22 +0,0 @@ -{% comment %}{% endcomment %} -{% if site.lang == "ca" %} - - - -{% else %} - - - -{% endif %} - - - -{% render_type_tags %} - -{% comment %}{% endcomment %} - - - - - -{% render_og_image %} diff --git a/_includes/tags.html b/_includes/tags.html deleted file mode 100644 index 0f187e5..0000000 --- a/_includes/tags.html +++ /dev/null @@ -1,18 +0,0 @@ -{% assign rawtags = "" %} -{% for post in site.posts %} - {% assign ttags = post.tags | join:'|' | append:'|' %} - {% assign rawtags = rawtags | append:ttags %} -{% endfor %} -{% assign rawtags = rawtags | split:'|' | sort %} - -{% assign site.tags = "" %} -{% for tag in rawtags %} - {% if tag != "" %} - {% if tags == "" %} - {% assign tags = tag | split:'|' %} - {% endif %} - {% unless tags contains tag %} - {% assign tags = tags | join:'|' | append:'|' | append:tag | split:'|' %} - {% endunless %} - {% endif %} -{% endfor %} diff --git a/_includes/title.html b/_includes/title.html deleted file mode 100644 index d167a8b..0000000 --- a/_includes/title.html +++ /dev/null @@ -1,23 +0,0 @@ -{% comment %} - -{% endcomment %} -{% if page.title %} - {% if page.title contains "titles." %} - {% capture title %}{{ site.title }} - {% t page.title %}{% endcapture %} - {% capture raw_title %}{% t page.title %}{% endcapture %} - {% else %} - {% capture title %}{{ site.title }} - {{ page.title }}{% endcapture %} - {% capture raw_title %}{{ page.title }}{% endcapture %} - {% endif %} -{% else %} - {% capture title %}{{ site.title }}{% endcapture %} - {% capture raw_title %}{% endcapture %} -{% endif %} - -{{ title }} -- cgit v1.2.3