aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pastebin/skeleton.org1
-rwxr-xr-xpastebin/website-pastebin5
-rw-r--r--site/pastebin/nix-exps.org3
-rw-r--r--site/pastebin/nix-show-derivation.org3
4 files changed, 9 insertions, 3 deletions
diff --git a/pastebin/skeleton.org b/pastebin/skeleton.org
index 8349906..8eca122 100644
--- a/pastebin/skeleton.org
+++ b/pastebin/skeleton.org
@@ -1,4 +1,5 @@
#+SETUPFILE: ../../pastebin/template.org
+#+BIND: org-html-postamble-format (("en" "<p class=\"postamble\">$date</p>")))
#+TITLE: $title
#+BEGIN_SRC FIXME -n
FIXME
diff --git a/pastebin/website-pastebin b/pastebin/website-pastebin
index 641e75b..185672d 100755
--- a/pastebin/website-pastebin
+++ b/pastebin/website-pastebin
@@ -72,7 +72,10 @@ sub slugify {
our $dirname = dirname(__FILE__);
our $in = "$dirname/skeleton.org";
our $out;
-my %ENV = (title => $title);
+my $date = `date +"%Y-%m-%d %A %H:%M"`;
+chomp $date;
+my %ENV = (title => $title, date => $date);
+
# Derived from both:
# https://unix.stackexchange.com/a/294836
# https://stackoverflow.com/a/47664214
diff --git a/site/pastebin/nix-exps.org b/site/pastebin/nix-exps.org
index ac06826..5aaef0b 100644
--- a/site/pastebin/nix-exps.org
+++ b/site/pastebin/nix-exps.org
@@ -1,4 +1,5 @@
-#+SETUPFILE: ../../pastebin-template.org
+#+SETUPFILE: ../../pastebin/template.org
+#+BIND: org-html-postamble-format (("en" "<p class=\"postamble\">2018-07-25 Wed 20:50</p>")))
#+TITLE: Nix Stuff
#+BEGIN_SRC nix -n
let
diff --git a/site/pastebin/nix-show-derivation.org b/site/pastebin/nix-show-derivation.org
index 28a916b..9f2c22b 100644
--- a/site/pastebin/nix-show-derivation.org
+++ b/site/pastebin/nix-show-derivation.org
@@ -1,4 +1,5 @@
-#+SETUPFILE: ../../pastebin-template.org
+#+SETUPFILE: ../../pastebin/template.org
+#+BIND: org-html-postamble-format (("en" "<p class=\"postamble\">2018-07-25 Wed 20:51</p>")))
#+TITLE: =nix show-derivation= sample output
#+BEGIN_SRC nix -n
$ nix show-derivation /nix/store/zzz9cl2ly0mb2njr7vwa5528fxmn29m8-combofont-0.2.drv