Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cfcdb20d17 | ||
|
|
0c941ebb04 | ||
|
|
f13c478718 | ||
|
|
bde2914dec |
@@ -1,6 +1,7 @@
|
|||||||
html {
|
html {
|
||||||
font-size: 62.5%;
|
font-size: 62.5%;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
scrollbar-gutter: stable;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@@ -17,25 +18,4 @@ body {
|
|||||||
-ms-text-autospace: ideograph-alpha;
|
-ms-text-autospace: ideograph-alpha;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* scrollbar styles for Firefox */
|
|
||||||
* {
|
|
||||||
scrollbar-width: auto;
|
|
||||||
scrollbar-color: var(--scrollbar-thumb) transparent;
|
|
||||||
}
|
|
||||||
/**/
|
|
||||||
|
|
||||||
/* scrollbar styles for Chromium */
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background-color: var(--scrollbar-thumb);
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
/**/
|
|
||||||
@@ -133,10 +133,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
color: var(--card-text-color-main);
|
color: var(--card-text-color-main);
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background-color: var(--card-separator-color);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.widget--toc {
|
.widget--toc {
|
||||||
|
|||||||
@@ -19,17 +19,12 @@
|
|||||||
|
|
||||||
--section-separation: 40px;
|
--section-separation: 40px;
|
||||||
|
|
||||||
--scrollbar-thumb: hsl(0, 0%, 85%);
|
|
||||||
--scrollbar-track: var(--body-background);
|
|
||||||
|
|
||||||
&[data-scheme="dark"] {
|
&[data-scheme="dark"] {
|
||||||
--body-background: #303030;
|
--body-background: #303030;
|
||||||
--accent-color: #ecf0f1;
|
--accent-color: #ecf0f1;
|
||||||
--accent-color-darker: #bdc3c7;
|
--accent-color-darker: #bdc3c7;
|
||||||
--accent-color-text: #000;
|
--accent-color-text: #000;
|
||||||
--body-text-color: rgba(255, 255, 255, 0.7);
|
--body-text-color: rgba(255, 255, 255, 0.7);
|
||||||
--scrollbar-thumb: hsl(0, 0%, 40%);
|
|
||||||
--scrollbar-track: var(--body-background);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
mainSections = ["post"]
|
mainSections = ["post"]
|
||||||
featuredImageField = "image"
|
rssFullContent = true
|
||||||
rssFullContent = true
|
|
||||||
# Accepted values: "default", "lastmod"
|
# Accepted values: "default", "lastmod"
|
||||||
# default = see https://gohugo.io/quick-reference/glossary/#default-sort-order
|
# default = see https://gohugo.io/quick-reference/glossary/#default-sort-order
|
||||||
# lastmod = sort by last modified date, in descending order
|
# lastmod = sort by last modified date, in descending order
|
||||||
SortBy = "default"
|
SortBy = "default"
|
||||||
|
|
||||||
[footer]
|
[footer]
|
||||||
since = 2026
|
since = 2026
|
||||||
@@ -78,6 +77,9 @@ SortBy = "default"
|
|||||||
[imageProcessing]
|
[imageProcessing]
|
||||||
autoOrient = false
|
autoOrient = false
|
||||||
|
|
||||||
|
[imageProcessing.external]
|
||||||
|
timeout = "5s"
|
||||||
|
|
||||||
[imageProcessing.content]
|
[imageProcessing.content]
|
||||||
widths = [800, 1600, 2400]
|
widths = [800, 1600, 2400]
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|||||||
@@ -9,28 +9,32 @@
|
|||||||
/// Height: Image height
|
/// Height: Image height
|
||||||
/// Width: Image width
|
/// Width: Image width
|
||||||
|
|
||||||
{{ $result := "" }}
|
{{ $result := dict }}
|
||||||
|
|
||||||
{{ if .Image }}
|
{{ if .Image }}
|
||||||
{{ $url := urls.Parse .Image }}
|
{{ $url := urls.Parse .Image }}
|
||||||
{{ $permalink := .Image }}
|
{{ $permalink := .Image }}
|
||||||
{{ $resource := "" }}
|
{{ $resource := dict
|
||||||
|
"Resource" nil
|
||||||
|
"Permalink" $permalink
|
||||||
|
"Height" nil
|
||||||
|
"Width" nil
|
||||||
|
}}
|
||||||
{{ $local := true }}
|
{{ $local := true }}
|
||||||
|
|
||||||
{{ if not (in (slice "https" "http") $url.Scheme) }}
|
{{ if not (in (slice "https" "http") $url.Scheme) }}
|
||||||
{{/* Local image */}}
|
{{/* Local image */}}
|
||||||
{{ $resource = .Resources.Get (printf "%s" (.Image | safeURL)) }}
|
{{ $resource = .Resources.Get (printf "%s" (.Image | safeURL)) }}
|
||||||
{{ $permalink = $resource.RelPermalink }}
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{/* Remote image */}}
|
{{/* Remote image */}}
|
||||||
{{ with try (resources.GetRemote $url) }}
|
{{ with try (resources.GetRemote $url (dict "timeout" .Context.Site.Params.imageProcessing.external.timeout)) }}
|
||||||
{{ with .Err }}
|
{{ with .Err }}
|
||||||
{{ errorf "%s" . }}
|
{{ warnf "Failed to fetch remote resource %q: %s" $url . }}
|
||||||
{{ else with .Value }}
|
{{ else with .Value }}
|
||||||
{{ $resource = . }}
|
{{ $resource = . }}
|
||||||
{{ $local = false }}
|
{{ $local = false }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ errorf "Unable to get remote resource %q" $url }}
|
{{ warnf "Unable to get remote resource %q" $url }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -39,11 +43,12 @@
|
|||||||
{{ if and .Context.Site.Params.imageProcessing.autoOrient (reflect.IsImageResourceProcessable $resource) }}
|
{{ if and .Context.Site.Params.imageProcessing.autoOrient (reflect.IsImageResourceProcessable $resource) }}
|
||||||
{{ $filter := images.AutoOrient }}
|
{{ $filter := images.AutoOrient }}
|
||||||
{{ $resource = $resource | images.Filter $filter }}
|
{{ $resource = $resource | images.Filter $filter }}
|
||||||
{{ if $local }}
|
|
||||||
{{ $permalink = $resource.RelPermalink }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if $local }}
|
||||||
|
{{ $permalink = $resource.RelPermalink }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ if reflect.IsImageResourceWithMeta $resource }}
|
{{ if reflect.IsImageResourceWithMeta $resource }}
|
||||||
{{ $result = dict
|
{{ $result = dict
|
||||||
"Resource" $resource
|
"Resource" $resource
|
||||||
|
|||||||
Reference in New Issue
Block a user