#106, Upgrade to hugo 0.60
This commit is contained in:
parent
995c1e695c
commit
5af2b92f00
9 changed files with 21 additions and 18 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
|||
|
||||
- name: Install Hugo
|
||||
run: |
|
||||
wget https://github.com/gohugoio/hugo/releases/download/v0.59.1/hugo_extended_0.59.1_Linux-64bit.deb -O /tmp/hugo.deb
|
||||
wget https://github.com/gohugoio/hugo/releases/download/v0.60.1/hugo_extended_0.60.1_Linux-64bit.deb -O /tmp/hugo.deb
|
||||
sudo dpkg -i /tmp/hugo.deb
|
||||
|
||||
- name: Run Hugo
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Hugo Book Theme
|
||||
|
||||
[![Hugo](https://img.shields.io/badge/hugo-0.56-blue.svg)](https://gohugo.io)
|
||||
[![Hugo](https://img.shields.io/badge/hugo-0.60-blue.svg)](https://gohugo.io)
|
||||
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
|
||||
|
||||
### [Hugo](https://gohugo.io) documentation theme as simple as plain book
|
||||
|
|
|
@ -9,9 +9,9 @@ disableKinds = ['taxonomy', 'taxonomyTerm']
|
|||
disablePathToLower = true
|
||||
enableGitInfo = true
|
||||
|
||||
# Code highlight
|
||||
# pygmentsStyle = 'monokailight'
|
||||
pygmentsCodeFences = true
|
||||
# Needed for mermaid/katex shortcodes
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true
|
||||
|
||||
# Multi-lingual mode config
|
||||
# There are different options to translate files
|
||||
|
|
|
@ -3,15 +3,17 @@
|
|||
baseURL: https://example.com/
|
||||
title: Hugo Book
|
||||
theme: hugo-book
|
||||
disableKinds: ['taxonomy', 'taxonomyTerm']
|
||||
disableKinds: ["taxonomy", "taxonomyTerm"]
|
||||
|
||||
# Book configuration
|
||||
disablePathToLower: true
|
||||
enableGitInfo: true
|
||||
|
||||
# Code highlight
|
||||
# pygmentsStyle: monokailight
|
||||
pygmentsCodeFences: true
|
||||
# Needed for mermaid/katex shortcodes
|
||||
markup:
|
||||
goldmark:
|
||||
renderer:
|
||||
unsafe: true
|
||||
|
||||
# Multi-lingual mode config
|
||||
# There are different options to translate files
|
||||
|
@ -61,7 +63,7 @@ params:
|
|||
# Configure the date format used on the pages
|
||||
# - In git information
|
||||
# - In blog posts
|
||||
BookDateFormat: 'Jan 2, 2006'
|
||||
BookDateFormat: "Jan 2, 2006"
|
||||
|
||||
# (Optional, default true) Enables search function with flexsearch,
|
||||
# Index is built on fly, therefore it might slowdown your website.
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"Target":"book.min.0379377fb17315c9a560efd4d406aea4535c095a461b220fd9e3d2e9c05550e6.css","MediaType":"text/css","Data":{"Integrity":"sha256-A3k3f7FzFcmlYO/U1AaupFNcCVpGGyIP2ePS6cBVUOY="}}
|
||||
{"Target":"book.min.eddc90f1d1267cb826e7cffc53c434e50061c4bfe41146a43670842ce6cb3bf6.css","MediaType":"text/css","Data":{"Integrity":"sha256-7dyQ8dEmfLgm58/8U8Q05QBhxL/kEUakNnCELObLO/Y="}}
|
|
@ -1,12 +1,13 @@
|
|||
{{ if not (.Page.Scratch.Get "katex") }}
|
||||
<!-- Include katext only first time -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/katex.min.css" integrity="sha384-BdGj8xC2eZkQaxoQ8nSLefg4AV4/AwB3Fj+8SUSo7pnKP6Eoy18liIKTPn9oBYNG" crossorigin="anonymous">
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/katex.min.js" integrity="sha384-JiKN5O8x9Hhs/UE5cT5AAJqieYlOZbGT3CHws/y97o3ty4R7/O5poG9F3JoiOYw1" crossorigin="anonymous"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"
|
||||
onload="renderMathInElement(document.body);"></script>
|
||||
{{ .Page.Scratch.Set "katex" true }}
|
||||
{{ end }}
|
||||
|
||||
<p class="katex{{ with .Get "class" }} {{ . }}{{ end }}">
|
||||
$$ {{ .Inner }} $$
|
||||
$$ {{- .Inner -}} $$
|
||||
</p>
|
||||
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
{{ end }}
|
||||
|
||||
<p class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
|
||||
{{ .Inner }}
|
||||
{{- .Inner -}}
|
||||
</p>
|
||||
|
|
|
@ -8,7 +8,7 @@ description = "Hugo documentation theme as simple as plain book"
|
|||
homepage = "https://github.com/alex-shpak/hugo-book"
|
||||
tags = ["responsive", "clean", "documentation", "docs", "flexbox", "search", "mobile", "multilingual"]
|
||||
features = []
|
||||
min_version = "0.56"
|
||||
min_version = "0.60"
|
||||
|
||||
[author]
|
||||
name = "Alex Shpak"
|
||||
|
|
Loading…
Reference in a new issue