update example site

This commit is contained in:
loikein 2023-04-23 20:19:13 +01:00
parent 95a0068d52
commit 3043b67b53
4 changed files with 27 additions and 34 deletions

View file

@ -0,0 +1,3 @@
---
title: Home
---

View file

@ -1,16 +1,8 @@
+++
title = "About This Site"
hasMath = false
+++
---
title: "About This Site"
hasMath: false
---
Hello, I'm an example site that uses the Hugo Tufte theme.
Hello, I post random things here.
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.
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).

View file

@ -11,9 +11,9 @@ toc: true
categories: [katex, latex, tufte-css]
---
## loikein's features
## New features
### Emojis!
### Emoji
Powered by [Noto Emoji font](https://emojipedia.org/noto-emoji/).

View file

@ -1,5 +1,4 @@
<section>
<h1 class="content-title">
{{- if .IsNode -}}
{{- .Title -}}
@ -10,28 +9,27 @@
{{- if .IsPage -}}
{{- if .Params.subtitle -}}
<p class=subtitle>{{ .Params.subtitle }}</p>
<p class=subtitle>{{ .Params.subtitle }}</p>
{{- end -}}
{{- if or (eq .Type "post") (.Params.meta) -}}
<span class="content-meta">
{{- if .Params.author -}}
<p class="author">{{ .Params.author }}</p>
{{- end -}}
<span class="content-meta">
{{- if .Params.author -}}
<p class="author">{{ .Params.author }}</p>
{{- end -}}
{{- if not .Params.hidedate -}}
<p class="date">{{ .Date.Format "2006-01-02" }}</p>
{{- end -}}
{{- if not .Params.hidedate -}}
<p class="date">{{ .Date.Format "2006-01-02" }}</p>
{{- end -}}
{{- if not .Params.hidereadtime -}}
<span>{{ .ReadingTime }} min read&nbsp;</span>
{{- end -}}
{{- if not .Params.hidereadtime -}}
<span>{{ .ReadingTime }} min read&nbsp;</span>
{{- end -}}
{{- range .Params.categories -}}
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>&nbsp;
{{- end -}}
</span>
{{- range .Params.categories -}}
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>&nbsp;
{{- end -}}
</span>
{{- end -}}
{{- end -}}
</section>
</section>