From 3043b67b533630b55a2c7f1660d3f5bfb76e6377 Mon Sep 17 00:00:00 2001 From: loikein Date: Sun, 23 Apr 2023 20:19:13 +0100 Subject: [PATCH] update example site --- exampleSite/content/_index.md | 3 ++ exampleSite/content/about.md | 20 ++++--------- exampleSite/content/post/tufte-features.md | 4 +-- layouts/partials/content.header.html | 34 ++++++++++------------ 4 files changed, 27 insertions(+), 34 deletions(-) diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index e69de29..e144d39 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -0,0 +1,3 @@ +--- +title: Home +--- diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md index 93d03b5..a668e46 100644 --- a/exampleSite/content/about.md +++ b/exampleSite/content/about.md @@ -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. \ No newline at end of file +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). diff --git a/exampleSite/content/post/tufte-features.md b/exampleSite/content/post/tufte-features.md index 100b2be..5fccf7e 100644 --- a/exampleSite/content/post/tufte-features.md +++ b/exampleSite/content/post/tufte-features.md @@ -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/). diff --git a/layouts/partials/content.header.html b/layouts/partials/content.header.html index 37b1247..70041d3 100644 --- a/layouts/partials/content.header.html +++ b/layouts/partials/content.header.html @@ -1,5 +1,4 @@
-

{{- if .IsNode -}} {{- .Title -}} @@ -10,28 +9,27 @@ {{- if .IsPage -}} {{- if .Params.subtitle -}} -

{{ .Params.subtitle }}

+

{{ .Params.subtitle }}

{{- end -}} {{- if or (eq .Type "post") (.Params.meta) -}} - {{- end -}} {{- end -}} - -

+