aboutsummaryrefslogtreecommitdiff
path: root/pastebin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-12-30 07:21:47 -0200
committerEuAndreh <eu@euandre.org>2018-12-30 07:23:58 -0200
commitf87cded82c8eb030567a3b29da825ed5ece60733 (patch)
tree97290b51224a1f1c9f63037419d486b9be63b82d /pastebin
parentEdit newly created pastebin with vi. (diff)
downloadeuandre.org-f87cded82c8eb030567a3b29da825ed5ece60733.tar.gz
euandre.org-f87cded82c8eb030567a3b29da825ed5ece60733.tar.xz
Use creation date of pastebin instead of dynamic exported date.
Diffstat (limited to 'pastebin')
-rw-r--r--pastebin/skeleton.org1
-rwxr-xr-xpastebin/website-pastebin5
2 files changed, 5 insertions, 1 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