summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/es/academia/doctorado/_index.md2
-rw-r--r--layouts/shortcodes/list-phds.html9
2 files changed, 11 insertions, 0 deletions
diff --git a/content/es/academia/doctorado/_index.md b/content/es/academia/doctorado/_index.md
index 5db6c40..6838dc5 100644
--- a/content/es/academia/doctorado/_index.md
+++ b/content/es/academia/doctorado/_index.md
@@ -1,3 +1,5 @@
+++
title = 'Doctorado'
+++
+
+{{< list-phds >}}
diff --git a/layouts/shortcodes/list-phds.html b/layouts/shortcodes/list-phds.html
new file mode 100644
index 0000000..426e313
--- /dev/null
+++ b/layouts/shortcodes/list-phds.html
@@ -0,0 +1,9 @@
+<ul class="majors">
+{{ $p := where site.RegularPages "Params.tags" "intersect" (slice "phd-program") }}
+{{ range $p }}
+<li><h3>{{ .Title }}</h3>
+{{ .Summary }}
+<a href="{{ .RelPermalink }}" id="read-more">Leer más</a>
+</li>
+{{ end }}
+</ul>