summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/list-noticias.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/layouts/shortcodes/list-noticias.html b/layouts/shortcodes/list-noticias.html
new file mode 100644
index 0000000..f1ce843
--- /dev/null
+++ b/layouts/shortcodes/list-noticias.html
@@ -0,0 +1,8 @@
+<ul class="news">
+{{ $p := where site.Pages "Params.tags" "intersect" (slice "noticia") }}
+{{ range $p }}
+
+<li> <a href="{{.RelPermalink}}"> {{- if .Param "datesinlist" }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> &ndash; {{ end -}} {{.Title}}</a></li>
+
+{{ end }}
+</ul>