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] 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 }}