diff options
author | Alejandro <[email protected]> | 2024-08-03 17:27:43 -0600 |
---|---|---|
committer | Alejandro <[email protected]> | 2024-08-03 17:27:43 -0600 |
commit | fa3dd14ae04f11de587536e3c2e4a4e4abe72614 (patch) | |
tree | 7c8c40a9044c7231ff6abfe3a165fa9a61716246 | |
parent | e7dcedaa8c8811850d0e7d032f95f595a6398a48 (diff) |
modified: count majors now uses tags
-rw-r--r-- | content/es/_index.md | 2 | ||||
-rw-r--r-- | layouts/shortcodes/count-licenciaturas.html | 1 | ||||
-rw-r--r-- | layouts/shortcodes/count-majors.html | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/content/es/_index.md b/content/es/_index.md index dce3a8a..76a71e0 100644 --- a/content/es/_index.md +++ b/content/es/_index.md @@ -8,7 +8,7 @@ La Facultad de Informática desde su creación en el año de 1987 ha trabajado d Actualmente cuenta con: -- [{{< count-licenciaturas >}} licenciaturas](/licenciatura) +- [{{< count-majors>}} licenciaturas](/licenciatura) - [{{< count-maestrias>}} maestrías](/maestria) - [{{< count-doctorados>}} doctorados](/doctorado) diff --git a/layouts/shortcodes/count-licenciaturas.html b/layouts/shortcodes/count-licenciaturas.html deleted file mode 100644 index 620267d..0000000 --- a/layouts/shortcodes/count-licenciaturas.html +++ /dev/null @@ -1 +0,0 @@ -{{ len (where .Site.RegularPages "Section" "licenciatura") }} diff --git a/layouts/shortcodes/count-majors.html b/layouts/shortcodes/count-majors.html new file mode 100644 index 0000000..d9bbf85 --- /dev/null +++ b/layouts/shortcodes/count-majors.html @@ -0,0 +1,2 @@ +{{ $p := where site.RegularPages "Params.tags" "intersect" (slice "major") }} +{{ len $p }} |