diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1e228fd..264d86e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,10 +1,11 @@ {{ define "main" }} -
+{{- partial "lang-detection.html" . -}} +

{{ .Title }}

- {{- if .Params.description }} -

{{ .Params.description }}

+ {{- with .Description }} +

{{ . }}

{{- end }} {{ partial "post-metadata.html" (dict "current" . "parent" .) -}}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 994a342..2dee369 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -8,11 +8,24 @@ {{- end }} + - - - - + + + {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} @@ -25,16 +38,76 @@ {{- partial "mathjax.html" . -}} {{- end -}} + {{- partial "lang-detection.html" . -}} {{- if .IsTranslated -}} {{- range .Translations -}} {{- if .Scratch.Get "en_article_in_fr_site" -}} + {{ else }} + {{ end -}} {{- end -}} {{- end -}} +{{- if .IsHome }} + +{{ else if .IsPage -}} + +{{ end -}} + diff --git a/static/css/itix.css b/static/css/itix.css index de5d362..e8212d1 100644 --- a/static/css/itix.css +++ b/static/css/itix.css @@ -2,8 +2,7 @@ /* * Theme colors */ - --main-color-decimal: 25, 118, 210; /* main-color */ - --main-color: var(--main-color-decimal); + --main-color: #1976d2; --main-background-color: #fcfcfc; --alternate-text-color: #145ca4; --main-text-color: #092949; /* 50% darker than main-color */ @@ -24,8 +23,6 @@ /* * Layout */ - --heading1-size: 30px; - --heading-diff: 3px; --menu-container-width: 25%; --toolbar-container-width: 25%; @@ -165,34 +162,32 @@ h1, h2, h3 { line-height: 1.5em; } +h1, h2, h3, h4, h5, h6 { + margin: 20px 0 20px 0; +} + h1 { - font-size: var(--heading1-size); - margin: 20px auto; + font-size: 30px; } h2 { - font-size: calc(var(--heading1-size) - 2 * var(--heading-diff)); - margin: 20px auto; + font-size: 24px; } h3 { - font-size: calc(var(--heading1-size) - 3 * var(--heading-diff)); - margin: 20px auto; + font-size: 21px; } h4 { - font-size: calc(var(--heading1-size) - 3 * var(--heading-diff)); - padding: 20px auto; + font-size: 21px; } h5 { - font-size: calc(var(--heading1-size) - 3 * var(--heading-diff)) - 1; - padding: 10px auto; + font-size: 20px; } h6 { - font-size: calc(var(--heading1-size) - 3 * var(--heading-diff)) - 2; - padding: 10px auto; + font-size: 19px; } figure { @@ -221,7 +216,6 @@ table { } button { - cursor: hand; cursor: pointer; } @@ -424,7 +418,6 @@ article header h4 { .menu-head, .menu-link-list a, .menu-head:hover, .menu-link-list a:hover { display: block; text-decoration: none !important; - cursor: hand; cursor: pointer; border-right: 2px solid transparent; } @@ -496,11 +489,11 @@ article header h4 { */ .menu input.hamburger-menu { display: block; - width: 40px; - height: 32px; + width: 80px; + height: 72px; position: fixed; - top: 20px; - left: 20px; + top: 0px; + left: 0px; margin: 0; cursor: pointer; @@ -608,7 +601,6 @@ article header h4 { align-items: center; justify-items: center; width: 64px; - cursor: hand; cursor: pointer; padding: 15px 0; }