From e17269bc14b5a16a4f7f7d5b54edd03c7258b962 Mon Sep 17 00:00:00 2001 From: Marc Riera Irigoyen Date: Tue, 30 Jun 2020 23:09:07 +0200 Subject: [PATCH] General improvements --- layouts/index.html | 10 ++--- layouts/partials/header.html | 55 +++++++++++---------------- layouts/partials/menu.html | 64 +++++++++++++++++--------------- layouts/partials/recentnews.html | 24 +++++------- static/css/kozmo-dark.css | 5 +++ 5 files changed, 74 insertions(+), 84 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 9861e77..20b884a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,6 @@ {{ partial "header.html" . }} -
- {{ .Content }} -
-{{ partial "recentnews.html" . }} -{{ partial "footer.html" . }} +
+ {{ .Content }} +
+{{- partial "recentnews.html" . -}} +{{ partial "footer.html" . -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index cc213d0..eb9d5fa 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,61 +1,48 @@ - + {{ .Title }} - {{ .Site.Title }} - {{ hugo.Generator }} - - - + {{ hugo.Generator -}} {{ if isset .Site.Params "mathjax"}} - {{end}} - + {{ end }} -
-
- - {{ if isset .Site.Params "logoimage" }} + {{ if isset .Site.Params "logoimage" -}} - {{ end }} - - -
{{ .Site.Params.Description }}
- - + {{ end -}} + +
{{ .Site.Params.Description }}
-
- {{ if .IsTranslated }} + {{- if .IsTranslated }} - {{ end }} + {{- end }} +
+{{ partial "menu.html" . -}} + {{- if isset .Params "image" }} + + {{- end }} +
+

{{ .Title }}

- - {{ partial "menu.html" . }} - - {{ if isset .Params "image"}} - - {{end}} -
-

{{ .Title }}

-
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 7c67cb2..40072e5 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -1,32 +1,36 @@ diff --git a/layouts/partials/recentnews.html b/layouts/partials/recentnews.html index 3cc3387..f65fcc3 100644 --- a/layouts/partials/recentnews.html +++ b/layouts/partials/recentnews.html @@ -1,15 +1,9 @@ -{{ $recentupdatessection := .Site.Params.recentupdates | default "blog"}} - -{{ with .Site.GetPage "section" $recentupdatessection }} - -
- -

{{ i18n "latestUpdates" }}

- - {{ range (first 3 (where .Pages "Section" $recentupdatessection)) }} -

{{ .Date.Format "2006-01-02" }} {{ .Title }}

- {{ end }} - -
- -{{ end }} +{{- $recentupdatessection := .Site.Params.recentupdates | default "blog" }} +{{- with .Site.GetPage "section" $recentupdatessection }} +
+

{{ i18n "latestUpdates" }}

+ {{- range (first 3 (where .Pages "Section" $recentupdatessection)) }} +

{{ .Date.Format "2006-01-02" }} {{ .Title }}

+ {{- end }} +
+{{ end -}} diff --git a/static/css/kozmo-dark.css b/static/css/kozmo-dark.css index ceb879e..58d85c2 100644 --- a/static/css/kozmo-dark.css +++ b/static/css/kozmo-dark.css @@ -257,6 +257,11 @@ nav ul li a { padding: 10px 20px 10px 20px; margin-bottom: 20px; text-align: justify; + overflow-wrap: break-word; + word-wrap: break-word; + -webkit-hyphens: auto; + -ms-hyphens: auto; + hyphens: auto; } .timestamp,