diff options
author | Alejandro <[email protected]> | 2024-07-25 15:43:49 -0600 |
---|---|---|
committer | Alejandro <[email protected]> | 2024-07-25 15:43:49 -0600 |
commit | 1d0c4542e8a3e7fd43c10cb7f61298052258a832 (patch) | |
tree | 08737d2988f9dbb9958a6b34b499c8a4c80f5508 | |
parent | 394fec0d074684bdbdb99d07ef614aa5e6c0a5a7 (diff) |
added: shortcode for counting the programs in the main page
-rw-r--r-- | content/_index.md | 6 | ||||
-rw-r--r-- | layouts/shortcodes/count-doctorados.html | 1 | ||||
-rw-r--r-- | layouts/shortcodes/count-licenciaturas.html | 1 | ||||
-rw-r--r-- | layouts/shortcodes/count-maestrias.html | 1 |
4 files changed, 6 insertions, 3 deletions
diff --git a/content/_index.md b/content/_index.md index 6afcab3..47e663c 100644 --- a/content/_index.md +++ b/content/_index.md @@ -4,9 +4,9 @@ La Facultad de Informática desde su creación en el año de 1987 ha trabajado d Actualmente cuenta con: -- siete licenciaturas -- cuatro maestrías -- tres doctorados. +- {{< count-licenciaturas >}} licenciaturas +- {{< count-maestrias>}} maestrías +- {{< count-doctorados>}} doctorados. Como servicios adicionales para alumnos y la comunidad en general, la Facultad imparte: diff --git a/layouts/shortcodes/count-doctorados.html b/layouts/shortcodes/count-doctorados.html new file mode 100644 index 0000000..d2d1794 --- /dev/null +++ b/layouts/shortcodes/count-doctorados.html @@ -0,0 +1 @@ +{{ len (where .Site.RegularPages "Section" "==" "doctorado") }} diff --git a/layouts/shortcodes/count-licenciaturas.html b/layouts/shortcodes/count-licenciaturas.html new file mode 100644 index 0000000..25ac5f3 --- /dev/null +++ b/layouts/shortcodes/count-licenciaturas.html @@ -0,0 +1 @@ +{{ len (where .Site.RegularPages "Section" "==" "licenciatura") }} diff --git a/layouts/shortcodes/count-maestrias.html b/layouts/shortcodes/count-maestrias.html new file mode 100644 index 0000000..94557b6 --- /dev/null +++ b/layouts/shortcodes/count-maestrias.html @@ -0,0 +1 @@ +{{ len (where .Site.RegularPages "Section" "==" "maestria") }} |