From a44436d2374775df7803cbde8401206fbd8cb4df Mon Sep 17 00:00:00 2001 From: kranurag78 <84301342+kranurag78@users.noreply.github.com> Date: Wed, 15 Mar 2023 18:21:12 +0530 Subject: [PATCH 1/2] page listing as per the year --- layouts/_default/list.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4a4b6f4..317fe91 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,9 +6,14 @@

{{ .Title }}

{{ end }}
- {{ range .Data.Pages }} - {{ partial "item.html" . }} + {{ range .Data.Pages.GroupByDate "2006" }} +

+ {{ .Key }} +

+ {{ range .Pages }} + {{ partial "item.html" . }} + {{ end }} {{ end }}
-{{ end }} \ No newline at end of file +{{ end }} From a0a89797edb1a72851aad06a56fbd997c158ff80 Mon Sep 17 00:00:00 2001 From: Mivinci <1366723936@qq.com> Date: Thu, 16 Mar 2023 00:22:34 +0800 Subject: [PATCH 2/2] fix issue #52 --- exampleSite/content/math-typesetting.md | 3 ++- layouts/partials/head.html | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exampleSite/content/math-typesetting.md b/exampleSite/content/math-typesetting.md index c3d09bd..67440b7 100644 --- a/exampleSite/content/math-typesetting.md +++ b/exampleSite/content/math-typesetting.md @@ -1,11 +1,12 @@ --- author: Mivinci title: Math Typesetting -date: 2021-07-18T10:52:59+08:00 +date: 2020-07-18T10:52:59+08:00 description: A brief guide to write mathematical notation. math: true tags: - KaTex + - markdown --- Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries like [KaTeX](https://katex.org) the one that Minima uses. Here's what you can do in the configuration file to enable it. diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0ae50e6..7b3aad6 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -15,12 +15,11 @@ {{ $favicon := "favicon.ico" }} - {{ $hash := now.Unix }} - {{ $options := (dict "targetPath" (printf `minima.%d.css` $hash) "outputStyle" "compressed" "enableSourceMap" true) }} + {{ $options := (dict "targetPath" "minima.css" "outputStyle" "compressed" "enableSourceMap" true) }} {{ $style := resources.Get "css/main.scss" | resources.ToCSS $options }} - {{ $options = (dict "targetPath" (printf `minima.%d.js` $hash) "minify" true) }} - {{ $js := resources.Get "js/main.js" | js.Build $options | resources.ExecuteAsTemplate (printf `minima.%d.js` $hash) . }} + {{ $options = (dict "targetPath" "minima.js" "minify" true) }} + {{ $js := resources.Get "js/main.js" | js.Build $options | resources.ExecuteAsTemplate "minima.js" . }} {{ if .IsTranslated }} {{ range .Translations }}