diff options
author | Alejandro <[email protected]> | 2024-08-04 18:56:36 -0600 |
---|---|---|
committer | Alejandro <[email protected]> | 2024-08-04 18:56:36 -0600 |
commit | 8a200dccc2fbf286e6e37e1797b97555e903a5bf (patch) | |
tree | affe52f32b51d27bc25fef3f72ea3024a3d8f99e | |
parent | a95e32fe54f2cfa8a274748db9b21b06cb3378fe (diff) |
added: shortcode for phd programs
-rw-r--r-- | content/es/academia/doctorado/_index.md | 2 | ||||
-rw-r--r-- | layouts/shortcodes/list-phds.html | 9 |
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> |