Fix Hugo v0.156+ deprecations: Site.Author, Site.Data, and libsass
- Replace .Site.Author.{email,name} with .Site.Params.{social.email,author} in rss.xml
- Replace .Site.Data with hugo.Data in footer, social, and contact-box templates
- Switch SCSS transpiler from libsass to dartsass; add @use "sass:color" and replace darken()/lighten() with color.adjust()
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
@use "sass:color";
|
||||||
// Colors
|
// Colors
|
||||||
$midnight-blue: #07608f;
|
$midnight-blue: #07608f;
|
||||||
$midnight-matte: #4c7e99;
|
$midnight-matte: #4c7e99;
|
||||||
@@ -763,7 +764,7 @@ table {
|
|||||||
border: 2px solid $ipng-orange;
|
border: 2px solid $ipng-orange;
|
||||||
tr {
|
tr {
|
||||||
&:nth-child(even) {
|
&:nth-child(even) {
|
||||||
background-color: darken($table-cell-background, 10%);
|
background-color: color.adjust($table-cell-background, $lightness: -10%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
th, td {
|
th, td {
|
||||||
@@ -771,7 +772,7 @@ table {
|
|||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
color: $ipng-orange;
|
color: $ipng-orange;
|
||||||
background-color: lighten($table-header-background, 3%);
|
background-color: color.adjust($table-header-background, $lightness: 3%);
|
||||||
border-bottom: 3px solid $ipng-orange;
|
border-bottom: 3px solid $ipng-orange;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,14 +9,14 @@
|
|||||||
<language>{{.}}</language>
|
<language>{{.}}</language>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{ with .Site.Author.email }}
|
{{ with .Site.Params.social.email }}
|
||||||
<managingEditor>{{.}}
|
<managingEditor>{{.}}
|
||||||
{{ with $.Site.Author.name }} ({{.}}){{end}}
|
{{ with $.Site.Params.author }} ({{.}}){{end}}
|
||||||
</managingEditor>
|
</managingEditor>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{ with .Site.Author.email }}
|
{{ with .Site.Params.social.email }}
|
||||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}
|
<webMaster>{{.}}{{ with $.Site.Params.author }} ({{.}}){{end}}
|
||||||
</webMaster>
|
</webMaster>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
{{ with .Site.Params.social.email }}<author>{{.}}{{ with $.Site.Params.author }} ({{.}}){{end}}</author>{{end}}
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>{{ .Summary | markdownify }}</description>
|
<description>{{ .Summary | markdownify }}</description>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
<footer class='page-footer'>
|
<footer class='page-footer'>
|
||||||
{{- $socialMap := .Site.Data.notrack.social }}
|
{{- $socialMap := hugo.Data.notrack.social }}
|
||||||
{{- with $.Site.Params.social }}
|
{{- with $.Site.Params.social }}
|
||||||
<div class="social">
|
<div class="social">
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<title>{{ .Site.Title }} {{ with .Title }}- {{ . }} {{ end }}</title>
|
<title>{{ .Site.Title }} {{ with .Title }}- {{ . }} {{ end }}</title>
|
||||||
<link rel="stylesheet" type="text/css" href="{{ "css/fonts.css" | relURL }}">
|
<link rel="stylesheet" type="text/css" href="{{ "css/fonts.css" | relURL }}">
|
||||||
<link rel="stylesheet" type="text/css" href="{{ "css/fontawesome.css" | relURL }}">
|
<link rel="stylesheet" type="text/css" href="{{ "css/fontawesome.css" | relURL }}">
|
||||||
{{ $options := dict "transpiler" "libsass" "targetPath" "css/styles.css" -}}
|
{{ $options := dict "transpiler" "dartsass" "targetPath" "css/styles.css" -}}
|
||||||
{{ $style := resources.Get "styles.scss" | toCSS $options | minify | fingerprint -}}
|
{{ $style := resources.Get "styles.scss" | toCSS $options | minify | fingerprint -}}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ $style.RelPermalink }}">
|
<link rel="stylesheet" type="text/css" href="{{ $style.RelPermalink }}">
|
||||||
{{ with resources.Get "css/userstyles.css" }}
|
{{ with resources.Get "css/userstyles.css" }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{ with $.Page.Site.Params.social }}
|
{{ with $.Page.Site.Params.social }}
|
||||||
{{ $socialMap := $.Page.Site.Data.notrack.social }}
|
{{ $socialMap := hugo.Data.notrack.social }}
|
||||||
{{ $width := default "12em" (.Params.Get "width") }}
|
{{ $width := default "12em" (.Params.Get "width") }}
|
||||||
{{ $height := default "auto" (.Params.Get "height") }}
|
{{ $height := default "auto" (.Params.Get "height") }}
|
||||||
{{ $float := default "right" (.Params.Get "float") }}
|
{{ $float := default "right" (.Params.Get "float") }}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{ $socialMap := .Site.Data.notrack.social }}
|
{{ $socialMap := hugo.Data.notrack.social }}
|
||||||
|
|
||||||
{{ with $.Site.Params.social }}
|
{{ with $.Site.Params.social }}
|
||||||
<div class="social">
|
<div class="social">
|
||||||
|
|||||||
Reference in New Issue
Block a user