summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/_index.md6
-rw-r--r--layouts/shortcodes/count-doctorados.html1
-rw-r--r--layouts/shortcodes/count-licenciaturas.html1
-rw-r--r--layouts/shortcodes/count-maestrias.html1
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") }}