`date-created` -> `date-published`

parent 1098af88
Pipeline #5814 passed with stage
in 2 minutes and 1 second
......@@ -11,7 +11,7 @@ cat <<EOF
title: $TITLE
authors: $NAME
category: 200ok
date-created: $DATE
date-published: $DATE
tags: 200ok
uuid: $UUID
description: >-
......
......@@ -48,7 +48,7 @@ out more about structured data on Googles [[https://developers.google.com/search
- At the moment, tags and category will be merged as "keywords"
for SEO. Do not repeat the category within the tags, because
there is no 'unique' filter atm.
- date-created (Format YYYY-MM-DD)
- date-published (Format YYYY-MM-DD)
**** Optional SEO attributes
......
......@@ -144,7 +144,7 @@
:renderer renderer
:out-dir out-dir
:filterer identity
:sortby :date-created
:sortby :date-published
:comparator compare
:grouper (partial my-grouper group-key global-meta)})]
((task-fn next-task) fileset)))))
......@@ -183,7 +183,7 @@
"blog"
(str "blog-" num)))
:page-size 10
:sortby :date-created
:sortby :date-published
:filterer #(is-of-type? % "posts"))
(fsdb)
......@@ -223,7 +223,7 @@
;; with the same tag.
(perun/assortment :renderer 'ok.index/render
:grouper category-grouper
:sortby :date-created
:sortby :date-published
:out-dir "public/category"
:filterer #(is-of-type? % "posts"))
......
......@@ -2,7 +2,7 @@
title: "Webscraping with Python and BeautifulSoup"
authors: "Alain M. Lafon"
category: "python"
date-created: 2009-03-15
date-published: 2009-03-15
tags: beautifulsoup, howto, scraping, tutorial, web scraping, webscraping
uuid: 0881dac9-3437-48d0-b2a2-fc6ffe653da4
---
......
......@@ -2,7 +2,7 @@
title: "VIM as Python IDE"
authors: "Alain M. Lafon"
category: "vim"
date-created: 2009-05-24
date-published: 2009-05-24
tags: coding, ctags, exuberant ctags, ide, minibuf, omni completion, pep 8, programming, python, python ide, taglist, tasklist, tutorial, vi, vimpdb, walkthrough
uuid: dbae6bba-fd00-4cbe-94e7-e8df800489c1
---
......
......@@ -2,7 +2,7 @@
title: "How to become a proficient Python programmer"
authors: "Alain M. Lafon"
category: "python"
date-created: 2011-06-12
date-published: 2011-06-12
tags: coding, learning
uuid: 360ccd7a-933d-438a-95f5-c6eddf3cd39c
---
......
......@@ -2,7 +2,7 @@
title: "Orgmode capture template for code snippets"
authors: "Alain M. Lafon"
category: "orgmode"
date-created: 2016-05-01
date-published: 2016-05-01
tags: elisp, emacs, programming
uuid: 3eeda4a5-a749-417a-b07c-e7ded2407b73
---
......
---
title: "Emacs 101"
category: "emacs"
date-created: 2016-10-22
date-published: 2016-10-22
draft: true
uuid: a97715c8-bb8a-415a-b63a-f7f0b7aab0e8
---
......
......@@ -3,7 +3,7 @@ title: "RiotJS and nested custom Tags within Tables"
authors: "Alain M. Lafon"
category: "riotjs"
tags: javascript, spa
date-created: 2016-10-29
date-published: 2016-10-29
uuid: 0accc98c-020e-4293-9b8e-67a2e143a1c5
---
......
......@@ -2,7 +2,7 @@
title: Change the color of the terminal during ssh
authors: Phil Hofmann
category: tricks
date-created: 2016-11-01
date-published: 2016-11-01
tags: linux, console, cli, terminal, shell, ssh, dbus, roxterm, zsh
uuid: 23207c54-6893-40bf-9bd1-81d498ea24d7
---
......
......@@ -3,7 +3,7 @@ title: "RiotJS Module hot-loading Demo"
authors: "Alain M. Lafon"
category: "riotjs"
tags: javascript, spa, module, webpack
date-created: 2016-11-01
date-published: 2016-11-01
uuid: 9330e642-4fea-4315-9291-15074bf6630e
---
......
......@@ -2,7 +2,7 @@
title: jq - my new favorite tool to work with json on the command line
authors: Phil Hofmann
category: tooling
date-created: 2016-12-02
date-published: 2016-12-02
tags: json, cli
uuid: 105c9d69-08a0-4f37-9cbb-7d1f8c5513da
---
......
......@@ -2,7 +2,7 @@
title: using clojure to visualize dependencies in clojure code
authors: Phil Hofmann
category: tooling
date-created: 2016-12-02
date-published: 2016-12-02
tags: clojure, graph, dependencies, visualization
uuid: 3f14de9f-273b-4e44-86cd-504b88225b8b
---
......
......@@ -2,7 +2,7 @@
authors: Phil Hofmann
title: Contextual helpers with zsh hooks
category: tricks
date-created: 2016-12-09
date-published: 2016-12-09
tags: linux, console, cli, terminal, shell, zsh
uuid: 9fa5731a-1d91-4cc9-a45b-b479a76a845d
---
......
......@@ -2,7 +2,7 @@
authors: Phil Hofmann
title: a prototype for a function generating macro in Clojure
category: clojure
date-created: 2016-12-10
date-published: 2016-12-10
tags: macro, metaprogramming, prototype
uuid: e96d3d98-6312-4486-92c0-79008774e840
---
......
......@@ -2,7 +2,7 @@
title: "DSL resources for Ruby"
authors: "Alain M. Lafon, Phil Hofmann"
category: "ruby"
date-created: 2016-12-10
date-published: 2016-12-10
tags: ruby, dsl, programming
uuid: 663b4876-7e0e-4da5-a30a-54ccc8ae709a
---
......
......@@ -2,7 +2,7 @@
title: "Coders Tip: Commit and push at at least at the end of the day"
authors: "Alain M. Lafon"
category: "coders tip"
date-created: 2017-04-02
date-published: 2017-04-02
tags: programming, version control, git
uuid: 54aed99c-4003-4a6b-aa5f-c56fbdd7fe2a
---
......
......@@ -2,7 +2,7 @@
title: "Enable extensions for Chromium in Debian"
authors: "Alain M. Lafon"
category: "debian"
date-created: 2017-04-04
date-published: 2017-04-04
tags: debian, chromium
uuid: 35536858-81dd-467f-90e5-4c9f657569ea
---
......
......@@ -2,7 +2,7 @@
title: "Search for recently updated files on Amazon S3"
authors: "Alain M. Lafon"
category: "tooling"
date-created: 2017-04-11
date-published: 2017-04-11
tags: aws, cloud, s3
uuid: ad9e6d0b-f374-42cb-b9d9-5a6ca247ffae
......
......@@ -2,7 +2,7 @@
title: "Edit remote files with Emacs"
authors: "Alain M. Lafon"
category: "Emacs"
date-created: 2017-08-23
date-published: 2017-08-23
tags: emacs, eshell
uuid: 36acb87c-a6fb-4f53-88a3-1e1ae01f6c2d
......
......@@ -2,7 +2,7 @@
title: "Upgrade to Chromium 60 on Debian"
authors: "Alain M. Lafon"
category: "debian"
date-created: 2017-09-04
date-published: 2017-09-04
tags: debian, chromium
uuid: 1521b412-93f7-4c85-94ed-0da0dde984bc
......
......@@ -2,7 +2,7 @@
title: "Speedtest for Hackers"
authors: "Alain M. Lafon"
category: "Tooling"
date-created: 2017-09-10
date-published: 2017-09-10
tags: debian, bash, linux, nload, shell, unix
uuid: 5a77fd35-30b5-45a2-a2a7-03737598064e
......
......@@ -2,7 +2,7 @@
title: "Use Emacs for mass renaming of files (instead of vidir)"
authors: "Alain M. Lafon"
category: "Emacs"
date-created: 2017-09-11
date-published: 2017-09-11
tags: shell, linux, emacs, unix
uuid: c8a75550-6534-42cf-bb3b-d6fcc6319d72
......
......@@ -2,7 +2,7 @@
title: Have the data your way with fsdb
authors: Phil Hofmann
category: clojure
date-created: 2017-09-25
date-published: 2017-09-25
tags: opensource, clojure, filesystem, database
uuid: 3c5fb578-a608-4aa4-9d08-84df4af9b762
---
......
......@@ -2,7 +2,7 @@
title: Coworking in Glarus
authors: Alain M. Lafon
category: 200ok
date-created: 2017-10-19
date-published: 2017-10-19
tags: coworking, glarus
uuid: a8d0756c-88fa-4a80-861a-c560cec69b9d
---
......
......@@ -2,7 +2,7 @@
title: Beating 2048 using Clojure
authors: Josef Erben
category: clojure
date-created: 2017-10-30
date-published: 2017-10-30
tags: coding, 2048, ai
uuid: b0775f93-01f6-4160-90fb-1bde0e0c751a
---
......
......@@ -2,7 +2,7 @@
title: Releasing 200ok.ch - v3.0
authors: Phil Hofmann, Alain M. Lafon, Nick Niles
category: 200ok
date-created: 2017-11-02
date-published: 2017-11-02
tags: clojure
uuid: 3ba310cb-836d-426c-9641-63524677ef11
---
......
......@@ -2,7 +2,7 @@
title: Joint release of swiss-crowdfunder.com with ungleich glarus ag
authors: Alain M. Lafon
category: 200ok
date-created: 2017-11-14
date-published: 2017-11-14
tags: 200ok, crowdfunding, swiss crowdfunder, products, release, ungleich, ungleich glarus ag
uuid: 0fe5d5cf-0622-4abc-825a-9c8c0f8ba12d
---
......
......@@ -2,7 +2,7 @@
title: Hack4Glarus Hackathon in Linthal
authors: Alain M. Lafon
category: 200ok
date-created: 2017-11-18
date-published: 2017-11-18
tags: 200ok, ungleich, ungleich glarus ag
uuid: 65b2ebe34ef2b65bdcbfee845a109811
description: >-
......
......@@ -2,7 +2,7 @@
title: Open source release of swiss-crowdfunder.com
authors: Alain M. Lafon
category: 200ok
date-created: 2017-12-03
date-published: 2017-12-03
tags: 200ok, ungleich, ungleich glarus ag, swiss-crowdfunder, crowdfunding
uuid: 64a179eb59636d611924f2c75a23cd91
---
......
......@@ -2,7 +2,7 @@
title: 200ok in the media
authors: Alain M. Lafon
category: 200ok
date-created: 2017-12-06
date-published: 2017-12-06
tags: 200ok, ungleich, ungleich glarus ag, Hack4glarus
uuid: 872f6e3125239358594e523c5a251ab1
---
......
......@@ -2,7 +2,7 @@
title: Redux in 30 lines of ClojureScript
authors: Josef Erben
category: clojure
date-created: 2018-02-26
date-published: 2018-02-26
tags: clojure, redux, clojurescript, state management
uuid: 872f6ea12523e358594e523c5c251ab3
---
......
......@@ -2,7 +2,7 @@
title: List AWS S3 bucket objects with HTTP and XML
authors: Alain M. Lafon
category: cloud
date-created: 2018-02-26
date-published: 2018-02-26
tags: aws, s3
uuid: b5cfdbb4-88bf-4708-92a3-e3df16c41bc8
---
......
......@@ -2,7 +2,7 @@
title: Write your own brightness control
authors: Alain M. Lafon
category: Debian
date-created: 2018-03-08
date-published: 2018-03-08
tags: Linux, Tooling
uuid: 00d91bdb-3f5a-424e-950f-05ab060491bc
---
......
......@@ -2,7 +2,7 @@
title: Writing solid End-to-End-Tests with Buoys
authors: Phil Hofmann, Alain M. Lafon
category: Coders Tip
date-created: 2018-03-31
date-published: 2018-03-31
tags: testing
uuid: 75849f20-8cae-41e3-a4dd-06ce5248b19c
---
......
......@@ -2,7 +2,7 @@
title: Make zsh recognize Projects you are working on
authors: Phil Hofmann
category: tricks
date-created: 2018-04-30
date-published: 2018-04-30
tags: linux, console, cli, terminal, shell, zsh
uuid: 1b14fdba-ae8b-4936-af07-049edc6e85ec
description: >-
......
......@@ -2,7 +2,7 @@
title: QuickShift geht in die Beta Phase
authors: Alain M. Lafon, Phil Hofmann, Pascal Huber, Mischa Steiner
category: 200ok
date-created: 2018-04-21
date-published: 2018-04-21
tags: incubators, quickshift
language: de
uuid: 2be120b7-7f97-44b8-810f-137c1c8ae9f6
......
......@@ -2,7 +2,7 @@
title: Play Emacs like an Instrument
authors: Alain M. Lafon
category: Emacs
date-created: 2018-04-27
date-published: 2018-04-27
tags: talks, 200ok, clojure, elisp, ruby, javascript
uuid: 4adfd949-5106-483a-befd-792e6ab41d34
---
......
......@@ -2,7 +2,7 @@
title: Slack HiDPI settings for Linux
authors: Alain M. Lafon
category: debian
date-created: 2018-06-12
date-published: 2018-06-12
tags: slack, electron, hidpi, spotify
uuid: 18836293-284d-4d49-8557-a641a9360089
description: >-
......
......@@ -2,7 +2,7 @@
title: Code Retreat in Ronco, Italien
authors: Alain M. Lafon
category: 200ok
date-created: 2018-06-17
date-published: 2018-06-17
tags: quickshift, code retreat
uuid: 8a4b3414-c95c-42be-a4c4-563580127e57
description: >-
......
......@@ -2,7 +2,7 @@
title: Create Orgmode tasks from Pivotal Tracker issues
authors: Alain M. Lafon
category: orgmode
date-created: 2018-07-15
date-published: 2018-07-15
tags: emacs, tooling, productivity, tracker2pivotal
uuid: 2d8cd5c0-54f1-45c2-b4c4-853f302b8419
description: Fetches issues from Pivotal and creates an Orgmode file for it
......
......@@ -2,7 +2,7 @@
title: Introduction to ClojureScript and Functional Programming
authors: Alain M. lafon
category: clojure
date-created: 2018-07-24
date-published: 2018-07-24
tags: 200ok, talk, clojure, clojurescript, functional programming
uuid: ce2a9ca5-5509-4c1f-b460-1ef5a6823657
featured-image: /img/2018-07/intro_to_cljs_and_fp.png
......
......@@ -2,7 +2,7 @@
title: Quickly learn idiomatic JavaScript as a Clojure programmer
authors: Alain M. Lafon
category: clojure
date-created: 2018-08-07
date-published: 2018-08-07
tags: clojure, javascript, programming
uuid: 34b18432-7f99-4aed-b381-d8d08fcb1012
description: >-
......
......@@ -2,7 +2,7 @@
title: Welcome to the team, Carl!
authors: Alain M. Lafon
category: 200ok
date-created: 2018-08-15
date-published: 2018-08-15
tags: 200ok
uuid: b429f5fe-d4b3-48de-a8c5-3de205cdb453
description: >-
......
......@@ -2,7 +2,7 @@
title: Orgmode inline code blocks
authors: Alain M. Lafon
category: orgmode
date-created: 2018-09-07
date-published: 2018-09-07
tags: emacs
uuid: 41ee0bdc-510a-4bb2-ac9d-efbacd7ef0a4
description: >-
......
......@@ -2,7 +2,7 @@
title: Teaming up sourceme and tmux
authors: Alain M. Lafon
category: tooling
date-created: 2018-09-22
date-published: 2018-09-22
tags: 200ok
uuid: a04d36eb-0649-46a4-ac29-88d2494855f5
description: >-
......
......@@ -2,7 +2,7 @@
title: X1 Carbon 6th gen about 50% slower on Linux
authors: Alain M. Lafon, Pascal Huber
category: Debian
date-created: 2018-09-26
date-published: 2018-09-26
tags: X1 Carbon, X1 Carbon 6th Gen, Linux
uuid: 5eef3578-c2a2-4179-8984-49f4f0cd9961
description: >-
......
......@@ -2,7 +2,7 @@
title: X1 Carbon CPU frequency update
authors: Alain M. Lafon
category: Debian
date-created: 2018-09-27
date-published: 2018-09-27
tags: X1 Carbon, X1 Carbon 6th Gen, Linux
uuid: ebec9d41-f44f-44bd-a002-09d84c6f2b2e
---
......
......@@ -2,7 +2,7 @@
title: ETH VIScon Hackathon and Symposium 2018
authors: Alain M. Lafon
category: 200ok
date-created: 2018-10-06
date-published: 2018-10-06
tags: vis, eth, viscon, hackathon, mentor, mentoring
uuid: 8b7c369b-e5ea-4294-bf48-531f57a1058d
description: >-
......
......@@ -2,7 +2,7 @@
title: New release of our OSS crowdfunding platform swiss-crowdfunder.com
authors: Alain M. Lafon
category: 200ok
date-created: 2018-10-14
date-published: 2018-10-14
tags: swiss crowdfunder, oss, swiss-crowdfunder.com, ruby, rails
uuid: E93EB457-D23A-43FF-9F27-FB6F60829EF1
description: >-
......
......@@ -2,7 +2,7 @@
title: Disable MU4E 'HTML over plain text' heuristic
authors: Alain M. Lafon
category: Emacs
date-created: 2018-10-25
date-published: 2018-10-25
tags: mu4e
uuid: 453dc43b-b160-4c77-9ce7-d0c6a3ec746a
description: >-
......
......@@ -2,7 +2,7 @@
title: Automated time tracking to letsfreckle
authors: Alain M. Lafon
category: Tooling
date-created: 2018-11-08
date-published: 2018-11-08
tags: 200ok
uuid: 6e3becb2-9ea8-41ea-8ada-fe86c2c2d985
---
......
......@@ -2,7 +2,7 @@
title: Hack4Glarus Hackathon in Linthal
authors: Alain M. Lafon
category: 200ok
date-created: 2018-11-16
date-published: 2018-11-16
tags: 200ok, ungleich, ungleich glarus ag
uuid: 9fdc1bba-80d7-4bad-9305-57db23d60aa5
description: >-
......
......@@ -2,7 +2,7 @@
title: Python’s binascii – hexlify() and unhexlify()
authors: Alain M. Lafon
category: python
date-created: 2009-12-09
date-published: 2009-12-09
tags: 200ok
uuid: e219ff9f-81b9-4728-ac2a-b94e018b1b55
---
......
......@@ -2,7 +2,7 @@
title: Making Bluetooth work on Lenovo X1 Carbon 6th gen with Linux
authors: Alain M. Lafon
category: Debian
date-created: 2018-12-17
date-published: 2018-12-17
tags: 200ok
uuid: 3f14aceb-84de-415d-8fc7-f9ef44415e76
description: >-
......
......@@ -2,7 +2,7 @@
title: Livingdocs is on the shortlist for the "Best of Swiss Web Awards"
authors: "Alain M. Lafon"
category: 200ok
date-created: 2019-03-01
date-published: 2019-03-01
tags: livingdocs
uuid: 3ae1e748-42c4-4d3a-9c20-da2505f764b2
description: >-
......
......@@ -2,7 +2,7 @@
title: Autoformatting source code in Emacs
authors: Alain M. Lafon
category: Emacs
date-created: 2019-03-02
date-published: 2019-03-02
tags: programming, javascript, elisp, eslint, prettier
uuid: d6511129-46d6-4f2f-a5bc-e076b78811d6
description: >-
......
......@@ -2,7 +2,7 @@
title: Open sourcing voicerepublic.com under the GPL
authors: Phil Hofmann, Alain M. Lafon
category: 200ok
date-created: 2019-05-14
date-published: 2019-05-14
tags: voicerepublic, opensource
uuid: d17237d6-62c7-419a-a521-0154599f88ff
description: >-
......
......@@ -2,7 +2,7 @@
title: Disable "flat-volume" for PulseAudio
authors: Alain M. Lafon
category: Debian
date-created: 2019-05-20
date-published: 2019-05-20
tags: Linux
uuid: ad5b526c-a788-4802-8f31-c52e1ea4aa1f
description: >-
......
......@@ -5,15 +5,15 @@
[ok.helper :refer [category-link]]
[ok.helper :as helper]))
;; Returns the publish date or a fallback if no :date-created is
;; Returns the publish date or a fallback if no :date-published is
;; provided. This, however, is always a lie, because the
;; last-modified-time is whenever the page has been built.
(defn- date-of-post
"Returns the last-updated-at date of a post"
[post]
(if (:date-created post)
(if (:date-published post)
(.format (java.text.SimpleDateFormat. "yyyy-MM-dd")
(:date-created post))
(:date-published post))
(.format (java.text.SimpleDateFormat. "yyyy-MM-dd")
(java.util.Date.
(.lastModified
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment