diff --git a/content/spotlight/_index.md b/content/spotlight/_index.md new file mode 100644 index 000000000..f849f1f60 --- /dev/null +++ b/content/spotlight/_index.md @@ -0,0 +1,21 @@ +--- +title: Documentation spotlight +linktitle: Spotlight overview +description: Documentation spotlight +date: 2018-02-09 +publishdate: 2018-02-09 +lastmod: 2018-02-09 +categories: [spotlight] +keywords: [] +menu: + docs: + parent: "Spotlight" + weight: 01 +weight: 01 #rem +draft: false +slug: +aliases: [] +toc: false +--- + +Bla bla spotlight diff --git a/content/spotlight/latest-updated.md b/content/spotlight/latest-updated.md new file mode 100644 index 000000000..d17b7b02d --- /dev/null +++ b/content/spotlight/latest-updated.md @@ -0,0 +1,21 @@ +--- +title: Latest changes to the Hugo Docs +linktitle: Latest changes +description: The latest changes on Hugo documentation. +date: 2018-02-09 +publishdate: 2018-02-09 +lastmod: 2018-02-09 +categories: [spotlight] +keywords: [docs,documentation,community, spotlights] +menu: + docs: + parent: "Spotlight" + weight: 20 +weight: 20 +sections_weight: 20 +draft: false +aliases: [] +toc: true +--- + +{{% latest-updated 20 %}} diff --git a/layouts/shortcodes/latest-updated.html b/layouts/shortcodes/latest-updated.html new file mode 100644 index 000000000..5f661bc14 --- /dev/null +++ b/layouts/shortcodes/latest-updated.html @@ -0,0 +1,31 @@ +{{ $nombre_md := .Get 0 }} + +

Here are the latest {{ $nombre_md }} changes.

+ + + + + + + + + + + + + + {{ range first $nombre_md (sort .Site.RegularPages.ByLastmod ".Lastmod" "desc") }} + + + + + + + + + {{ end }} + +
DateDirect accessLocationCommit message
{{.Lastmod.Format "Jan, 02 2006"}} + {{ .Title }} + {{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ $url }}TODO : can't succed to have .GitInfo. It is nil