hugo-soresu

My fork of hugo-xmin

git clone git://git.shimmy1996.com/hugo-soresu.git
commit 581aa77b53ef5268419ff585566bf8536ea4f738
parent b78f27e13f4f422a42fdf5383afa6593de014c8b
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Fri, 23 Aug 2019 16:02:29 -0400

Update Deprecated Variable Names

Diffstat:
Mlayouts/_default/home.html | 2+-
Mlayouts/_default/li.html | 2+-
Mlayouts/partials/katex.html | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/layouts/_default/home.html b/layouts/_default/home.html
@@ -8,7 +8,7 @@
 {{ .Content }}
 
 <ul>
-  {{ range (first 5 (where .Data.Pages "Section" "!=" "") ) }}
+  {{ range (first 5 (where .Site.RegularPages "Section" "!=" "") ) }}
   {{ .Render "li" }}
   {{ end }}
 </ul>
diff --git a/layouts/_default/li.html b/layouts/_default/li.html
@@ -1 +1 @@
-<li>{{ partial "iso_date.html" .Date }}&nbsp;<a href="{{ .URL }}">{{ .Title }}</a></li>
+<li>{{ partial "iso_date.html" .Date }}&nbsp;<a href="{{ .Permalink }}">{{ .Title }}</a></li>
diff --git a/layouts/partials/katex.html b/layouts/partials/katex.html
@@ -1,4 +1,4 @@
-{{ if (or (not .Site.Params.soresuLatexOffByDefault) (.GetParam "latex")) }}
+{{ if (or (not .Site.Params.soresuLatexOffByDefault) (.Param "latex")) }}
   <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0-alpha/dist/katex.min.css" integrity="sha384-BTL0nVi8DnMrNdMQZG1Ww6yasK9ZGnUxL1ZWukXQ7fygA1py52yPp9W4wrR00VML" crossorigin="anonymous" />
   <script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0-alpha/dist/katex.min.js" integrity="sha384-y6SGsNt7yZECc4Pf86XmQhC4hG2wxL6Upkt9N1efhFxfh6wlxBH0mJiTE8XYclC1" crossorigin="anonymous"></script>
   <script defer onload="renderMathInElement(document.body);" src="https://cdn.jsdelivr.net/npm/katex@0.10.0-alpha/dist/contrib/auto-render.min.js" integrity="sha384-IiI65aU9ZYub2MY9zhtKd1H2ps7xxf+eb2YFG9lX6uRqpXCvBTOidPRCXCrQ++Uc" crossorigin="anonymous"></script>