From de9473df009bdab19ea287af8b18b6c141c2749b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 5 Feb 2020 02:17:01 -0300 Subject: Reproduce hakyll behaviour --- Gemfile | 1 - _config.yml | 3 ++ _layouts/default.html | 3 +- _layouts/index.html | 38 ++++------------------ _layouts/page.html | 10 +----- _layouts/pastebin.html | 11 +++++++ _layouts/pastebins.html | 38 ++++------------------ _layouts/post.html | 36 ++++++++------------ _pastebins | 1 + .../2018-08-01-verifying-npm-ci-reproducibility.md | 5 +-- ...g-youtube-dl-to-manage-youtube-subscriptions.md | 2 +- pastebins/failure-on-guix-tex-live-importer.md | 8 +++-- pastebins/inconsistent-hash-of-buildgomodule.md | 6 +++- pastebins/nix-exps.md | 6 +++- pastebins/nix-show-derivation.md | 6 +++- pastebins/raku-tuple-type-annotation.md | 6 +++- 16 files changed, 76 insertions(+), 104 deletions(-) create mode 100644 _layouts/pastebin.html create mode 120000 _pastebins 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 @@ @@ -24,6 +24,7 @@
+

{{ page.title }}

{{ content }}
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 --- - -
- {%- if page.title -%} -

{{ page.title }}

- {%- endif -%} - - {{ content }} - - {%- if site.posts.size > 0 -%} -

{{ page.list_title | default: "Posts" }}

- - -

subscribe via RSS

- {%- endif -%} - -
+ 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 ---
- -
-

{{ page.title | escape }}

-
- -
- {{ content }} -
- + {{ content }}
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 +--- +
+
+ Posted on {{ page.date | date: "%b %-d, %Y" }} +
+
+ {{ content }} +
+
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 --- - -
- {%- if page.title -%} -

{{ page.title }}

- {%- endif -%} - - {{ content }} - - {%- if site.posts.size > 0 -%} -

{{ page.list_title | default: "Posts" }}

- - -

subscribe via RSS

- {%- endif -%} - -
+ 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 --- -
- -
-

{{ page.title | escape }}

- -
- -
+
+
+ Posted on {{ page.date | date: "%b %-d, %Y" }} +
+
{{ content }} -
- - {%- if site.disqus.shortname -%} - {%- include disqus_comments.html -%} - {%- endif -%} - - + +
+

Have a comment on this post? Start a discussion + in my public inbox + by sending an email to ~euandreh/public-inbox@lists.sr.ht + [mailing list etiquette], + or see existing discussions. +

+
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 \npm ci\ 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 \youtube-dl\ 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 -- cgit v1.2.3