mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-23 13:59:44 +01:00
update example site
This commit is contained in:
parent
2ce906cb31
commit
37e9cb786c
9 changed files with 55 additions and 49 deletions
|
@ -69,7 +69,7 @@ Downside: LaTeX in post title is no longer supported.
|
||||||
|
|
||||||
### Site Parameters
|
### Site Parameters
|
||||||
|
|
||||||
The site specific parameters that this theme recognizes are:
|
`params` for this theme are:
|
||||||
|
|
||||||
- `subtitle` string: If set, displayed under the main title.
|
- `subtitle` string: If set, displayed under the main title.
|
||||||
- `showPoweredBy` boolean: If `true`, display a shoutout to Hugo and this theme.
|
- `showPoweredBy` boolean: If `true`, display a shoutout to Hugo and this theme.
|
||||||
|
@ -111,7 +111,7 @@ Please see [`exampleSite/config.yaml`](https://github.com/loikein/hugo-tufte/blo
|
||||||
- Layout parameters: (NEW)
|
- Layout parameters: (NEW)
|
||||||
+ For more information, see [Hugo's Lookup Order | Hugo](https://gohugo.io/templates/lookup-order/).
|
+ For more information, see [Hugo's Lookup Order | Hugo](https://gohugo.io/templates/lookup-order/).
|
||||||
+ `type` string: If set to `book`, layout files in [./layouts/book/](https://github.com/loikein/hugo-tufte/tree/main/layouts/book) will be prioritised.
|
+ `type` string: If set to `book`, layout files in [./layouts/book/](https://github.com/loikein/hugo-tufte/tree/main/layouts/book) will be prioritised.
|
||||||
+ `layout` string: If set, layout files with this same will be prioritised.
|
+ `layout` string: If set, layout files with the name of this field's value will be prioritised.
|
||||||
|
|
||||||
### Shortcodes
|
### Shortcodes
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,6 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
width: 87.5%;
|
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
padding-left: 12.5%;
|
padding-left: 12.5%;
|
||||||
|
|
|
@ -12,6 +12,8 @@ baseurl: "https://example.com/"
|
||||||
# The title of your website (shown on all the pages)
|
# The title of your website (shown on all the pages)
|
||||||
title: "Hugo-tufte Theme Example Site"
|
title: "Hugo-tufte Theme Example Site"
|
||||||
canonifyurls: true
|
canonifyurls: true
|
||||||
|
# Number of posts per page on the home page
|
||||||
|
paginate: 4
|
||||||
|
|
||||||
# Only modify the following if you know what you are doing
|
# Only modify the following if you know what you are doing
|
||||||
markup:
|
markup:
|
||||||
|
@ -20,7 +22,6 @@ markup:
|
||||||
unsafe: true
|
unsafe: true
|
||||||
highlight:
|
highlight:
|
||||||
noClasses: false
|
noClasses: false
|
||||||
pygmentsUseClasses: true
|
|
||||||
guessSyntax: true
|
guessSyntax: true
|
||||||
|
|
||||||
params:
|
params:
|
||||||
|
@ -31,7 +32,7 @@ params:
|
||||||
# Dark code highlighting
|
# Dark code highlighting
|
||||||
codeblocksdark: false
|
codeblocksdark: false
|
||||||
# Customize the indicator for margin notes
|
# Customize the indicator for margin notes
|
||||||
# Some suggestions: 💬, 💭, 📑, 🏷, ✍, 💡, 🧐, 📎, 📌
|
# Some suggestions: ⊕, 💬, 💭, 📑, 🏷, ✍, 💡, 🧐, 📎, 📌
|
||||||
marginNoteInd: "⊕"
|
marginNoteInd: "⊕"
|
||||||
# Your name or the name of you company
|
# Your name or the name of you company
|
||||||
# copyright: Copyright 2023
|
# copyright: Copyright 2023
|
||||||
|
@ -40,7 +41,7 @@ params:
|
||||||
showPoweredBy: false
|
showPoweredBy: false
|
||||||
# Site wide kill switch
|
# Site wide kill switch
|
||||||
hidedate: false
|
hidedate: false
|
||||||
# Site wide kill switch for Latex support
|
# Site wide kill switch for LaTeX support
|
||||||
math: true
|
math: true
|
||||||
KaTeXVersion: 0.16.4
|
KaTeXVersion: 0.16.4
|
||||||
KaTeXCDN: "//cdn.jsdelivr.net/npm"
|
KaTeXCDN: "//cdn.jsdelivr.net/npm"
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Home
|
title: Home
|
||||||
---
|
---
|
||||||
|
You can write more stuff here, for example:
|
||||||
|
|
||||||
|
Welcome!
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
title: "About This Site"
|
title: "About This Site"
|
||||||
hasMath: false
|
hasMath: false
|
||||||
|
_build:
|
||||||
|
list: never
|
||||||
---
|
---
|
||||||
|
|
||||||
Hello, I post random things here.
|
This is the example site for [hugo-tufte](https://github.com/loikein/hugo-tufte), a theme for the static site generator [Hugo](https://gohugo.io/).
|
||||||
|
|
||||||
This site is generated with [Hugo](https://gohugo.io/). This theme is a heavily modified version of [hugo-tufte](https://github.com/loikein/hugo-tufte), originally written by [Dave Liepmann, Edward Tufte, and various contributors](https://github.com/edwardtufte/tufte-css), then ported to Hugo by [shawnohare](https://github.com/shawnohare/hugo-tufte) and [slashformotion](https://github.com/slashformotion/hugo-tufte).
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
+++
|
---
|
||||||
author = "Hiro Protagonist"
|
author: Hiro Protagonist
|
||||||
date = "2015-01-19T23:57:58-08:00"
|
date: '2015-01-19T23:57:58-08:00'
|
||||||
hasMath = false
|
hasMath: false
|
||||||
title = "Blockquotes"
|
title: Blockquotes
|
||||||
|
---
|
||||||
+++
|
|
||||||
|
|
||||||
Below is a blockquote.
|
Below is a blockquote.
|
||||||
|
|
||||||
|
@ -34,4 +33,6 @@ And finally a blockquote with some markdown.
|
||||||
>
|
>
|
||||||
> Here's some example code:
|
> Here's some example code:
|
||||||
>
|
>
|
||||||
> return shell_exec("echo $input | $markdown_script");
|
> ```sh
|
||||||
|
> return shell_exec("echo $input | $markdown_script");
|
||||||
|
> ```
|
||||||
|
|
|
@ -1,64 +1,65 @@
|
||||||
+++
|
---
|
||||||
math = true
|
author: AUTHOR NAME
|
||||||
meta = false
|
date: '2021-07-20T13:56:01-08:00'
|
||||||
author = "AUTHOR NAME"
|
type: post
|
||||||
date = "2021-07-20T13:56:01-08:00"
|
title: More math
|
||||||
type = "post"
|
subtitle: 'Wow this really works !'
|
||||||
title = "More math $\\xi_{(even-in-the-title-!)}$"
|
toc: true
|
||||||
subtitle = "Wow this really works ! "
|
math: true
|
||||||
toc = true
|
categories:
|
||||||
categories = ["katex", "latex", "tufte-css"]
|
- katex
|
||||||
+++
|
- latex
|
||||||
A compilation of $\LaTeX$ formulas...
|
- tufte-css
|
||||||
|
---
|
||||||
|
A compilation of `$\LaTeX$` formulas...
|
||||||
<!--more-->
|
<!--more-->
|
||||||
|
|
||||||
## Matrix
|
## Matrix
|
||||||
|
|
||||||
<p>
|
`$$
|
||||||
$$
|
|
||||||
\begin{matrix}
|
\begin{matrix}
|
||||||
\alpha& \beta^{*}\\
|
\alpha& \beta^{*}\\
|
||||||
\gamma^{*}& \delta
|
\gamma^{*}& \delta
|
||||||
\end{matrix}
|
\end{matrix}
|
||||||
$$
|
$$`
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
|
`
|
||||||
$$
|
$$
|
||||||
\begin{bmatrix}
|
\begin{bmatrix}
|
||||||
\alpha& \beta^{*}\\
|
\alpha& \beta^{*}\\
|
||||||
\gamma^{*}& \delta
|
\gamma^{*}& \delta
|
||||||
\end{bmatrix}
|
\end{bmatrix}
|
||||||
$$
|
$$
|
||||||
</p>
|
`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>
|
`
|
||||||
$$
|
$$
|
||||||
\begin{Vmatrix}
|
\begin{Vmatrix}
|
||||||
\alpha& \beta^{*}\\
|
\alpha& \beta^{*}\\
|
||||||
\gamma^{*}& \delta
|
\gamma^{*}& \delta
|
||||||
\end{Vmatrix}
|
\end{Vmatrix}
|
||||||
$$
|
$$
|
||||||
</p>
|
`
|
||||||
|
|
||||||
## Limits
|
## Limits
|
||||||
|
|
||||||
$$
|
`$$
|
||||||
\lim_{n \to \infty}
|
\lim_{n \to \infty}
|
||||||
\sum_{k=1}^n \frac{1}{k^2}
|
\sum_{k=1}^n \frac{1}{k^2}
|
||||||
= \frac{\pi^2}{6}
|
= \frac{\pi^2}{6}
|
||||||
$$
|
$$`
|
||||||
|
|
||||||
|
|
||||||
$$
|
`$$
|
||||||
\lim_{n \to \infty}
|
\lim_{n \to \infty}
|
||||||
\frac{1}{x^n}
|
\frac{1}{x^n}
|
||||||
= 0
|
= 0
|
||||||
$$
|
$$`
|
||||||
|
|
||||||
## Various symbols
|
## Various symbols
|
||||||
|
|
||||||
$$\lambda,\xi,\pi,\theta,
|
`$$\lambda,\xi,\pi,\theta,
|
||||||
\mu,\Phi,\Omega,\Delta$$
|
\mu,\Phi,\Omega,\Delta$$`
|
||||||
|
|
|
@ -8,17 +8,17 @@ categories:
|
||||||
- "test"
|
- "test"
|
||||||
---
|
---
|
||||||
|
|
||||||
## First Heading
|
## First heading
|
||||||
|
|
||||||
| Tables | Are | Cool |
|
| Tables | Are | Cool |
|
||||||
|:----------|:-------------:|------:|
|
|:---------|:-------------:|------:|
|
||||||
| col 1 is | left-aligned | $1600 |
|
| col 1 is | left-aligned | $1600 |
|
||||||
| col 2 is | centered | $12 |
|
| col 2 is | centered | $12 |
|
||||||
| col 3 is | right-aligned | $1 |
|
| col 3 is | right-aligned | $1 |
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus, consequatur aspernatur omnis iste. Voluptates, id inventore ea natus ab sed amet ipsa ratione sunt dignissimos. Soluta illum aliquid repellendus recusandae.
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus, consequatur aspernatur omnis iste. Voluptates, id inventore ea natus ab sed amet ipsa ratione sunt dignissimos. Soluta illum aliquid repellendus recusandae.
|
||||||
|
|
||||||
### Sub
|
### Sub heading
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio, perferendis saepe voluptatem a nesciunt architecto voluptas deleniti dolor tempora quasi quidem odit rem fugit magnam minima quam dolores vel id?
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio, perferendis saepe voluptatem a nesciunt architecto voluptas deleniti dolor tempora quasi quidem odit rem fugit magnam minima quam dolores vel id?
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
author: Totally famous person
|
author: Totally famous person
|
||||||
date: '2016-02-20T13:56:01-08:00'
|
date: '2023-04-16T16:03:45+0100'
|
||||||
title: The big old test page
|
title: The big old test page
|
||||||
subtitle: Fancy Subtitle
|
subtitle: Fancy Subtitle
|
||||||
meta: true
|
meta: true
|
||||||
|
@ -9,6 +9,7 @@ toc: true
|
||||||
# hideDate: true
|
# hideDate: true
|
||||||
# hideReadTime: true
|
# hideReadTime: true
|
||||||
categories: [katex, latex, tufte-css]
|
categories: [katex, latex, tufte-css]
|
||||||
|
description: "If the description field is not empty, its contents will show in the home page instead of the first 140 characters of the post."
|
||||||
---
|
---
|
||||||
|
|
||||||
## New features
|
## New features
|
||||||
|
|
Loading…
Reference in a new issue