Merge branch 'fix-dates' into dev

This commit is contained in:
Emiliano Tortorella 2019-01-19 08:32:27 -05:00
commit e91451dcc1
5 changed files with 22 additions and 5 deletions

View File

@ -18,11 +18,13 @@
</p> </p>
<h1 class="{{ .Site.Params.post_title_class | default "f1 athelas mb1" }}"> <h1 class="{{ .Site.Params.post_title_class | default "f1 athelas mb1" }}">
{{- .Title -}} {{- .Title -}}
{{ partial "story-dates.html" . }}
<div class="avenir mid-gray normal">
{{ partial "date.html" . }}
</div>
</h1> </h1>
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}} {{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
<time class="f6 mv4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{- .Date.Format "January 2, 2006" -}}
</time>
{{/* {{/*
Show "reading time" and "word count" but only if one of the following are true: Show "reading time" and "word count" but only if one of the following are true:
1) A global config `params` value is set `show_reading_time = true` 1) A global config `params` value is set `show_reading_time = true`

View File

@ -0,0 +1,7 @@
<time class="f6 mb4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
Publicado el {{ index .Site.Params.weekdays .Date.Weekday }}
{{ .Date.Day }} de
{{ index .Site.Params.months .Date.Month }},
{{ .Date.Year }}
</time>

View File

@ -0,0 +1,6 @@
{{ with $.Params.init_date }}
<p class="f6 mb4 mt0">
({{ $.Params.init_date }} al {{ $.Params.end_date }})
</p>
{{ end }}

View File

@ -1,6 +1,6 @@
{{ $featured_image := .Params.featured_image }} {{ $featured_image := .Params.featured_image }}
<article class="bb b--black-10"> <article class="bb b--black-10">
<div class="db pv4 ph3 ph0-l no-underline dark-gray"> <div class="db pv4 ph3 ph0-l no-underline dark-gray debug">
<div class="flex flex-column flex-row-ns"> <div class="flex flex-column flex-row-ns">
{{ if .Params.featured_image }} {{ if .Params.featured_image }}
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
@ -12,11 +12,12 @@
</div> </div>
{{ end }} {{ end }}
<div class="blah w-100{{ if .Params.featured_image }} w-60-ns pl3-ns{{ end }}"> <div class="blah w-100{{ if .Params.featured_image }} w-60-ns pl3-ns{{ end }}">
<h1 class="f3 fw1 athelas mt0 lh-title"> <h1 class="f3 fw1 athelas mv0 lh-title">
<a href="{{.URL}}" class="color-inherit dim link"> <a href="{{.URL}}" class="color-inherit dim link">
{{ .Title }} {{ .Title }}
</a> </a>
</h1> </h1>
{{ partial "date.html" . }}
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links"> <div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
{{ .Summary }} {{ .Summary }}
</div> </div>

View File

@ -8,6 +8,7 @@
{{ end }} {{ end }}
<div class="w-100{{ if .Params.featured_image }} w-60-ns pl3-ns{{ end }}"> <div class="w-100{{ if .Params.featured_image }} w-60-ns pl3-ns{{ end }}">
<h1 class="f3 fw1 athelas mt0 lh-title">{{ .Title }}</h1> <h1 class="f3 fw1 athelas mt0 lh-title">{{ .Title }}</h1>
{{ partial "date.html" . }}
<div class="f6 f5-l lh-copy nested-copy-line-height"> <div class="f6 f5-l lh-copy nested-copy-line-height">
{{ .Summary }} {{ .Summary }}
</div> </div>