mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-23 22:09:44 +01:00
update example site
This commit is contained in:
parent
95a0068d52
commit
3043b67b53
4 changed files with 27 additions and 34 deletions
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
title: Home
|
||||||
|
---
|
|
@ -1,16 +1,8 @@
|
||||||
+++
|
---
|
||||||
title = "About This Site"
|
title: "About This Site"
|
||||||
hasMath = false
|
hasMath: false
|
||||||
+++
|
---
|
||||||
|
|
||||||
Hello, I'm an example site that uses the Hugo Tufte theme.
|
Hello, I post random things here.
|
||||||
|
|
||||||
|
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).
|
||||||
Here is a bullet list:
|
|
||||||
|
|
||||||
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
||||||
- Arcu felis bibendum ut tristique et. Volutpat odio facilisis mauris sit amet massa.
|
|
||||||
- Sed id semper risus in hendrerit gravida rutrum.
|
|
||||||
- Risus pretium quam vulputate dignissim suspendisse in est ante. Bibendum neque egestas congue quisque egestas diam in arcu.
|
|
||||||
- Nulla porttitor massa id neque aliquam. Laoreet non curabitur gravida arcu ac tortor dignissim convallis.
|
|
||||||
- Sit amet consectetur adipiscing elit.
|
|
||||||
|
|
|
@ -11,9 +11,9 @@ toc: true
|
||||||
categories: [katex, latex, tufte-css]
|
categories: [katex, latex, tufte-css]
|
||||||
---
|
---
|
||||||
|
|
||||||
## loikein's features
|
## New features
|
||||||
|
|
||||||
### Emojis!
|
### Emoji
|
||||||
|
|
||||||
Powered by [Noto Emoji font](https://emojipedia.org/noto-emoji/).
|
Powered by [Noto Emoji font](https://emojipedia.org/noto-emoji/).
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<section>
|
<section>
|
||||||
|
|
||||||
<h1 class="content-title">
|
<h1 class="content-title">
|
||||||
{{- if .IsNode -}}
|
{{- if .IsNode -}}
|
||||||
{{- .Title -}}
|
{{- .Title -}}
|
||||||
|
@ -10,28 +9,27 @@
|
||||||
|
|
||||||
{{- if .IsPage -}}
|
{{- if .IsPage -}}
|
||||||
{{- if .Params.subtitle -}}
|
{{- if .Params.subtitle -}}
|
||||||
<p class=subtitle>{{ .Params.subtitle }}</p>
|
<p class=subtitle>{{ .Params.subtitle }}</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if or (eq .Type "post") (.Params.meta) -}}
|
{{- if or (eq .Type "post") (.Params.meta) -}}
|
||||||
<span class="content-meta">
|
<span class="content-meta">
|
||||||
{{- if .Params.author -}}
|
{{- if .Params.author -}}
|
||||||
<p class="author">{{ .Params.author }}</p>
|
<p class="author">{{ .Params.author }}</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if not .Params.hidedate -}}
|
{{- if not .Params.hidedate -}}
|
||||||
<p class="date">{{ .Date.Format "2006-01-02" }}</p>
|
<p class="date">{{ .Date.Format "2006-01-02" }}</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if not .Params.hidereadtime -}}
|
{{- if not .Params.hidereadtime -}}
|
||||||
<span>{{ .ReadingTime }} min read </span>
|
<span>{{ .ReadingTime }} min read </span>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- range .Params.categories -}}
|
{{- range .Params.categories -}}
|
||||||
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</span>
|
</span>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
</section>
|
||||||
</section>
|
|
||||||
|
|
Loading…
Reference in a new issue