diff --git a/themes/academic/assets/scss/ansol.scss b/themes/academic/assets/scss/ansol.scss index 02ec9bc..c693478 100644 --- a/themes/academic/assets/scss/ansol.scss +++ b/themes/academic/assets/scss/ansol.scss @@ -192,18 +192,21 @@ nav.main .nav-search:hover { .events-list li { min-width: 300px; - display: grid; - grid-template-areas: "img text"; - justify-content: left; - background-color: white; width: calc(50% - 50px); - column-gap: 1rem; } .events-list.events-list-full-width li { width: calc(100% - 50px); } +.events-list .wrapper { + display: grid; + grid-template-areas: "img text"; + justify-content: left; + background-color: white; + column-gap: 1rem; +} + .events-list .event-cover { width: 90px; height: 90px; @@ -214,10 +217,8 @@ nav.main .nav-search:hover { .events-list .img { grid-area: img; } .events-list .text { grid-area: text; margin-top: 5px; } -.events-list .date { } .events-list .subheader { font-size: 0.8rem; margin-top: 10px; } - -.events-list .title { font-size: 1.25rem; } +.events-list .headline { font-size: 1.25rem; margin-top: 5px;} p { margin: 0px; } diff --git a/themes/academic/layouts/_default/single.html b/themes/academic/layouts/_default/single.html index bf6b91e..bd795a2 100644 --- a/themes/academic/layouts/_default/single.html +++ b/themes/academic/layouts/_default/single.html @@ -12,24 +12,10 @@ {{ if eq .Params.layout "evento" }}
- Data: - {{ if eq (time.Format "2 January 2006" .start) (time.Format "2 January 2006" .finish) }} - {{ if eq (time.Format "15:04" .start) (time.Format "15:04" .finish) }} - {{ time.Format "2 de January de 2006" .start }} - {{ else }} - {{ time.Format "2 de January de 2006" .start }} das - {{ time.Format "15:04" .start }} às - {{ time.Format "15:04" .finish }} - {{ end }} - {{ else if eq (time.Format "January 2006" .start) (time.Format "January 2006" .finish) }} - De {{ time.Format "2" .start }} a {{ time.Format "2 de January de 2006" .finish }} - {{ else }} - De {{ time.Format "2 de January de 2006" .start }} até {{ time.Format "2 de January de 2006" .finish }} - {{ end }} -
- {{ end }} ++ Data: + {{ partial "event-date" . }} +
{{ with .Params.metadata.event.site }}Website: {{ .title | or .url }}
diff --git a/themes/academic/layouts/eventos/single.html b/themes/academic/layouts/eventos/single.html index 20bae44..a3752cf 100644 --- a/themes/academic/layouts/eventos/single.html +++ b/themes/academic/layouts/eventos/single.html @@ -14,24 +14,10 @@- Data: - {{ if eq (time.Format "2 January 2006" .start) (time.Format "2 January 2006" .finish) }} - {{ if eq (time.Format "15:04" .start) (time.Format "15:04" .finish) }} - {{ time.Format "2 de January de 2006" .start }} - {{ else }} - {{ time.Format "2 de January de 2006" .start }} das - {{ time.Format "15:04" .start }} às - {{ time.Format "15:04" .finish }} - {{ end }} - {{ else if eq (time.Format "January 2006" .start) (time.Format "January 2006" .finish) }} - De {{ time.Format "2" .start }} a {{ time.Format "2 de January de 2006" .finish }} - {{ else }} - De {{ time.Format "2 de January de 2006" .start }} até {{ time.Format "2 de January de 2006" .finish }} - {{ end }} -
- {{ end }} ++ Data: + {{ partial "event-date" . }} +
{{ with .Params.metadata.event.site }}Website: {{ .title | or .url }}
diff --git a/themes/academic/layouts/index.html b/themes/academic/layouts/index.html index fe20837..a785a75 100644 --- a/themes/academic/layouts/index.html +++ b/themes/academic/layouts/index.html @@ -21,7 +21,7 @@ {{ $query = first 3 $query -}} {{ range $post := $query -}}- {{ .Title }} -
-- - {{ with .Params.metadata.event.date }} - {{ if eq (time.Format "2 January 2006" .start) (time.Format "2 January 2006" .finish) }} - {{ if eq (time.Format "15:04" .start) (time.Format "15:04" .finish) }} - {{ time.Format "2 de January de 2006" .start }} - {{ else }} - {{ time.Format "2 de January de 2006" .start }} das - {{ time.Format "15:04" .start }} às - {{ time.Format "15:04" .finish }} - {{ end }} - {{ else if eq (time.Format "January 2006" .start) (time.Format "January 2006" .finish) }} - De {{ time.Format "2" .start }} a {{ time.Format "2 de January de 2006" .finish }} - {{ else }} - De {{ time.Format "2 de January de 2006" .start }} a {{ time.Format "2 de January de 2006" .finish }} - {{ end }} - {{ end }} - - — - {{ .Params.metadata.event.location }} -
-{{ .Title }}
++ {{ partial "event-date" . }} + — + {{ .Params.metadata.event.location }} +
+- {{ .Title }} -
-- - {{ with .Params.metadata.event.date }} - {{ if eq (time.Format "2 January 2006" .start) (time.Format "2 January 2006" .finish) }} - {{ if eq (time.Format "15:04" .start) (time.Format "15:04" .finish) }} - {{ time.Format "2 de January de 2006" .start }} - {{ else }} - {{ time.Format "2 de January de 2006" .start }} das - {{ time.Format "15:04" .start }} às - {{ time.Format "15:04" .finish }} - {{ end }} - {{ else if eq (time.Format "January 2006" .start) (time.Format "January 2006" .finish) }} - De {{ time.Format "2" .start }} a {{ time.Format "2 de January de 2006" .finish }} - {{ else }} - De {{ time.Format "2 de January de 2006" .start }} a {{ time.Format "2 de January de 2006" .finish }} - {{ end }} - {{ end }} - - — - {{ .Params.metadata.event.location }} -
-{{ .Title }}
++ {{ partial "event-date" . }} + — + {{ .Params.metadata.event.location }} +
+