mirror of https://github.com/jpanther/congo.git
Compare commits
4 Commits
71a30405b6
...
a0771d5a9b
Author | SHA1 | Date |
---|---|---|
Wolf Noble | a0771d5a9b | |
James Panther | 82b5481914 | |
dependabot[bot] | d19572206a | |
Wolf Noble | 843506a7f2 |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 38 KiB |
|
@ -20,8 +20,8 @@ fingerprintAlgorithm = "sha256"
|
|||
|
||||
[header]
|
||||
layout = "basic" # valid options: basic, hamburger, hybrid, custom
|
||||
# logo = "img/logo.jpg"
|
||||
# logoDark = "img/dark-logo.jpg"
|
||||
logo = "img/logo.jpg"
|
||||
logoDark = "img/dark-logo.svg"
|
||||
showTitle = true
|
||||
|
||||
[footer]
|
||||
|
|
|
@ -1,28 +1,26 @@
|
|||
{{- if .Site.Params.header.logo }}
|
||||
{{- $logo := resources.Get .Site.Params.header.logo }}
|
||||
{{- $logo_dark := resources.Get .Site.Params.header.logoDark }}
|
||||
{{- if $logo }}
|
||||
{{- if $.Page.Site.Params.header.logo }}
|
||||
{{- $logo := resources.Get $.Page.Site.Params.header.logo }}
|
||||
{{- $logo_dark := resources.Get $.Page.Site.Params.header.logoDark }}
|
||||
{{- $logoAlt := $.Page.Site.Title -}}
|
||||
{{- $logoClass := "max-h-[10rem] max-w-[10rem] object-scale-down object-left flex" -}}
|
||||
{{- $logoDarkClass := (print $logoClass " hidden dark:flex") -}}
|
||||
{{- if $logo_dark -}}
|
||||
{{- $logoClass = (print $logoClass " dark:hidden" ) -}}
|
||||
{{- end }}
|
||||
{{- if or $logo $logo_dark -}}
|
||||
<a href="{{ "" | relLangURL }}" class="mr-2">
|
||||
<img
|
||||
src="{{ $logo.RelPermalink }}"
|
||||
width="{{ div $logo.Width 2 }}"
|
||||
height="{{ div $logo.Height 2 }}"
|
||||
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left{{ if $logo_dark }} hidden dark:flex{{ end }}"
|
||||
alt="{{ .Site.Title }}"
|
||||
/>
|
||||
{{- if $logo_dark }}
|
||||
<img
|
||||
src="{{ $logo_dark.RelPermalink }}"
|
||||
width="{{ div $logo_dark.Width 2 }}"
|
||||
height="{{ div $logo_dark.Height 2 }}"
|
||||
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left dark:hidden"
|
||||
alt="{{ .Site.Title }}"
|
||||
/>
|
||||
{{- end}}
|
||||
{{- end }}
|
||||
{{- with $logo }}
|
||||
{{- partial "picture.html" (dict "img" . "alt" $logoAlt "class" $logoClass "lazy" false "webp" false ) -}}
|
||||
{{- end -}}
|
||||
{{- with $logo_dark }}
|
||||
{{- partial "picture.html" (dict "img" . "alt" $logoAlt "class" $logoDarkClass "lazy" false "webp" false ) -}}
|
||||
{{- end -}}
|
||||
{{- if or $logo $logo_dark -}}
|
||||
</a>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Site.Params.header.showTitle | default true }}
|
||||
{{- if $.Page.Site.Params.header.showTitle | default true }}
|
||||
<a
|
||||
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
||||
rel="me"
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"fuse.js": "^7.0.0",
|
||||
"katex": "^0.16.9",
|
||||
"mermaid": "^10.6.1",
|
||||
"prettier": "^3.1.0",
|
||||
"prettier": "^3.1.1",
|
||||
"prettier-plugin-go-template": "^0.0.15",
|
||||
"prettier-plugin-tailwindcss": "^0.5.9",
|
||||
"quicklink": "^2.3.0",
|
||||
|
@ -2333,9 +2333,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"node_modules/prettier": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz",
|
||||
"integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==",
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz",
|
||||
"integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"prettier": "bin/prettier.cjs"
|
||||
|
@ -4845,9 +4845,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"prettier": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz",
|
||||
"integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==",
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz",
|
||||
"integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==",
|
||||
"dev": true
|
||||
},
|
||||
"prettier-plugin-go-template": {
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
"fuse.js": "^7.0.0",
|
||||
"katex": "^0.16.9",
|
||||
"mermaid": "^10.6.1",
|
||||
"prettier": "^3.1.0",
|
||||
"prettier": "^3.1.1",
|
||||
"prettier-plugin-go-template": "^0.0.15",
|
||||
"prettier-plugin-tailwindcss": "^0.5.9",
|
||||
"quicklink": "^2.3.0",
|
||||
|
|
Loading…
Reference in New Issue