Skip to content

Commit

Permalink
Convert front matter to TOML
Browse files Browse the repository at this point in the history
  • Loading branch information
willfaught committed Jun 27, 2024
1 parent e4b1315 commit 7ca3bad
Show file tree
Hide file tree
Showing 37 changed files with 366 additions and 376 deletions.
27 changes: 14 additions & 13 deletions exampleSite/content/_index.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
---
paige:
search:
hide_page: true
style: |
#paige-collections,
#paige-metadata,
#paige-sections,
#paige-pages {
display: none;
}
title: "Paige"
---
+++
title = "Paige"
[paige]
style = """
#paige-collections,
#paige-metadata,
#paige-sections,
#paige-pages {
display: none;
}
"""
[paige.search]
hide_page = true
+++

<p>{{% paige/image alt="Landscape" breakpoints=true class="object-fit-cover rounded-4 shadow-lg" fetchpriority="high" height="20rem" loading="eager" process="webp" src="https://images.unsplash.com/photo-1490604001847-b712b0c2f967?w=1296" width="100%" %}}</p>

Expand Down
8 changes: 4 additions & 4 deletions exampleSite/content/authors/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
description: "Browse by author."
title: "Authors"
---
+++
description = "Browse by author."
title = "Authors"
+++
8 changes: 4 additions & 4 deletions exampleSite/content/authors/author-demo/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
description: "Demonstration of an author."
title: "Author Demo"
---
+++
description = "Demonstration of an author."
title = "Author Demo"
+++
10 changes: 5 additions & 5 deletions exampleSite/content/categories/_index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
description: "Browse by category."
layout: "paige/cloud"
title: "Categories"
---
+++
description = "Browse by category."
layout = "paige/cloud"
title = "Categories"
+++
8 changes: 4 additions & 4 deletions exampleSite/content/categories/paige/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
description: "Demonstration of a category."
title: "Paige"
---
+++
description = "Demonstration of a category."
title = "Paige"
+++
8 changes: 4 additions & 4 deletions exampleSite/content/content/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
description: "Demonstrations of Paige content."
title: "Content"
---
+++
description = "Demonstrations of Paige content."
title = "Content"
+++
25 changes: 12 additions & 13 deletions exampleSite/content/content/alert.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
---
authors: ["author-demo"]
categories: ["content", "paige"]
date: "2023-09-18T21:21:05-07:00"
description: "An alert."
paige:
alert:
message: "Get more information <a href=\"#\" class=\"alert-link\">here</a>."
type: "primary"
tags: ["alerts"]
title: "Alert"
weight: 60
---
+++
authors = ["author-demo"]
categories = ["content", "paige"]
date = "2023-09-18T21:21:05-07:00"
description = "An alert."
tags = ["alerts"]
title = "Alert"
weight = 60
[paige.alert]
message = "Get more information <a href=\"#\" class=\"alert-link\">here</a>."
type = "primary"
+++

This page has the following parameters:

Expand Down
18 changes: 9 additions & 9 deletions exampleSite/content/content/emoji-support.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
authors: ["author-demo"]
categories: ["content", "paige"]
date: "2023-09-18T21:32:40-07:00"
description: "Guide to emoji usage in Hugo."
tags: ["emoji"]
title: "Emoji Support"
weight: 50
---
+++
authors = ["author-demo"]
categories = ["content", "paige"]
date = "2023-09-18T21:32:40-07:00"
description = "Guide to emoji usage in Hugo."
tags = ["emoji"]
title = "Emoji Support"
weight = 50
+++

<!--
The MIT License (MIT)
Expand Down
20 changes: 10 additions & 10 deletions exampleSite/content/content/link.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
authors: ["author-demo"]
categories: ["content", "paige"]
date: "2023-09-24T21:29:30-07:00"
description: "A front matter link."
link: "https://willfaught.com/paige"
tags: ["link"]
title: "Link"
weight: 70
---
+++
authors = ["author-demo"]
categories = ["content", "paige"]
date = "2023-09-24T21:29:30-07:00"
description = "A front matter link."
link = "https://willfaught.com/paige"
tags = ["link"]
title = "Link"
weight = 70
+++

It takes you to the home page.
18 changes: 9 additions & 9 deletions exampleSite/content/content/markdown-syntax.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
authors: ["author-demo"]
categories: ["content", "paige"]
date: "2023-09-18T21:32:52-07:00"
description: "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
tags: ["markdown", "css", "html"]
title: "Markdown Syntax Guide"
weight: 10
---
+++
authors = ["author-demo"]
categories = ["content", "paige"]
date = "2023-09-18T21:32:52-07:00"
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
tags = ["css", "html", "markdown"]
title = "Markdown Syntax Guide"
weight = 10
+++

<!--
The MIT License (MIT)
Expand Down
22 changes: 11 additions & 11 deletions exampleSite/content/content/math-typesetting.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
authors: ["author-demo"]
categories: ["content", "paige"]
date: "2023-09-18T21:33:03-07:00"
description: "A brief guide to setup KaTeX."
paige:
math: true
tags: ["katex", "math", "typesetting"]
title: "Math Typesetting"
weight: 40
---
+++
authors = ["author-demo"]
categories = ["content", "paige"]
date = "2023-09-18T21:33:03-07:00"
description = "A brief guide to setup KaTeX."
tags = ["katex", "math", "typesetting"]
title = "Math Typesetting"
weight = 40
[paige]
math = true
+++

<!--
The MIT License (MIT)
Expand Down
23 changes: 11 additions & 12 deletions exampleSite/content/content/placeholder-text.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---
authors: ["author-demo"]
categories: ["content", "paige"]
date: "2023-09-18T21:33:16-07:00"
description: "Lorem Ipsum Dolor Si Amet."
paige:
feed:
hide_page: true
tags: ["markdown", "text"]
title: "Placeholder Text"
weight: 30
---
+++
authors = ["author-demo"]
categories = ["content", "paige"]
date = "2023-09-18T21:33:16-07:00"
description = "Lorem Ipsum Dolor Si Amet."
tags = ["markdown", "text"]
title = "Placeholder Text"
weight = 30
[paige.feed]
hide_page = true
+++

<!--
The MIT License (MIT)
Expand Down
23 changes: 11 additions & 12 deletions exampleSite/content/content/rich-content.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---
authors: ["author-demo"]
categories: ["content", "paige"]
date: "2023-09-18T21:33:24-07:00"
description: "A brief description of Hugo Shortcodes."
paige:
feed:
hide_page: true
tags: ["shortcodes", "privacy"]
title: "Rich Content"
weight: 20
---
+++
authors = ["author-demo"]
categories = ["content", "paige"]
date = "2023-09-18T21:33:24-07:00"
description = "A brief description of Hugo Shortcodes."
tags = ["privacy", "shortcodes"]
title = "Rich Content"
weight = 20
[paige.feed]
hide_page = true
+++

<!--
The MIT License (MIT)
Expand Down
53 changes: 27 additions & 26 deletions exampleSite/content/customization/_index.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
---
authors: ["author-demo"]
categories: ["customization", "paige"]
description: "Demonstrations of Paige customization."
paige:
style: |
#paige-authors,
#paige-credit,
#paige-date,
#paige-file,
#paige-keywords,
#paige-reading-time,
#paige-series,
#paige-toc,
.paige-authors,
.paige-date,
.paige-keywords,
.paige-reading-time,
.paige-series,
.paige-summary {
display: block;
}
series: ["series-demo"]
tags: ["sections"]
title: "Customization"
---
+++
authors = ["author-demo"]
categories = ["customization", "paige"]
description = "Demonstrations of Paige customization."
series = ["series-demo"]
tags = ["sections"]
title = "Customization"
[paige]
style = """
#paige-authors,
#paige-credit,
#paige-date,
#paige-file,
#paige-keywords,
#paige-reading-time,
#paige-series,
#paige-toc,
.paige-authors,
.paige-date,
.paige-keywords,
.paige-reading-time,
.paige-series,
.paige-summary {
display: block;
}
"""
+++

This site hides some section page data by default. This page shows it all.

Expand Down
59 changes: 30 additions & 29 deletions exampleSite/content/customization/show.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
---
authors: ["author-demo"]
categories: ["customization", "paige"]
date: "2023-09-18T21:21:05-07:00"
description: "Demonstration of Paige customization that shows data."
paige:
style: |
#paige-authors,
#paige-credit,
#paige-date,
#paige-file,
#paige-keywords,
#paige-prev-next,
#paige-reading-time,
#paige-series,
#paige-toc,
.paige-authors,
.paige-date,
.paige-keywords,
.paige-reading-time,
.paige-series,
.paige-summary {
display: block;
}
series: ["series-demo"]
tags: ["show", "singles"]
title: "Show Data"
weight: 20
---
+++
authors = ["author-demo"]
categories = ["customization", "paige"]
date = "2023-09-18T21:21:05-07:00"
description = "Demonstration of Paige customization that shows data."
series = ["series-demo"]
tags = ["show", "singles"]
title = "Show Data"
weight = 20
[paige]
style = """
#paige-authors,
#paige-credit,
#paige-date,
#paige-file,
#paige-keywords,
#paige-prev-next,
#paige-reading-time,
#paige-series,
#paige-toc,
.paige-authors,
.paige-date,
.paige-keywords,
.paige-reading-time,
.paige-series,
.paige-summary {
display: block;
}
"""
+++

This site hides some single page data by default. This page shows it all.

Expand Down
Loading

0 comments on commit 7ca3bad

Please sign in to comment.