From 7e8d72151230cb14fd8b9dbbaa7f309120ed2721 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 6 Dec 2019 03:18:55 -0500 Subject: [PATCH] add post-specific copyright years --- haunt.scm | 9 +++++++++ posts/arch-macbook-air.md | 1 + 2 files changed, 10 insertions(+) diff --git a/haunt.scm b/haunt.scm index 7a225a9..30293b1 100644 --- a/haunt.scm +++ b/haunt.scm @@ -428,6 +428,15 @@ "Homework 10"))) "2019")) +(module-define! + (resolve-module '(haunt builder blog)) + 'render-post + (lambda (theme site post) + (let ((title (post-ref post 'title)) + (body ((theme-post-template theme) post)) + (copy (post-ref post 'copyright))) + (base-layout site body #:title title #:copy copy)))) + (site #:title "Amin Bandali" ;; TODO: uncomment after new haunt release ;; #:scheme my-scheme diff --git a/posts/arch-macbook-air.md b/posts/arch-macbook-air.md index 55b2ef7..17d5d9b 100644 --- a/posts/arch-macbook-air.md +++ b/posts/arch-macbook-air.md @@ -2,6 +2,7 @@ title: Arch GNU/Linux on MacBook Air 2013 date: 2016-11-01 00:00 slug: arch-macbook-air tags: arch, macbook +copyright: 2016, 2019 --- This post summarizes how I install and dual-boot Arch GNU/Linux with -- 2.20.1