diff --git a/freezer.py b/freezer.py index 83fe4e1..e09d2fc 100644 --- a/freezer.py +++ b/freezer.py @@ -16,7 +16,7 @@ for file in _files: @freezer.register_generator def content(): for _file in _files: - yield { "path": _file } + yield { "path": _file.encode('utf-8')} if __name__ == '__main__': freezer.freeze() diff --git a/settings.toml b/settings.toml index a87c1f1..0db5bcd 100644 --- a/settings.toml +++ b/settings.toml @@ -4,5 +4,5 @@ title = "The Real Hugo" [content] path = "templates/content/" -style = "xcode" # Supported styles are one-dark, solarized-dark, solarized-light, github-dark, xcode, nord | taken from https://pygments.org/styles/ +style = "nord" # Supported styles are one-dark, solarized-dark, solarized-light, github-dark, xcode, nord | taken from https://pygments.org/styles/ diff --git a/static/stylesheet.css b/static/stylesheet.css index 9b4f952..857462d 100644 --- a/static/stylesheet.css +++ b/static/stylesheet.css @@ -1,26 +1,34 @@ -html *{ font-family: Dejavu Sans Mono, Noto Sans Mono, Menlo, Consolas, Monaco, monospace; } +html *{ font-family: Dejavu Sans Mono, Noto Sans Mono, Ubuntu Mono, Menlo, Consolas, Monaco, monospace; } body { margin:0; padding: 0; text-decoration: none; } + h1 {font-size: 33px; font-style: normal; font-variant: normal; font-weight: 700; line-height: 51px; } h2 {font-size: 26px; font-style: normal; font-variant: normal; font-weight: 700; line-height: 41px; } h3 { font-size: 16px; font-style: normal; font-variant: normal; font-weight: 700; line-height: 27px; } + p { font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; line-height: 27px; } blockquote { text-align: center; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; line-height: 27px; } + pre { font-family: monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; line-height: 27px; padding-left: 2ch;padding-top:2ch; padding-bottom: 2ch; overflow: auto; max-width: 100%; border-radius: 5px;} code { max-width: 100%; overflow: auto; } + img { max-width: 100%; } hr { height: 0px; } + a {color: inherit; } a:hover { text-decoration: solid underline;} + details > summary{ font-size: 16px;} details > summary:hover { } details summary::-webkit-details-marker, details summary::marker { height: auto; content: "\1F4C1\20";} + /*details summary::marker { display: none; content: ""; }*/ ::selection { } ::-moz-selection { } + .menu { line-height: 1em; font-size: 32px; text-decoration: none; width: 100%; margin: 0 auto; opacity: 1; } -.banner { float: left; padding-left: 2em; padding-top: 8px; text-align: center; } -.header-wrapper { width: 100%; position: fixed; top: 0; padding-bottom: 12px; padding-top: 8px; opacity: 0.9; } +.banner { float: left; text-align: center; width: 13%; font-weight: 700; padding-top: 8px;} +.header-wrapper { width: 100%; position: fixed; top: 0; opacity: 0.9; } .HolyGrail, .HolyGrail-body { @@ -30,12 +38,13 @@ details summary::marker { height: auto; content: "\1F4C1\20";} .HolyGrail-nav { padding-right: 1em; - padding-top: 1em; + padding-top: 3ch; padding-bottom: 1em; order: -1; } -@media (min-width: 768px) { +@media (min-width: 1024px/*768px*/) { + .header-wrapper { width: 100%; position: fixed; top: 0; padding-bottom: 12px; padding-top: 8px; opacity: 0.9; } .HolyGrail-body { flex-direction: row; flex: 1; @@ -46,8 +55,8 @@ details summary::marker { height: auto; content: "\1F4C1\20";} .HolyGrail-content { flex: 1; text-align: left; - margin-left: 2em; - margin-right: 2em; + margin-left: 3em; + margin-right: 3em; /* max-width: 80.5em; */ overflow: auto; padding-top: 1em; @@ -60,15 +69,18 @@ details summary::marker { height: auto; content: "\1F4C1\20";} line-height: 27px; } .HolyGrail-ads { - overflow: hidden; - padding-right: 8px; - min-width: 18em; + overflow: hidden; + padding-right: 8px; + padding-top: 1.3ch; + min-width: 16em; max-width: 18em; border-top-left-radius: 10px; border-bottom-left-radius: 10px; + /*font-size: 13px; + line-height: 23px;*/ } .HolyGrail-nav { - min-width: 18em; + min-width: 16em; max-width: 18em; border-top-right-radius: 10px; border-bottom-right-radius: 10px; @@ -79,6 +91,7 @@ details summary::marker { height: auto; content: "\1F4C1\20";} padding-left: 1.5ch; margin: 0em; text-align: left; + /* direction: rtl; */ } .HolyGrail-nav li { @@ -88,6 +101,8 @@ details summary::marker { height: auto; content: "\1F4C1\20";} text-align: left; /* experimental line height */ list-style-position: inside; + font-weight: 400; + } .HolyGrail-nav li::marker { diff --git a/templates/template.html b/templates/template.html index 8c62b6b..065a758 100644 --- a/templates/template.html +++ b/templates/template.html @@ -2,6 +2,7 @@
{% block head %} + @@ -12,6 +13,7 @@