diff options
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/.gitignore | 1 | ||||
-rw-r--r-- | exampleSite/README.md | 4 | ||||
-rw-r--r-- | exampleSite/content/about.md | 5 | ||||
-rw-r--r-- | exampleSite/content/post/math-typesetting.md | 11 | ||||
-rw-r--r-- | exampleSite/hugo.toml (renamed from exampleSite/config.toml) | 10 |
5 files changed, 14 insertions, 17 deletions
diff --git a/exampleSite/.gitignore b/exampleSite/.gitignore index ca4d540..d28a87c 100644 --- a/exampleSite/.gitignore +++ b/exampleSite/.gitignore @@ -22,6 +22,7 @@ _testmain.go *.exe *.test +.hugo_build.lock /public /themes .DS_Store diff --git a/exampleSite/README.md b/exampleSite/README.md index aa38bb6..1f81e13 100644 --- a/exampleSite/README.md +++ b/exampleSite/README.md @@ -4,7 +4,7 @@ This repository offers an example site for [Hugo](https://gohugo.io/) and also i # Using -1. [Install Hugo](https://gohugo.io/overview/installing/) +1. [Install Hugo](https://gohugo.io/installation/) 2. Clone this repository ```bash git clone https://github.com/gohugoio/hugoBasicExample.git @@ -19,4 +19,4 @@ hugo server -t YOURTHEME - A section called `/post/` with sample markdown content - A headless bundle called `homepage` that you may want to use for single page applications. You can find instructions about headless bundles over [here](https://gohugo.io/content-management/page-bundles/#headless-bundle) - An `about.md` that is intended to provide the `/about/` page for a theme demo -6. If you intend to build a theme that does not fit in the content structure provided in this repository, then you are still more than welcome to submit it for review at the [Hugo Themes](https://github.com/gohugoio/hugoThemes/issues) respository +6. If you intend to build a theme that does not fit in the content structure provided in this repository, then you are still more than welcome to submit it for review at the [Hugo Themes](https://github.com/gohugoio/hugoThemes/issues) repository diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md index a412806..f77dfc1 100644 --- a/exampleSite/content/about.md +++ b/exampleSite/content/about.md @@ -20,9 +20,6 @@ Hugo is ideal for blogs, corporate websites, creative portfolios, online magazin Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. -Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. +Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. Learn more and contribute on [GitHub](https://github.com/gohugoio). - - - diff --git a/exampleSite/content/post/math-typesetting.md b/exampleSite/content/post/math-typesetting.md index 5bfc7ee..c3a51cb 100644 --- a/exampleSite/content/post/math-typesetting.md +++ b/exampleSite/content/post/math-typesetting.md @@ -19,16 +19,16 @@ In this example we will be using [KaTeX](https://katex.org/) {{ partial "math.html" . }} {{ end }} ``` -- To enable KaTex globally set the parameter `math` to `true` in a project's configuration -- To enable KaTex on a per page basis include the parameter `math: true` in content files. +- To enable KaTeX globally set the parameter `math` to `true` in a project's configuration +- To enable KaTeX on a per page basis include the parameter `math: true` in content files. **Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) {{< math.inline >}} {{ if or .Page.Params.math .Site.Params.math }} <!-- KaTeX --> -<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/katex.min.css" integrity="sha384-dbVIfZGuN1Yq7/1Ocstc1lUEm+AT+/rCkibIcC/OmWo5f0EA48Vf8CytHzGrSwbQ" crossorigin="anonymous"> -<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/katex.min.js" integrity="sha384-2BKqo+exmr9su6dir+qCw08N2ZKRucY4PrGQPPWU1A7FtlCGjmEGFqXCv5nyM5Ij" crossorigin="anonymous"></script> -<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.1/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.16.8/dist/katex.min.css" integrity="sha512-7nTa5CnxbzfQgjQrNmHXB7bxGTUVO/DcYX6rpgt06MkzM0rVXP3EYCv/Ojxg5H0dKbY7llbbYaqgfZjnGOAWGA==" crossorigin="anonymous"> +<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js" integrity="sha512-aoZChv+8imY/U1O7KIHXvO87EOzCuKO0GhFtpD6G2Cyjo/xPeTgdf3/bchB10iB+AojMTDkMHDPLKNxPJVqDcw==" crossorigin="anonymous"></script> +<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" integrity="sha512-iWiuBS5nt6r60fCz26Nd0Zqe0nbk1ZTIQbl3Kv7kYsX+yKMUFHzjaH2+AnM6vp2Xs+gNmaBAVWJjSmuPw76Efg==" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> {{ end }} {{</ math.inline >}} @@ -41,4 +41,3 @@ Block math: $$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$ - diff --git a/exampleSite/config.toml b/exampleSite/hugo.toml index 1a7a01b..fda4cec 100644 --- a/exampleSite/config.toml +++ b/exampleSite/hugo.toml @@ -26,7 +26,7 @@ Tokiwa-iro is the theme color of this site. env = "production" # for Google Analytics and DISQUS. favicon = "img/favicon-32x32.png" fuse = true # for searchbox. "JSON" must added to output contents. See [outputs]. -math = true # for introducing $KaTEX$ +math = true # for introducing $KaTeX$ useChineseFonts = true postDateFormat = "2006-1-2" @@ -59,13 +59,13 @@ series = "series" tag = "tags" [social] bilibili = "http://example.com/" -github = "http://github.com/" -gitlab = "http://gitlab.com/" +github = "https://github.com/" +gitlab = "https://gitlab.com/" instagram = "http://example.com/" mail = "mailto:anon@example.com" -twitter = "http://twitter.com/" +twitter = "https://twitter.com/" weibo = "http://example.com/" -youtube = "http://youtube.com/" +youtube = "https://youtube.com/" zhihu = "http://example.com/" # any icon in layouts/partials/svg can be used by the name without the "-line.svg" |