From 56f8dd457be1273fb03094d5df5751e9e2653c8e Mon Sep 17 00:00:00 2001 From: Jeremy Kidwell Date: Mon, 16 Apr 2018 14:51:42 +0100 Subject: [PATCH] fixed use of Now.unix --- README.md | 2 +- content/presentations/201804_leeds.md | 2 +- layouts/presentations/single.html | 20 +------------------- 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 8bee78b..ff8ec3d 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # jeremykidwell.info -This is the code for my website at http://jeremykidwell.info. I've borrowed structure and template from [Kieran Healy](http://kieranhealy.org/blog/archives/2014/02/24/powered-by-hugo/) and [Steve Francia](https://github.com/consequently/consequently-hugo). Both of these sites (and mine) use the [Kube CSS framework](http://imperavi.com/kube/) and requires Hugo version 0.15 or higher. +This is the code for my website at http://jeremykidwell.info. I've borrowed structure and template from [Kieran Healy](http://kieranhealy.org/blog/archives/2014/02/24/powered-by-hugo/) and [Greg Restall](https://github.com/consequently/consequently-hugo). Both of these sites (and mine) use the [Kube CSS framework](http://imperavi.com/kube/) and requires Hugo version 0.15 or higher. Unlike wordpress, drupal, etc., this website is crafted using a [static site generator](https://www.smashingmagazine.com/2015/11/modern-static-website-generators-next-big-thing/) which has a range of benefits, not least of which being far less susceptible to hacking. I'm using [Hugo](http://gohugo.io/), which is known to have a speed advantage over some of the [other popular options](https://www.staticgen.com) and is written by Steve Francia. diff --git a/content/presentations/201804_leeds.md b/content/presentations/201804_leeds.md index 19c9c81..d0ddbe5 100644 --- a/content/presentations/201804_leeds.md +++ b/content/presentations/201804_leeds.md @@ -1,6 +1,6 @@ --- title: "What is the temporality of climate change activism" -date: 2018-04-12T16:00:00+00:00 +date: 2018-04-19T16:00:00+00:00 host: "University of Leeds" duration: 7776000 --- diff --git a/layouts/presentations/single.html b/layouts/presentations/single.html index 781a3f2..fa17e5f 100755 --- a/layouts/presentations/single.html +++ b/layouts/presentations/single.html @@ -11,24 +11,6 @@ - -
 
@@ -38,7 +20,7 @@ Attempting to add granularity on itemtypes - need to fix later

{{ .Date.Format "January 2, 2006" }}

- {{ if (ge .Date.Unix .Now.Unix) }}{{ if (le .Date.Unix (add .Now.Unix 7776000)) }}coming soon{{ end }}{{ end }} + {{ if (ge .Date.Unix now.Unix) }}{{ if (le .Date.Unix (add now.Unix 7776000)) }}coming soon{{ end }}{{ end }}
{{ .Content }}