aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_layouts/default.html37
-rw-r--r--_pastebins/2016-04-05-rpn-macro-setup.md7
-rw-r--r--_pastebins/2018-07-11-nix-pinning.md2
-rw-r--r--_pastebins/2018-07-13-gnu-guix-systemd-daemon-for-nixos.md2
-rw-r--r--_pastebins/2018-07-13-guix-builder-user-creation-commands.md2
-rw-r--r--_pastebins/2018-07-13-guix-users-in-nixos-system-configuration.md2
-rw-r--r--_pastebins/2018-07-13-nix-string-padding.md2
-rw-r--r--_pastebins/2018-07-25-nix-exps.md4
-rw-r--r--_pastebins/2018-07-25-nix-show-derivation-sample-output.md (renamed from _pastebins/2018-07-25-nix-show-derivation.md)2
-rw-r--r--_pastebins/2019-06-08-inconsistent-hash-of-buildgomodule.md2
-rw-r--r--_pastebins/2019-12-29-raku-tuple-type-annotation.md7
-rw-r--r--_pastebins/2020-01-04-failure-on-guix-tex-live-importer.md2
-rw-r--r--_pastebins/2020-02-14-guix-shebang.md2
-rw-r--r--_pastebins/2020-11-27-guix-build-local-module.md2
-rw-r--r--_pastebins/2020-12-15-failure-with-relocatable-guix-pack-tarball.md2
-rwxr-xr-xscripts/assert-content.sh13
-rw-r--r--site.json2
17 files changed, 77 insertions, 15 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index 05ee5d1..5167523 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -47,13 +47,6 @@
</div>
{% if page.ref != nil %}
<ul>
- {% assign lposts=site.posts | where:"ref", page.ref | sort: 'lang' %}
- {% for lpost in lposts %}
- <li>
- <a href="{{ lpost.url }}" class="{{ lpost.lang }}">{{ lpost.lang }}</a>
- </li>
- {% endfor %}
-
{% if page.ref == "root" %}
{% assign lpages=site.pages | where:"ref", "index" | sort: 'lang' %}
{% else %}
@@ -65,13 +58,43 @@
</li>
{% endfor %}
+ {% assign larticles=site.articles | where:"ref", page.ref | sort: 'lang' %}
+ {% for larticle in larticles %}
+ <li>
+ <a href="{{ larticle.url }}" class="{{ larticle.lang }}">{{ larticle.lang }}</a>
+ </li>
+ {% endfor %}
+
{% assign ltils=site.tils | where:"ref", page.ref | sort: 'lang' %}
{% for ltil in ltils %}
<li>
<a href="{{ ltil.url }}" class="{{ ltil.lang }}">{{ ltil.lang }}</a>
</li>
{% endfor %}
+
+ {% assign lslidess=site.slides | where:"ref", page.ref | sort: 'lang' %}
+ {% for lslides in lslidess %}
+ <li>
+ <a href="{{ lslides.url }}" class="{{ lslides.lang }}">{{ lslides.lang }}</a>
+ </li>
+ {% endfor %}
+
+ {% assign lpastebins=site.pastebins | where:"ref", page.ref | sort: 'lang' %}
+ {% for lpastebin in lpastebins %}
+ <li>
+ <a href="{{ lpastebin.url }}" class="{{ lpastebin.lang }}">{{ lpastebin.lang }}</a>
+ </li>
+ {% endfor %}
+
+ {% assign lpodcasts=site.podcasts | where:"ref", page.ref | sort: 'lang' %}
+ {% for lpodcast in lpodcasts %}
+ <li>
+ <a href="{{ lpodcast.url }}" class="{{ lpodcast.lang }}">{{ lpodcast.lang }}</a>
+ </li>
+ {% endfor %}
</ul>
+ {% else %}
+ {% link break-build-if-any-page-has-a-missing-ref %}
{% endif %}
</nav>
</header>
diff --git a/_pastebins/2016-04-05-rpn-macro-setup.md b/_pastebins/2016-04-05-rpn-macro-setup.md
index 3ea6a86..25ca6ba 100644
--- a/_pastebins/2016-04-05-rpn-macro-setup.md
+++ b/_pastebins/2016-04-05-rpn-macro-setup.md
@@ -1,8 +1,15 @@
---
+
title: RPN macro setup
+
date: 2016-04-05
+
layout: post
+
lang: en
+
+ref: rpn-macro-setup
+
---
```lisp
diff --git a/_pastebins/2018-07-11-nix-pinning.md b/_pastebins/2018-07-11-nix-pinning.md
index 3e38bcf..2d35e09 100644
--- a/_pastebins/2018-07-11-nix-pinning.md
+++ b/_pastebins/2018-07-11-nix-pinning.md
@@ -10,6 +10,8 @@ lang: en
eu_categories: nix
+ref: nix-pinning
+
---
```nix
diff --git a/_pastebins/2018-07-13-gnu-guix-systemd-daemon-for-nixos.md b/_pastebins/2018-07-13-gnu-guix-systemd-daemon-for-nixos.md
index 1278485..c2b8b62 100644
--- a/_pastebins/2018-07-13-gnu-guix-systemd-daemon-for-nixos.md
+++ b/_pastebins/2018-07-13-gnu-guix-systemd-daemon-for-nixos.md
@@ -10,6 +10,8 @@ lang: en
eu_categories: nix,guix
+ref: gnu-guix-systemd-daemon-for-nixos
+
---
```nix
diff --git a/_pastebins/2018-07-13-guix-builder-user-creation-commands.md b/_pastebins/2018-07-13-guix-builder-user-creation-commands.md
index c68ce3a..82204a8 100644
--- a/_pastebins/2018-07-13-guix-builder-user-creation-commands.md
+++ b/_pastebins/2018-07-13-guix-builder-user-creation-commands.md
@@ -10,6 +10,8 @@ lang: en
eu_categories: guix
+ref: guix-builder-user-creation-commands
+
---
```shell
diff --git a/_pastebins/2018-07-13-guix-users-in-nixos-system-configuration.md b/_pastebins/2018-07-13-guix-users-in-nixos-system-configuration.md
index 865ef63..880d347 100644
--- a/_pastebins/2018-07-13-guix-users-in-nixos-system-configuration.md
+++ b/_pastebins/2018-07-13-guix-users-in-nixos-system-configuration.md
@@ -10,6 +10,8 @@ lang: en
eu_categories: nix,guix
+ref: guix-users-in-nixos-system-configuration
+
---
```nix
diff --git a/_pastebins/2018-07-13-nix-string-padding.md b/_pastebins/2018-07-13-nix-string-padding.md
index a3133b6..359bda5 100644
--- a/_pastebins/2018-07-13-nix-string-padding.md
+++ b/_pastebins/2018-07-13-nix-string-padding.md
@@ -10,6 +10,8 @@ lang: en
eu_categories: nix
+ref: nix-string-padding
+
---
```nix
diff --git a/_pastebins/2018-07-25-nix-exps.md b/_pastebins/2018-07-25-nix-exps.md
index 3628ed0..23d75b6 100644
--- a/_pastebins/2018-07-25-nix-exps.md
+++ b/_pastebins/2018-07-25-nix-exps.md
@@ -1,6 +1,6 @@
---
-title: Nix Stuff
+title: Nix exps
date: 2018-07-25
@@ -10,6 +10,8 @@ lang: en
eu_categories: nix
+ref: nix-exps
+
---
```nix
diff --git a/_pastebins/2018-07-25-nix-show-derivation.md b/_pastebins/2018-07-25-nix-show-derivation-sample-output.md
index e6b4df6..813965d 100644
--- a/_pastebins/2018-07-25-nix-show-derivation.md
+++ b/_pastebins/2018-07-25-nix-show-derivation-sample-output.md
@@ -10,6 +10,8 @@ lang: en
eu_categories: nix
+ref: nix-show-derivation-sample-output
+
---
```nix
diff --git a/_pastebins/2019-06-08-inconsistent-hash-of-buildgomodule.md b/_pastebins/2019-06-08-inconsistent-hash-of-buildgomodule.md
index 62d90ce..3d99ac5 100644
--- a/_pastebins/2019-06-08-inconsistent-hash-of-buildgomodule.md
+++ b/_pastebins/2019-06-08-inconsistent-hash-of-buildgomodule.md
@@ -10,6 +10,8 @@ lang: en
eu_categories: nix
+ref: inconsistent-hash-of-buildgomodule
+
---
FIXED: See https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2
diff --git a/_pastebins/2019-12-29-raku-tuple-type-annotation.md b/_pastebins/2019-12-29-raku-tuple-type-annotation.md
index 7829fae..3d5ff34 100644
--- a/_pastebins/2019-12-29-raku-tuple-type-annotation.md
+++ b/_pastebins/2019-12-29-raku-tuple-type-annotation.md
@@ -1,8 +1,15 @@
---
+
title: Raku tuple type annotation
+
date: 2019-12-29
+
layout: post
+
lang: en
+
+ref: raku-tuple-type-annotation
+
---
```perl
diff --git a/_pastebins/2020-01-04-failure-on-guix-tex-live-importer.md b/_pastebins/2020-01-04-failure-on-guix-tex-live-importer.md
index c31e396..3388a8d 100644
--- a/_pastebins/2020-01-04-failure-on-guix-tex-live-importer.md
+++ b/_pastebins/2020-01-04-failure-on-guix-tex-live-importer.md
@@ -10,6 +10,8 @@ lang: en
eu_categories: guix
+ref: failure-on-guix-tex-live-importer
+
---
```shell
diff --git a/_pastebins/2020-02-14-guix-shebang.md b/_pastebins/2020-02-14-guix-shebang.md
index aac9c17..67d504d 100644
--- a/_pastebins/2020-02-14-guix-shebang.md
+++ b/_pastebins/2020-02-14-guix-shebang.md
@@ -10,6 +10,8 @@ lang: en
eu_categories: guix
+ref: guix-shebang
+
---
```shell
diff --git a/_pastebins/2020-11-27-guix-build-local-module.md b/_pastebins/2020-11-27-guix-build-local-module.md
index 616663b..350d50f 100644
--- a/_pastebins/2020-11-27-guix-build-local-module.md
+++ b/_pastebins/2020-11-27-guix-build-local-module.md
@@ -10,6 +10,8 @@ lang: en
eu_categories: guix
+ref: guix-build-local-module
+
---
FIXED: rename `name` on line 9 of the first snippet, and use `"my-hello"` instead of `"hello"`.
diff --git a/_pastebins/2020-12-15-failure-with-relocatable-guix-pack-tarball.md b/_pastebins/2020-12-15-failure-with-relocatable-guix-pack-tarball.md
index 165571f..2834f90 100644
--- a/_pastebins/2020-12-15-failure-with-relocatable-guix-pack-tarball.md
+++ b/_pastebins/2020-12-15-failure-with-relocatable-guix-pack-tarball.md
@@ -10,6 +10,8 @@ lang: en
eu_categories: guix
+ref: failure-with-relocatable-guix-pack-tarball
+
---
FIXED: Use `GUIX_PROFILE= source etc/profile`
diff --git a/scripts/assert-content.sh b/scripts/assert-content.sh
index e8d0382..cdd2a01 100755
--- a/scripts/assert-content.sh
+++ b/scripts/assert-content.sh
@@ -120,7 +120,7 @@ assert-frontmatter() {
exit 1
}
- if [[ "$PREFIX" != '_pastebins/' ]] && [[ "$LLANG" = 'en' ]]; then
+ if [[ "$LLANG" = 'en' ]]; then
TITLE_SLUG="$(slugify "$TITLE")"
if [[ "$TITLE_SLUG" != "$REF" ]]; then
red "ref isn't the slug of the title."
@@ -193,10 +193,11 @@ assert-unique-ref() {
done
}
-assert-unique-ref "$(jq -r '.pages[] | @base64' "${JSON}")" 'page'
-assert-unique-ref "$(jq -r '.articles[] | @base64' "${JSON}")" 'article'
-assert-unique-ref "$(jq -r '.tils[] | @base64' "${JSON}")" 'til'
-assert-unique-ref "$(jq -r '.slides[] | @base64' "${JSON}")" 'slides'
-assert-unique-ref "$(jq -r '.podcasts[] | @base64' "${JSON}")" 'podcasts'
+assert-unique-ref "$(jq -r '.pages[] | @base64' "${JSON}")" 'page'
+assert-unique-ref "$(jq -r '.articles[] | @base64' "${JSON}")" 'article'
+assert-unique-ref "$(jq -r '.tils[] | @base64' "${JSON}")" 'til'
+assert-unique-ref "$(jq -r '.pastebins[] | @base64' "${JSON}")" 'pastebin'
+assert-unique-ref "$(jq -r '.slides[] | @base64' "${JSON}")" 'slides'
+assert-unique-ref "$(jq -r '.podcasts[] | @base64' "${JSON}")" 'podcasts'
echo Done. >&2
diff --git a/site.json b/site.json
index 425ebfe..14adec7 100644
--- a/site.json
+++ b/site.json
@@ -52,7 +52,7 @@
"date": "{{ pastebin.date }}",
"url": "{{ pastebin.url }}",
"lang": "{{ pastebin.lang }}",
- "ref": "pastebin-ref",
+ "ref": "{{ pastebin.ref }}",
"layout": "{{ pastebin.layout }}",
"content": {{ pastebin.content | strip_html | jsonify }}
}{% unless forloop.last %},{% endunless %}