mirror of https://github.com/jpanther/congo.git
Compare commits
5 Commits
16cbd652f3
...
a595172fb2
Author | SHA1 | Date |
---|---|---|
Wolf Noble | a595172fb2 | |
James Panther | 6cfbf4d946 | |
James Panther | 2001d17a55 | |
Wolf Noble | 843506a7f2 | |
Denis Koshelev | da0ea762d0 |
|
@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
- Warning when building if links to Markdown files cannot be resolved ([#691](https://github.com/jpanther/congo/pull/691))
|
- Warning when building if links to Markdown files cannot be resolved ([#691](https://github.com/jpanther/congo/pull/691))
|
||||||
- Ability to share articles to Telegram and Line ([#719](https://github.com/jpanther/congo/pull/719))
|
- Ability to share articles to Telegram and Line ([#719](https://github.com/jpanther/congo/pull/719))
|
||||||
- New icons for `line` and `google-scholar` ([#719](https://github.com/jpanther/congo/pull/719), [#755](https://github.com/jpanther/congo/pull/755))
|
- New icons for `line` and `google-scholar` ([#719](https://github.com/jpanther/congo/pull/719), [#755](https://github.com/jpanther/congo/pull/755))
|
||||||
|
- Table of contents will now scroll if taller than the browser height ([#733](https://github.com/jpanther/congo/pull/733))
|
||||||
- Korean translation ([#731](https://github.com/jpanther/congo/pull/731))
|
- Korean translation ([#731](https://github.com/jpanther/congo/pull/731))
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -1137,6 +1137,12 @@ body:has(#menu-controller:checked) {
|
||||||
|
|
||||||
/* Table of Contents */
|
/* Table of Contents */
|
||||||
|
|
||||||
|
.toc {
|
||||||
|
max-height: 100vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
.toc ul,
|
.toc ul,
|
||||||
.toc li {
|
.toc li {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
|
|
|
@ -59,6 +59,12 @@ body:has(#menu-controller:checked) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Table of Contents */
|
/* Table of Contents */
|
||||||
|
.toc {
|
||||||
|
max-height: 100vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
.toc ul,
|
.toc ul,
|
||||||
.toc li {
|
.toc li {
|
||||||
@apply list-none px-0 leading-snug;
|
@apply list-none px-0 leading-snug;
|
||||||
|
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 38 KiB |
|
@ -20,8 +20,8 @@ fingerprintAlgorithm = "sha256"
|
||||||
|
|
||||||
[header]
|
[header]
|
||||||
layout = "basic" # valid options: basic, hamburger, hybrid, custom
|
layout = "basic" # valid options: basic, hamburger, hybrid, custom
|
||||||
# logo = "img/logo.jpg"
|
logo = "img/logo.jpg"
|
||||||
# logoDark = "img/dark-logo.jpg"
|
logoDark = "img/dark-logo.svg"
|
||||||
showTitle = true
|
showTitle = true
|
||||||
|
|
||||||
[footer]
|
[footer]
|
||||||
|
|
|
@ -1,32 +1,30 @@
|
||||||
{{- if .Site.Params.header.logo }}
|
{{- if $.Page.Site.Params.header.logo }}
|
||||||
{{- $logo := resources.Get .Site.Params.header.logo }}
|
{{- $logo := resources.Get $.Page.Site.Params.header.logo }}
|
||||||
{{- $logo_dark := resources.Get .Site.Params.header.logoDark }}
|
{{- $logo_dark := resources.Get $.Page.Site.Params.header.logoDark }}
|
||||||
{{- if $logo }}
|
{{- $logoAlt := $.Page.Site.Title -}}
|
||||||
<a href="{{ "" | relLangURL }}" class="mr-2">
|
{{- $logoClass := "max-h-[10rem] max-w-[10rem] object-scale-down object-left flex" -}}
|
||||||
<img
|
{{- $logoDarkClass := (print $logoClass " hidden dark:flex") -}}
|
||||||
src="{{ $logo.RelPermalink }}"
|
{{- if $logo_dark -}}
|
||||||
width="{{ div $logo.Width 2 }}"
|
{{- $logoClass = (print $logoClass " dark:hidden" ) -}}
|
||||||
height="{{ div $logo.Height 2 }}"
|
{{- end }}
|
||||||
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left{{ if $logo_dark }} hidden dark:flex{{ end }}"
|
{{- if or $logo $logo_dark -}}
|
||||||
alt="{{ .Site.Title }}"
|
<a href="{{ "" | relLangURL }}" class="mr-2">
|
||||||
/>
|
{{- end }}
|
||||||
{{- if $logo_dark }}
|
{{- with $logo }}
|
||||||
<img
|
{{- partial "picture.html" (dict "img" . "alt" $logoAlt "class" $logoClass "lazy" false "webp" false ) -}}
|
||||||
src="{{ $logo_dark.RelPermalink }}"
|
{{- end -}}
|
||||||
width="{{ div $logo_dark.Width 2 }}"
|
{{- with $logo_dark }}
|
||||||
height="{{ div $logo_dark.Height 2 }}"
|
{{- partial "picture.html" (dict "img" . "alt" $logoAlt "class" $logoDarkClass "lazy" false "webp" false ) -}}
|
||||||
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left dark:hidden"
|
{{- end -}}
|
||||||
alt="{{ .Site.Title }}"
|
{{- if or $logo $logo_dark -}}
|
||||||
/>
|
|
||||||
{{- end}}
|
|
||||||
</a>
|
</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Site.Params.header.showTitle | default true }}
|
{{- if $.Page.Site.Params.header.showTitle | default true }}
|
||||||
<a
|
<a
|
||||||
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
||||||
rel="me"
|
rel="me"
|
||||||
href="{{ "" | relLangURL }}"
|
href="{{ "" | relLangURL }}"
|
||||||
>{{ .Site.Title | markdownify | emojify }}</a
|
>{{ .Site.Title | markdownify | emojify }}</a
|
||||||
>
|
>
|
||||||
{{- end }}
|
{{- end }}
|
Loading…
Reference in New Issue