aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/categories.html40
-rw-r--r--_includes/feed.atom90
-rw-r--r--_includes/i18n-date.html20
-rw-r--r--_includes/link-listing.html23
-rw-r--r--_includes/music-listing.html18
-rw-r--r--_includes/public-inbox.html27
6 files changed, 0 insertions, 218 deletions
diff --git a/_includes/categories.html b/_includes/categories.html
deleted file mode 100644
index 7f1e4cd..0000000
--- a/_includes/categories.html
+++ /dev/null
@@ -1,40 +0,0 @@
-{% assign entries_with_categories = "" | split:"" %}
-{% for entry in site[include.kind] %}
- {% if entry.lang == page.lang %}
- {% if entry.eu_categories %}
- {% assign entries_with_categories = entries_with_categories | push:entry %}
- {% endif %}
- {% endif %}
-{% endfor %}
-{% assign entries_with_categories = entries_with_categories | reverse %}
-
-{% assign categories = "" | split:"" %}
-{% for entry in entries_with_categories %}
- {% assign entry_categories = entry.eu_categories | split:"," %}
- {% for entry_category in entry_categories %}
- {% assign categories = categories | push:entry_category %}
- {% endfor %}
-{% endfor %}
-
-{% assign unique_categories = categories | sort | uniq %}
-{% for category in unique_categories %}
- {% assign feed_link = "feed." | append:include.kind | append:"-by-category." | append:page.lang | append:"." | append:category | append:".atom" | replace:" ", "-" %}
- <h2 id="{{ category | replace:" ", "-" }}">
- <a href="#{{ category | replace:" ", "-" }}">{{ category }}</a>
- <a href="{% link {{ feed_link }} %}">
- <img class="simple-icon" src="/static/atom.svg" alt="{{ site.t.alt.atom[page.lang] }}" />
- </a>
- </h2>
- <ul>
- {% for entry in entries_with_categories %}
- {% assign entry_categories = entry.eu_categories | split:"," %}
- {% for entry_category in entry_categories %}
- {% if category == entry_category %}
- <li>
- <a href="{{ entry.url | relative_url }}">{{ entry.title | escape }}</a> - {% include i18n-date.html date=entry.date %}
- </li>
- {% endif %}
- {% endfor %}
- {% endfor %}
- </ul>
-{% endfor %}
diff --git a/_includes/feed.atom b/_includes/feed.atom
deleted file mode 100644
index 6ea84b3..0000000
--- a/_includes/feed.atom
+++ /dev/null
@@ -1,90 +0,0 @@
-{% assign
- is_audio=site.atom[include.kind].audio
-%}{% assign
- is_video=site.atom[include.kind].video
-%}<?xml version="1.0" encoding="UTF-8"?>
- {% if is_audio or is_video %}
- <rss version="2.0"
- xmlns:atom="http://www.w3.org/2005/Atom">
- <channel>
- <title>{{ site.title | smartify | xml_escape }}</title>
- <description>{{ site.t[include.kind].feed.title[include.lang] | smartify | xml_escape }}</description>
- <link>{{ page.url | absolute_url | xml_escape }}</link>
- <atom:link href="{{ page.url | absolute_url | xml_escape }}" rel="self" type="application/atom+xml" />
- <language>{{ include.lang }}</language>
- <copyright>CC BY-SA 4.0</copyright>
-
- <lastBuildDate>{{ site.time | date_to_xmlschema }}</lastBuildDate>
- <docs>http://blogs.law.harvard.edu/tech/rss</docs>
-
- <author>{{ site.author.name | xml_escape }} 3</author>
- <webMaster>{{ site.author.email | xml_escape }} ({{ site.author.name | xml_escape }})</webMaster>
- <image>
- <url>{{ '/' | absolute_url | xml_escape }}static/lord-favicon.png</url>
- <link>{{ page.url | absolute_url | xml_escape }}</link>
- <title>{{ site.t[include.kind].feed.title[include.lang] }}</title>
- </image>
- {% else %}
- <feed
- xmlns="http://www.w3.org/2005/Atom"
- xmlns:content="http://purl.org/rss/1.0/modules/content/"
- xml:lang="{{ include.lang }}">
- <link href="{{ page.url | absolute_url | xml_escape }}" rel="self" type="application/atom+xml" />
- <link href="{{ '/' | absolute_url | xml_escape }}" rel="alternate" type="text/html" hreflang="{{ include.lang }}" />
- <title>{{ site.title | xml_escape }}</title>
- <subtitle>{{ site.t[include.kind].feed.title[include.lang] | smartify | xml_escape }}</subtitle>
- <id>{{ page.url | absolute_url | xml_escape }}</id>
- <updated>{{ site.time | date_to_xmlschema }}</updated>
-
- <author>
- <name>{{ site.author.name | xml_escape }}</name>
- <email>{{ site.author.email | xml_escape }}</email>
- </author>
- {% endif %}
-
- {% assign entries = include.entries | where:"lang", include.lang | has_category:include.categories_filter | sort: "date" | reverse %}
- {% for entry in entries %}
- {% if is_audio or is_video %}
- <item>
- <title>{{ entry.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
- <link>{{ entry.url | absolute_url | xml_escape }}</link>
- <guid>{{ entry.url | absolute_url | xml_escape }}</guid>
- <description xml:base="{{ entry.url | absolute_url | xml_escape }}">
- {{ entry.content | strip | xml_escape }}
- </description>
- {% if is_audio %}
- <enclosure url="{{ entry.url | replace: ".html", ".ogg" | absolute_url | xml_escape }}" type="audio/ogg" />
- {% elsif is_video %}
- <enclosure url="{{ entry.url | replace: ".html", ".webm.torrent" | absolute_url | xml_escape }}" type="application/x-bittorrent" />
- {% endif %}
- <category>EuAndreh</category>
- <pubDate>{{ entry.date | date_to_xmlschema }}</pubDate>
- </item>
- {% else %}
- <entry xml:lang="{{ entry.lang }}">
- <title type="html">{{ entry.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
- <link href="{{ entry.url | absolute_url | xml_escape }}" rel="alternate" type="text/html" title="{{ entry.title | xml_escape }}" />
- <published>{{ entry.date | date_to_xmlschema }}</published>
- <updated>{{ entry.updated_at | default: entry.date | date_to_xmlschema }}</updated>
- <id>{{ entry.url | absolute_url | xml_escape }}</id>
-
- <content type="html" xml:base="{{ entry.url | absolute_url | xml_escape }}">
- {{ entry.content | strip | xml_escape }}
- </content>
-
- <author>
- <name>{{ site.author.name | xml_escape }}</name>
- <email>{{ site.author.email | xml_escape }}</email>
- </author>
-
- <summary type="html">{{ entry.excerpt | strip_html | normalize_whitespace | xml_escape }}</summary>
- </entry>
- {% endif %}
- {% endfor %}
-
-{% if is_audio or is_video %}
- </channel>
- </rss>
-{% else %}
- </feed>
-{% endif %}
diff --git a/_includes/i18n-date.html b/_includes/i18n-date.html
deleted file mode 100644
index c57d93b..0000000
--- a/_includes/i18n-date.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{% capture i18n_month %}
-{% assign m = include.date | date: "%-m" | minus: 1 %}
-{{ site.t.months[page.lang][m] }}
-{% endcapture %}
-{% if page.lang == "en" %}
- {% comment %}
- handcrafting the "%B %-d, %Y" date format
- {% endcomment %}
- {{ i18n_month }}{{ include.date | date: "%-d, %Y" }}
-{% elsif page.lang == "pt" %}
- {% comment %}
- handcrafting the "%-d de %B de %Y" date format
- {% endcomment %}
- {{ include.date | date: "%-d de " }}{{ i18n_month }}{{ include.date | date: " de %Y" }}
-{% elsif page.lang == "fr" %}
- {% comment %}
- handcrafting the "%-d de %B de %Y" date format
- {% endcomment %}
- {{ include.date | date: "%-d de " }}{{ i18n_month }}{{ include.date | date: " de %Y" }}
-{% endif %}
diff --git a/_includes/link-listing.html b/_includes/link-listing.html
deleted file mode 100644
index 2d89070..0000000
--- a/_includes/link-listing.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<h2>
- {{ site.t[include.kind].listing[page.lang] }}
- <a href="{{ site.t[include.kind].feed.url[page.lang] }}">
- <img class="simple-icon" src="/static/atom.svg" alt="{{ site.t.alt.atom[page.lang] }}" />
- </a>
-</h2>
-
-<ul class="no-style">
- {% assign entries = site[include.kind] | where:"lang", page.lang | sort: "date" | reverse %}
- {% for entry in entries %}
- <li>
- {% include i18n-date.html date=entry.date %}
- <br />
- <a href="{{ entry.url | relative_url }}">{{ entry.title | escape }}</a>
- </li>
- {% endfor %}
-</ul>
-
-<h2>
- <a href="{% link {{ site.t[include.kind].category.url[page.lang] }} %}">
- {{ site.t[include.kind].category.name[page.lang] }}
- </a>
-</h2>
diff --git a/_includes/music-listing.html b/_includes/music-listing.html
deleted file mode 100644
index 34d6930..0000000
--- a/_includes/music-listing.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<h3>
- {{ site.t.music.scores[page.lang] }}
-</h3>
-
-<ul class="no-style">
-
-{% for m in site.musics | sort: "composer" %}
- <li>
- {{ m.composer }}
- <br />
- <a href="{% link music/{{ m.ref }}.pdf %}">{{ m.title }}</a>
- <br />
- <audio controls>
- <source src="{% link music/{{ m.ref }}.ogg %}" type="audio/ogg" />
- </audio>
- </li>
-{% endfor %}
-</ul>
diff --git a/_includes/public-inbox.html b/_includes/public-inbox.html
deleted file mode 100644
index 9be48ea..0000000
--- a/_includes/public-inbox.html
+++ /dev/null
@@ -1,27 +0,0 @@
-{% comment %}
- This snippet need to be an include and not simply a string entry in
- _config.yml. This is because the page.title needs to be injected in the
- comment link, and putting it as pieces of a string in _config.yml would make
- it harder to understand.
-{% endcomment %}
-{% if page.lang == 'en' %}
- <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | uri_escape }}">Comment</a>
- and see
- <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | uri_escape }}">existing discussions</a>
- | <a href="https://euandre.org/git/euandre.org/tree/{{ page.path }}">view source</a>
-{% elsif page.lang == 'pt' %}
- <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | uri_escape }}">Comente</a>
- e veja
- <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | uri_escape }}">as discussões existentes</a>
- | <a href="https://euandre.org/git/euandre.org/tree/{{ page.path }}">ver fonte</a>
-{% elsif page.lang == 'fr' %}
- <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | uri_escape }}">Commenter</a>
- et afficher
- <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | uri_escape }}">les discussion existantes</a>
- | <a href="https://euandre.org/git/euandre.org/tree/{{ page.path }}">voir source</a>
-{% elsif page.lang == 'eo' %}
- <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | uri_escape }}">Komentu</a>
- kaj
- <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | uri_escape }}">vidi ekzistantajn diskutojn</a>
- | <a href="https://euandre.org/git/euandre.org/tree/{{ page.path }}">vidu fontkodo</a>
-{% endif %}