aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Gemfile1
-rw-r--r--_config.yml3
-rw-r--r--_layouts/default.html3
-rw-r--r--_layouts/index.html38
-rw-r--r--_layouts/page.html10
-rw-r--r--_layouts/pastebin.html11
-rw-r--r--_layouts/pastebins.html38
-rw-r--r--_layouts/post.html36
l---------_pastebins1
-rw-r--r--_posts/2018-08-01-verifying-npm-ci-reproducibility.md5
-rw-r--r--_posts/2018-12-21-using-youtube-dl-to-manage-youtube-subscriptions.md2
-rw-r--r--pastebins/failure-on-guix-tex-live-importer.md8
-rw-r--r--pastebins/inconsistent-hash-of-buildgomodule.md6
-rw-r--r--pastebins/nix-exps.md6
-rw-r--r--pastebins/nix-show-derivation.md6
-rw-r--r--pastebins/raku-tuple-type-annotation.md6
16 files changed, 76 insertions, 104 deletions
diff --git a/Gemfile b/Gemfile
index 6eead05..413f583 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,7 +1,6 @@
source "https://rubygems.org"
gem "jekyll"
-# gem "minima"
group :jekyll_plugins do
gem "jekyll-feed"
diff --git a/_config.yml b/_config.yml
index 595377c..a5385ff 100644
--- a/_config.yml
+++ b/_config.yml
@@ -27,3 +27,6 @@ exclude:
- vendor/
- spelling/
- scripts/
+
+collections:
+ - pastebins
diff --git a/_layouts/default.html b/_layouts/default.html
index fc9befd..9fa116e 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -16,7 +16,7 @@
</div>
<div id="nav-right">
<a href="/about.html">About</a>
- <a href="/feed.atom">
+ <a href="/feed.xml">
<img class="simple-icon" src="/images/atom.svg" alt="Blog feed" />
</a>
</div>
@@ -24,6 +24,7 @@
</header>
<main role="main">
+ <h1>{{ page.title }}</h1>
{{ content }}
</main>
diff --git a/_layouts/index.html b/_layouts/index.html
index 8f8ac79..675d9e0 100644
--- a/_layouts/index.html
+++ b/_layouts/index.html
@@ -1,34 +1,10 @@
---
layout: default
---
-
-<div class="home">
- {%- if page.title -%}
- <h1 class="page-heading">{{ page.title }}</h1>
- {%- endif -%}
-
- {{ content }}
-
- {%- if site.posts.size > 0 -%}
- <h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
- <ul class="post-list">
- {%- for post in site.posts -%}
- <li>
- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
- <span class="post-meta">{{ post.date | date: date_format }}</span>
- <h3>
- <a class="post-link" href="{{ post.url | relative_url }}">
- {{ post.title | escape }}
- </a>
- </h3>
- {%- if site.show_excerpts -%}
- {{ post.excerpt }}
- {%- endif -%}
- </li>
- {%- endfor -%}
- </ul>
-
- <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
- {%- endif -%}
-
-</div>
+<ul>
+ {%- for post in site.posts -%}
+ <li>
+ <a href="{{ post.url }}">{{ post.title | escape }}</a> - {{ post.date | date: "%b %-d, %Y" }}
+ </li>
+ {%- endfor -%}
+</ul>
diff --git a/_layouts/page.html b/_layouts/page.html
index 01e4b2a..57116c1 100644
--- a/_layouts/page.html
+++ b/_layouts/page.html
@@ -2,13 +2,5 @@
layout: default
---
<article class="post">
-
- <header class="post-header">
- <h1 class="post-title">{{ page.title | escape }}</h1>
- </header>
-
- <div class="post-content">
- {{ content }}
- </div>
-
+ {{ content }}
</article>
diff --git a/_layouts/pastebin.html b/_layouts/pastebin.html
new file mode 100644
index 0000000..51194d7
--- /dev/null
+++ b/_layouts/pastebin.html
@@ -0,0 +1,11 @@
+---
+layout: default
+---
+<article>
+ <section class="header">
+ Posted on {{ page.date | date: "%b %-d, %Y" }}
+ </section>
+ <section>
+ {{ content }}
+ </section>
+</article>
diff --git a/_layouts/pastebins.html b/_layouts/pastebins.html
index 0740a04..6b7830c 100644
--- a/_layouts/pastebins.html
+++ b/_layouts/pastebins.html
@@ -1,34 +1,10 @@
---
layout: default
---
-
-<div class="home">
- {%- if page.title -%}
- <h1 class="page-heading">{{ page.title }}</h1>
- {%- endif -%}
-
- {{ content }}
-
- {%- if site.posts.size > 0 -%}
- <h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
- <ul class="post-list">
- {%- for post in site.posts -%}
- <li>
- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
- <span class="post-meta">{{ post.date | date: date_format }}</span>
- <h3>
- <a class="post-link" href="{{ post.url | relative_url }}">
- {{ post.title | escape }}
- </a>
- </h3>
- {%- if site.show_excerpts -%}
- {{ post.excerpt }}
- {%- endif -%}
- </li>
- {%- endfor -%}
- </ul>
-
- <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
- {%- endif -%}
-
-</div>
+<ul>
+ {%- for pastebin in site.pastebins -%}
+ <li>
+ <a href="{{ pastebin.url | relative_url }}">{{ pastebin.title | escape }}</a> - {{ pastebin.date | date: "%b %-d, %Y" }}
+ </li>
+ {%- endfor -%}
+</ul>
diff --git a/_layouts/post.html b/_layouts/post.html
index abf9696..bdaa3f8 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -1,27 +1,19 @@
---
layout: default
---
-<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
-
- <header class="post-header">
- <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
- <p class="post-meta">
- <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
- {{ page.date | date: date_format }}
- </time>
- {%- if page.author -%}
- • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
- {%- endif -%}</p>
- </header>
-
- <div class="post-content e-content" itemprop="articleBody">
+<article>
+ <section class="header">
+ Posted on {{ page.date | date: "%b %-d, %Y" }}
+ </section>
+ <section>
{{ content }}
- </div>
-
- {%- if site.disqus.shortname -%}
- {%- include disqus_comments.html -%}
- {%- endif -%}
-
- <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
+ </section>
+ <section>
+ <p>Have a comment on this post? Start a discussion
+ in my <a href="https://lists.sr.ht/~euandreh/public-inbox">public inbox</a>
+ by sending an email to <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | escape }}">~euandreh/public-inbox@lists.sr.ht</a>
+ [<a href="https://man.sr.ht/lists.sr.ht/etiquette.md">mailing list etiquette</a>],
+ or see <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | escape }}">existing discussions</a>.
+ </p>
+ </section>
</article>
diff --git a/_pastebins b/_pastebins
new file mode 120000
index 0000000..e0bcac8
--- /dev/null
+++ b/_pastebins
@@ -0,0 +1 @@
+pastebins \ No newline at end of file
diff --git a/_posts/2018-08-01-verifying-npm-ci-reproducibility.md b/_posts/2018-08-01-verifying-npm-ci-reproducibility.md
index 5f6954b..efb5fea 100644
--- a/_posts/2018-08-01-verifying-npm-ci-reproducibility.md
+++ b/_posts/2018-08-01-verifying-npm-ci-reproducibility.md
@@ -1,8 +1,9 @@
---
-title: Verifying \<code\>npm ci\</code\> reproducibility
+title: Verifying "npm ci" reproducibility
date: 2018-08-01
layout: post
---- When
+---
+When
[npm\@5](https://blog.npmjs.org/post/161081169345/v500) came bringing
[package-locks](https://docs.npmjs.com/files/package-locks) with it, I
was confused about the benefits it provided, since running `npm install`
diff --git a/_posts/2018-12-21-using-youtube-dl-to-manage-youtube-subscriptions.md b/_posts/2018-12-21-using-youtube-dl-to-manage-youtube-subscriptions.md
index c548146..21b6686 100644
--- a/_posts/2018-12-21-using-youtube-dl-to-manage-youtube-subscriptions.md
+++ b/_posts/2018-12-21-using-youtube-dl-to-manage-youtube-subscriptions.md
@@ -1,5 +1,5 @@
---
-title: Using \<code\>youtube-dl\</code\> to manage YouTube subscriptions
+title: Using "youtube-dl" to manage YouTube subscriptions
date: 2018-12-21
layout: post
---
diff --git a/pastebins/failure-on-guix-tex-live-importer.md b/pastebins/failure-on-guix-tex-live-importer.md
index 410d768..5280c38 100644
--- a/pastebins/failure-on-guix-tex-live-importer.md
+++ b/pastebins/failure-on-guix-tex-live-importer.md
@@ -1,6 +1,10 @@
---- title: Failure on Guix TeX Live importer date: 2020-01-04 ---
+---
+title: Failure on Guix TeX Live importer
+date: 2020-01-04
+layout: pastebin
+---
-``` {.shell .numberLines startFrom=""}
+```shell
$ guix import texlive fontspec
redirection vers « https://ctan.org/xml/1.2/pkg/fontspec »...
Backtrace:
diff --git a/pastebins/inconsistent-hash-of-buildgomodule.md b/pastebins/inconsistent-hash-of-buildgomodule.md
index 3cdc823..87663c5 100644
--- a/pastebins/inconsistent-hash-of-buildgomodule.md
+++ b/pastebins/inconsistent-hash-of-buildgomodule.md
@@ -1,4 +1,8 @@
---- title: Inconsistent hash of buildGoModule date: 2019-06-08 ---
+---
+title: Inconsistent hash of buildGoModule
+date: 2019-06-08
+layout: pastebin
+---
[FIXED](https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2).
The [commit that made this
diff --git a/pastebins/nix-exps.md b/pastebins/nix-exps.md
index 426d681..d2ad658 100644
--- a/pastebins/nix-exps.md
+++ b/pastebins/nix-exps.md
@@ -1,4 +1,8 @@
---- title: Nix Stuff date: 2018-07-25 ---
+---
+title: Nix Stuff
+date: 2018-07-25
+layout: pastebin
+---
``` {.nix .numberLines startFrom=""}
let
diff --git a/pastebins/nix-show-derivation.md b/pastebins/nix-show-derivation.md
index 2daec81..d60d443 100644
--- a/pastebins/nix-show-derivation.md
+++ b/pastebins/nix-show-derivation.md
@@ -1,4 +1,8 @@
---- title: nix show-derivation sample output date: 2018-07-25 ---
+---
+title: nix show-derivation sample output
+date: 2018-07-25
+layout: pastebin
+---
``` {.nix .numberLines startFrom=""}
$ nix show-derivation /nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv
diff --git a/pastebins/raku-tuple-type-annotation.md b/pastebins/raku-tuple-type-annotation.md
index 6d5957f..cdd387e 100644
--- a/pastebins/raku-tuple-type-annotation.md
+++ b/pastebins/raku-tuple-type-annotation.md
@@ -1,4 +1,8 @@
---- title: Raku tuple type annotation date: 2019-12-29 ---
+---
+title: Raku tuple type annotation
+date: 2019-12-29
+layout: pastebin
+---
``` {.raku .numberLines startFrom=""}
# Single Str return value: this works