diff options
author | Alejandro <alex.mac.fon@gmail.com> | 2024-08-03 11:52:50 -0600 |
---|---|---|
committer | Alejandro <alex.mac.fon@gmail.com> | 2024-08-03 11:52:50 -0600 |
commit | 5c301be7e1736e73fa8ffa1c1d1c16f233fd2015 (patch) | |
tree | 28cee9c09e1be0603b71c1b4e1c995be84da14d7 | |
parent | 42a228ed406ee9af0cbf8a392dff667685e13553 (diff) |
added: read more button and majors class
-rw-r--r-- | layouts/shortcodes/list-majors.html | 7 | ||||
-rw-r--r-- | static/style.css | 32 |
2 files changed, 36 insertions, 3 deletions
diff --git a/layouts/shortcodes/list-majors.html b/layouts/shortcodes/list-majors.html index 7bb2669..9738280 100644 --- a/layouts/shortcodes/list-majors.html +++ b/layouts/shortcodes/list-majors.html @@ -1,7 +1,8 @@ -<ul class="programs"> +<ul class="majors"> {{ range (where .Site.RegularPages "Section" "==" "licenciatura") }} -<a href="{{ .RelPermalink }}"><li>{{ .Title }} <br> +<li><h3>{{ .Title }}</h3> {{ .Summary }} -</li></a> +<a href="{{ .RelPermalink }}" id="read-more">Leer más</a> +</li> {{ end }} </ul> diff --git a/static/style.css b/static/style.css index 88f3b95..9b493d6 100644 --- a/static/style.css +++ b/static/style.css @@ -44,3 +44,35 @@ footer { #nextart,#prevart { max-width: 33% ; } + +h1 { + text-align: center; +} + +.majors{ + text-align: center; + align-content: center; + justify-content: center; + display: flex; + max-width: 1280px; + list-style: none; + flex-wrap: wrap; + gap: 10px; +} + +.majors > li{ + min-height: 600px; + max-width: 300px; + display: flex; + flex-direction: column; + justify-content: space-between; +} + +#read-more { + font-weight: bold; + background-color: red; + padding: 4px; + border-radius: 6px; + justify-content: center; + margin: 0 auto; +} |