fixed use of Now.unix
This commit is contained in:
		
							parent
							
								
									3efbbc0846
								
							
						
					
					
						commit
						56f8dd457b
					
				
					 3 changed files with 3 additions and 21 deletions
				
			
		| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
# jeremykidwell.info
 | 
					# 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.
 | 
					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.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
title: "What is the temporality of climate change activism"
 | 
					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"
 | 
					host: "University of Leeds"
 | 
				
			||||||
duration: 7776000
 | 
					duration: 7776000
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,24 +11,6 @@
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<!--
 | 
					 | 
				
			||||||
Attempting to add granularity on itemtypes - need to fix later
 | 
					 | 
				
			||||||
<div class="wrapper" itemscope itemtype="http://schema.org/Book">
 | 
					 | 
				
			||||||
<div class="units-row">		
 | 
					 | 
				
			||||||
		<div class="unit-20"> </div>
 | 
					 | 
				
			||||||
		<div class="unit-60">
 | 
					 | 
				
			||||||
		<h2><a href="">{{ .Title }}</a></h2>
 | 
					 | 
				
			||||||
		</div>
 | 
					 | 
				
			||||||
	</div>
 | 
					 | 
				
			||||||
	<div class="units-row">		
 | 
					 | 
				
			||||||
		<div class="unit-20 dateblock"><h4>{{ .Date.Format "January 2, 2006" }}</h4>
 | 
					 | 
				
			||||||
		{{ if (ge .Date.Unix .Now.Unix) }}{{ if (le .Date.Unix (add .Now.Unix 7776000)) }}<span class="badge badge-small badge-yellow">coming soon</span>{{ end }}{{ end }}
 | 
					 | 
				
			||||||
		</div>
 | 
					 | 
				
			||||||
		<div class="unit-60">{{ .Content }}</div>
 | 
					 | 
				
			||||||
	</div>
 | 
					 | 
				
			||||||
</div>
 | 
					 | 
				
			||||||
-->
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<div class="wrapper" itemscope itemtype="http://schema.org/Article">
 | 
					<div class="wrapper" itemscope itemtype="http://schema.org/Article">
 | 
				
			||||||
	<div class="units-row">		
 | 
						<div class="units-row">		
 | 
				
			||||||
		<div class="unit-20"> </div>
 | 
							<div class="unit-20"> </div>
 | 
				
			||||||
| 
						 | 
					@ -38,7 +20,7 @@ Attempting to add granularity on itemtypes - need to fix later
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
	<div class="units-row">		
 | 
						<div class="units-row">		
 | 
				
			||||||
		<div class="unit-20 dateblock"><h4>{{ .Date.Format "January 2, 2006" }}</h4>
 | 
							<div class="unit-20 dateblock"><h4>{{ .Date.Format "January 2, 2006" }}</h4>
 | 
				
			||||||
		{{ if (ge .Date.Unix .Now.Unix) }}{{ if (le .Date.Unix (add .Now.Unix 7776000)) }}<span class="badge badge-small badge-yellow">coming soon</span>{{ end }}{{ end }}
 | 
							{{ if (ge .Date.Unix now.Unix) }}{{ if (le .Date.Unix (add now.Unix 7776000)) }}<span class="badge badge-small badge-yellow">coming soon</span>{{ end }}{{ end }}
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		<div class="unit-60">{{ .Content }}</div>
 | 
							<div class="unit-60">{{ .Content }}</div>
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue