mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 09:12:47 +00:00
Added a partial for the date in spanish and added it on the summary and posts.
This commit is contained in:
parent
55e62448dd
commit
4eb44cc94c
@ -20,9 +20,9 @@
|
|||||||
{{- .Title -}}
|
{{- .Title -}}
|
||||||
</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" -}}
|
{{ partial "date.html" . }}
|
||||||
</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`
|
||||||
|
7
layouts/partials/date.html
Normal file
7
layouts/partials/date.html
Normal 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>
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user