From 1d0c4542e8a3e7fd43c10cb7f61298052258a832 Mon Sep 17 00:00:00 2001 From: Alejandro Date: Thu, 25 Jul 2024 15:43:49 -0600 Subject: added: shortcode for counting the programs in the main page --- content/_index.md | 6 +++--- layouts/shortcodes/count-doctorados.html | 1 + layouts/shortcodes/count-licenciaturas.html | 1 + layouts/shortcodes/count-maestrias.html | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 layouts/shortcodes/count-doctorados.html create mode 100644 layouts/shortcodes/count-licenciaturas.html create mode 100644 layouts/shortcodes/count-maestrias.html 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") }} -- cgit v1.2.3