diff --git a/themes/mytheme/assets/css/common/header.css b/themes/mytheme/assets/css/common/header.css index 2c3cf09..3f983be 100644 --- a/themes/mytheme/assets/css/common/header.css +++ b/themes/mytheme/assets/css/common/header.css @@ -3,6 +3,7 @@ flex-wrap: wrap; justify-content: space-between; max-width: calc(var(--nav-width) + var(--gap) * 2); + margin-inline-start: auto; margin-inline-end: auto; line-height: var(--header-height); diff --git a/themes/mytheme/assets/css/core/theme-vars.css b/themes/mytheme/assets/css/core/theme-vars.css index d75ba40..ce9e139 100644 --- a/themes/mytheme/assets/css/core/theme-vars.css +++ b/themes/mytheme/assets/css/core/theme-vars.css @@ -1,7 +1,7 @@ :root { --gap: 20px; --content-gap: 20px; - --nav-width: 1024px; + --nav-width: 720px; --main-width: 720px; --header-height: 60px; --footer-height: 60px; diff --git a/themes/mytheme/layouts/partials/head.html b/themes/mytheme/layouts/partials/head.html index 35257fc..86ab33b 100644 --- a/themes/mytheme/layouts/partials/head.html +++ b/themes/mytheme/layouts/partials/head.html @@ -102,6 +102,23 @@ {{- end }} {{- end }} +{{- /* KaTeX */}} +{{ if or .Params.math true}} + + + + +{{ end }} + {{- /* Favicons */}} diff --git a/themes/mytheme/layouts/partials/header.html b/themes/mytheme/layouts/partials/header.html index 60fccd0..a9578b8 100644 --- a/themes/mytheme/layouts/partials/header.html +++ b/themes/mytheme/layouts/partials/header.html @@ -1,19 +1,3 @@ -{{ if or .Params.math true}} - - - - -{{ end }} -