From 98c88d0574cba5072c5fa11accf66776ea5d0cf9 Mon Sep 17 00:00:00 2001
From: Andreas Deininger <andreas@deininger.net>
Date: Wed, 16 Oct 2024 15:52:22 +0000
Subject: [PATCH] fix: deprecation warnings (#521)
---
exampleSite/config/_default/hugo.toml | 0
theme.toml | 2 +-
layouts/portfolio/list.html | 2 +-
layouts/partials/navbar.html | 2 +-
layouts/partials/head.html | 4 ++--
README.md | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 7ba4e86..4616c38 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@
- 100⁄100 Google Lighthouse score
- Analytics powered by Google Analytics, Simple Analytics and Umami (optional)
- Comments powered by Disqus, Commento, Gitalk, Utteranc.es or Giscus (optional)
-- KaTex support (optional)
+- KaTeX support (optional)
- Formspree Contact Form (optional)
- Twitter Cards support
- Open Graph support
diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/hugo.toml
similarity index 100%
rename from exampleSite/config/_default/config.toml
rename to exampleSite/config/_default/hugo.toml
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index e806dca..ca76f8b 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -39,7 +39,7 @@
<!-- CSS -->
{{ if eq .Site.Language.LanguageDirection "rtl" }}
{{ $sassTemplate := resources.Get "scss/anatole.rtl.scss" }}
- {{ $style := $sassTemplate | resources.ExecuteAsTemplate "scss/main.rtl.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint }}
+ {{ $style := $sassTemplate | resources.ExecuteAsTemplate "scss/main.rtl.scss" . | css.Sass | resources.Minify | resources.Fingerprint }}
<link
rel="stylesheet"
href="{{ $style.RelPermalink }}"
@@ -49,7 +49,7 @@
/>
{{ else }}
{{ $sassTemplate := resources.Get "scss/anatole.scss" }}
- {{ $style := $sassTemplate | resources.ExecuteAsTemplate "scss/main.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint }}
+ {{ $style := $sassTemplate | resources.ExecuteAsTemplate "scss/main.scss" . | css.Sass | resources.Minify | resources.Fingerprint }}
<link
rel="stylesheet"
href="{{ $style.RelPermalink }}"
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html
index 56306f1..d51d777 100644
--- a/layouts/partials/navbar.html
+++ b/layouts/partials/navbar.html
@@ -72,7 +72,7 @@
{{ end }}
</ul>
<ul class="nav__list nav__list--end">
- {{ if and .IsTranslated .Site.IsMultiLingual }}
+ {{ if and .IsTranslated hugo.IsMultilingual }}
<li class="nav__list-item">
<div class="optionswitch">
<input class="optionswitch__picker" type="checkbox" id="languagepicker" hidden />
diff --git a/layouts/portfolio/list.html b/layouts/portfolio/list.html
index 3642f59..0f08721 100644
--- a/layouts/portfolio/list.html
+++ b/layouts/portfolio/list.html
@@ -90,7 +90,7 @@
</a>
</div>
{{ end }}
- <div class="seperator">
+ <div class="separator">
{{ range .tags }}
<p class="tag">{{ . }}</p>
{{ end }}
diff --git a/theme.toml b/theme.toml
index 0266631..01342ac 100644
--- a/theme.toml
+++ b/theme.toml
@@ -9,7 +9,7 @@
demosite = "https://anatole-demo.netlify.app/"
tags = ["blog", "responsive", "clean", "minimalist", "minimal", "personal", "dark"]
features = ["blog", "seo", "responsive", "mobile", "disqus", "fontawesome", "analytics", "math"]
-min_version = "0.53.0"
+min_version = "0.128.0"
[author]
name = "Alexander Bilz"
--
Gitblit v1.10.0