mirror of https://github.com/jpanther/congo.git
Compare commits
6 Commits
86bc3fd15d
...
71a30405b6
Author | SHA1 | Date |
---|---|---|
Wolf Noble | 71a30405b6 | |
James Panther | 0c5d6d1125 | |
James Panther | 5142e27a62 | |
dependabot[bot] | d23e94b820 | |
dependabot[bot] | adc5f4a80d | |
Wolf Noble | 843506a7f2 |
|
@ -12,7 +12,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Label
|
||||
uses: actions/labeler@v4
|
||||
uses: actions/labeler@v5
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
configuration-path: .github/labeller.yml
|
||||
|
|
|
@ -10,7 +10,7 @@ jobs:
|
|||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/stale@v8
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
days-before-stale: 120
|
||||
days-before-close: 30
|
||||
|
|
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"
|
||||
|
|
Loading…
Reference in New Issue