Added a partial for the date in spanish and added it on the summary and posts.

This commit is contained in:
Emiliano Tortorella 2019-01-18 20:46:09 -05:00
parent 55e62448dd
commit 4eb44cc94c
4 changed files with 14 additions and 5 deletions

View File

@ -20,9 +20,9 @@
{{- .Title -}}
</h1>
{{/* 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>
{{ partial "date.html" . }}
{{/*
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`

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

@ -1,6 +1,6 @@
{{ $featured_image := .Params.featured_image }}
<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">
{{ if .Params.featured_image }}
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
@ -12,11 +12,12 @@
</div>
{{ 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">
{{ .Title }}
</a>
</h1>
{{ partial "date.html" . }}
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
{{ .Summary }}
</div>

View File

@ -8,6 +8,7 @@
{{ 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>
{{ partial "date.html" . }}
<div class="f6 f5-l lh-copy nested-copy-line-height">
{{ .Summary }}
</div>