A lot more polish, showing summaries
continuous-integration/drone/push Build is failing Details

drafts
Nick Dumas 5 months ago
parent de6cf5fb2a
commit 7ca576976c

@ -51,7 +51,7 @@ smartTOC = true
showViews = false
showLikes = false
showDateOnlyInArticle = false
showDateUpdated = false
showDateUpdated = true
showAuthor = true
# showAuthorBottom = false
showHero = false
@ -68,14 +68,14 @@ smartTOC = true
showPagination = true
invertPagination = false
showReadingTime = true
showTableOfContents = false
showTableOfContents = true
showRelatedContent = true
relatedContentLimit = 3
showTaxonomies = false
showAuthorsBadges = false
showWordCount = true
# sharingLinks = [ "linkedin", "twitter", "reddit", "pinterest", "facebook", "email", "whatsapp", "telegram"]
showZenMode = false
showZenMode = true
[list]
showHero = false
@ -83,7 +83,7 @@ smartTOC = true
layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground
layoutBackgroundHeaderSpace = true # only used when heroStyle equals background
showBreadcrumbs = true
showSummary = false
showSummary = true
showViews = false
showLikes = false
showTableOfContents = false

@ -8,7 +8,7 @@ date: "2023-04-09"
author: "Nick Dumas"
cover: ""
keywords: ["", ""]
description: ""
summary: ""
showFullContent: false
tags:
- hugo
@ -65,7 +65,7 @@ The other half of this setup is modifying the term template at `layouts/_default
<article>
<h1>{{ i18n "tag" }}: {{ .Title }}</h1>
{{ .Content }}
{{with .Params.description}}
{{with .Params.summary}}
<p>{{.}}</p>
{{end}}
{{partial "page-list.html" .Paginator.Pages}}
@ -101,7 +101,7 @@ The final template looks like this.
<article>
<h1>{{ i18n "interactive_graph" }}: {{ .Title }}</h1>
{{ .Content }}
{{with .Params.description}}
{{with .Params.summary}}
<p>{{.}}</p>
{{end}}
{{partial "page-list.html" .Paginator.Pages}}

@ -7,7 +7,7 @@ authorTwitter: "" #do not include @
cover: ""
tags: ["webdev", "devops"]
keywords: ["", ""]
description: "Automation ambitions fall flat"
summary: "Automation ambitions fall flat"
showFullContent: false
---

@ -7,7 +7,7 @@ series_order: 1
date: "2023-08-25"
author: "Nick Dumas"
cover: ""
description: "bzlmod makes bazel extremely appealing and isn't hard to grasp for anyone already familiar with go modules. My frustration with make for complex builds led me to bazel."
summary: "bzlmod makes bazel extremely appealing and isn't hard to grasp for anyone already familiar with go modules. My frustration with make for complex builds led me to bazel."
showFullContent: false
tags:
- bazel

@ -5,7 +5,7 @@ aliases: ["Data Interfaces in Go"]
series: []
author: "Nick Dumas"
cover: ""
description: "Playing with interfaces"
summary: "Playing with interfaces"
showFullContent: false
tags:
- genesis

@ -9,7 +9,7 @@ authorTwitter: ""
cover: ""
tags: ["drone", "gitea", "obsidian", "devops"]
keywords: ["drone", "gitea", "obsidian", "devops"]
description: "How I built a drone instance and pipeline to publish my blog"
summary: "How I built a drone instance and pipeline to publish my blog"
showFullContent: false
---

@ -8,7 +8,7 @@ date: "2023-04-08"
author: "Nick Dumas"
cover: ""
keywords: ["", ""]
description: "More complex Hugo sites sometimes require creating markdown files you don't want displayed in specific listings."
summary: "More complex Hugo sites sometimes require creating markdown files you don't want displayed in specific listings."
showFullContent: false
tags:
- hugo

@ -10,7 +10,7 @@ author: "Nick Dumas"
cover: ""
tags: ["games", "aardwolf"]
keywords: ["games", "aardwolf"]
description: "MUDding, reflection"
summary: "MUDding, reflection"
showFullContent: false
---

@ -4,7 +4,7 @@ aliases: ["First Post"]
series: []
author: "Nick Dumas"
cover: ""
description: ""
summary: ""
showFullContent: false
title: "First Post"
date: "2018-02-10"

@ -10,7 +10,7 @@ authorTwitter : ""
cover : ""
tags : ["drone", "hugo", "devops", "obsidian", "quartz"]
keywords : ["drone", "hugo", "devops", "obsidian", "quartz"]
description : "When you want a container built right, you have to do it yourself."
summary : "When you want a container built right, you have to do it yourself."
showFullContent : false
---

@ -6,7 +6,7 @@ series: ["genesis-development"]
series_order: 2
author: "Nick Dumas"
cover: ""
description: "Using Cobra to accept a huge amount of inputs"
summary: "Using Cobra to accept a huge amount of inputs"
tags:
- genesis
- golang

@ -6,7 +6,7 @@ series: ["genesis-development"]
series_order: 1
author: "Nick Dumas"
cover: ""
description: "Planning out a creative asset creation toolkit"
summary: "Planning out a creative asset creation toolkit"
showFullContent: false
tags:
- genesis

@ -7,7 +7,7 @@ author: "Nick Dumas"
cover: ""
tags: ["obsidian", "git", "gitea"]
keywords: ["obsidian", "git", "gitea"]
description: "A brief overview of how I stood up a gitea instance for the purpose of backing up and syncing my Obsidian vault."
summary: "A brief overview of how I stood up a gitea instance for the purpose of backing up and syncing my Obsidian vault."
showFullContent: false
---

@ -6,7 +6,7 @@ series: ["genesis-development"]
series_order: 3
author: "Nick Dumas"
cover: ""
description: "Implementing float interpolation for fun and profit"
summary: "Implementing float interpolation for fun and profit"
showFullContent: false
tags:
- genesis

@ -7,7 +7,7 @@ date: "2023-05-08"
author: "Nick Dumas"
cover: ""
keywords: ["", ""]
description: "Using lipgloss to abstract away the specifics of nice terminal output."
summary: "Using lipgloss to abstract away the specifics of nice terminal output."
showFullContent: false
tags:
- golang

@ -6,7 +6,7 @@ series: ["genesis-development"]
series_order: 4
author: "Nick Dumas"
cover: ""
description: "Pseudorandom noise and making it fit your domain."
summary: "Pseudorandom noise and making it fit your domain."
showFullContent: false
date: "2019-02-28"
images:

@ -8,7 +8,7 @@ date: "2023-04-06"
author: "Nick Dumas"
cover: ""
keywords: [""]
description: "Maxing out your CPU for fun and profit with dense graphs, or how I'm attempting to follow through on my plan to work on projects with more visual outputs"
summary: "Maxing out your CPU for fun and profit with dense graphs, or how I'm attempting to follow through on my plan to work on projects with more visual outputs"
showFullContent: false
tags:
- graphviz

@ -7,7 +7,7 @@ date: "2024-04-24"
author: "Nick Dumas"
cover: ""
keywords: ["", ""]
description: "A non-exhaustive list of tips and rules that elevate my tabletop gaming."
summary: "A non-exhaustive list of tips and rules that elevate my tabletop gaming."
showFullContent: false
tags:
- dnd

@ -7,7 +7,7 @@ date: "2024-04-24"
author: "Nick Dumas"
cover: ""
keywords: ["", ""]
description: "Note-taking and the tools we use to do it can present an overwhelming abundance of possibility. Explicitly modelling your notes as tools can grant clarity when creating and organizing your knowledge."
summary: "Note-taking and the tools we use to do it can present an overwhelming abundance of possibility. Explicitly modelling your notes as tools can grant clarity when creating and organizing your knowledge."
showFullContent: false
tags:
- obsidian

@ -7,7 +7,7 @@ date: "2024-04-11"
author: "Nick Dumas"
cover: ""
keywords: ["", ""]
description: ""
summary: ""
showFullContent: false
tags:
- golang

@ -7,7 +7,7 @@ date: "2023-03-05"
author: "Nick Dumas"
cover: ""
keywords: ["", ""]
description: "Making sure PagerDuty leaves you alone"
summary: "Making sure PagerDuty leaves you alone"
showFullContent: false
tags:
- pagerduty

@ -6,7 +6,7 @@ series: ["path-of-market"]
series_order: 1
author: "Nick Dumas"
cover: ""
description: "Tracking market trends in Path of Exile with Prometheus"
summary: "Tracking market trends in Path of Exile with Prometheus"
showFullContent: false
date: "2019-07-08"
tags:

@ -7,7 +7,7 @@ date: "2024-04-15"
author: "Nick Dumas"
cover: ""
keywords: ["", ""]
description: "Projections are abstract, but abstractions are a powerful tool for helping us model the world."
summary: "Projections are abstract, but abstractions are a powerful tool for helping us model the world."
showFullContent: false
tags:
- note-taking

@ -5,7 +5,7 @@ aliases: ["Prometheus Primer: the first few pages of the documentation"]
series: []
author: "Nick Dumas"
cover: ""
description: "I'm trying to teach myself Prometheus, so I'm writing about it."
summary: "I'm trying to teach myself Prometheus, so I'm writing about it."
showFullContent: false
date: "2019-07-04"
tags:

@ -5,7 +5,7 @@ aliases: ["Fighting with SELinux yet again"]
series: []
author: "Nick Dumas"
cover: ""
description: "Extending Quartz's single.html to link between posts."
summary: "Extending Quartz's single.html to link between posts."
showFullContent: false
date: "2018-04-13"
tags:

@ -7,7 +7,7 @@ series_order: 3
date: "2023-03-07"
author: "Nick Dumas"
cover: ""
description: "Extending Quartz's single.html to link between posts."
summary: "Extending Quartz's single.html to link between posts."
showFullContent: false
keywords:
- quartz

@ -8,7 +8,8 @@ date: "2024-05-15"
author: "Nick Dumas"
cover: ""
keywords: ["", ""]
description: "Versioning is a critical part of delivering software to users. With bazel, you can derive per-build values and inject them anywhere in your build process."
summary: "Versioning is a critical part of delivering software to users. With bazel, you can derive per-build values and inject them anywhere in your build process."
summary: "Versioning is a critical part of delivering software to users. With bazel, you can derive per-build values and inject them anywhere in your build process."
showFullContent: false
tags:
- bazel

@ -5,7 +5,7 @@ aliases: ["Standing up Gogs and fighting with SELinux"]
author: "Nick Dumas"
series: []
cover: ""
description: "SELinux like all security tools end up getting in the way of users who know what they're doing."
summary: "SELinux like all security tools end up getting in the way of users who know what they're doing."
showFullContent: false
date: "2018-02-20"
tags:

@ -10,7 +10,7 @@ date: "2023-09-02"
author: Nick Dumas
cover: ""
keywords: []
description: "Investing in tooling makes adhering to good practices almost easy enough to be joyful."
summary: "Investing in tooling makes adhering to good practices almost easy enough to be joyful."
showFullContent: false
tags:
- bazel

@ -7,7 +7,7 @@ date: "2023-06-01"
author: "Nick Dumas"
cover: ""
keywords: ["", ""]
description: "As a collection of Markdown documents grows organically, maintaining consistency is important. JSONSchema offers a way to automatically ensure frontmatter stays up to spec."
summary: "As a collection of Markdown documents grows organically, maintaining consistency is important. JSONSchema offers a way to automatically ensure frontmatter stays up to spec."
showFullContent: false
tags:
- yaml
@ -21,7 +21,7 @@ Over my time using Obsidian, I've independently authored around 400 notes. Over
```markdown
---
publish: false
description: ""
summary: ""
aliases: []
title: ""
source: []
@ -90,12 +90,12 @@ func Validate(schemaURL string, r io.Reader) error {
go run cmd/obp/*.go validate -s https://schemas.ndumas.com/obsidian/note.schema.json -t Resources/blog/published/
2023/06/01 10:31:27 scanning "mapping-aardwolf.md"
2023/06/01 10:31:27 scanning "schema-bad.md"
2023/06/01 10:31:27 validation error: &fmt.wrapError{msg:"error validating target: jsonschema: '' does not validate with https://schemas.ndumas.com/obsidian/note.schema.json#/required: missing properties: 'title', 'description', 'tags'", err:(*jsonschema.ValidationError)(0xc0000b3740)}
2023/06/01 10:31:27 validation error: &fmt.wrapError{msg:"error validating target: jsonschema: '' does not validate with https://schemas.ndumas.com/obsidian/note.schema.json#/required: missing properties: 'title', 'summary', 'tags'", err:(*jsonschema.ValidationError)(0xc0000b3740)}
2023/06/01 10:31:27 error count for "schema-bad.md": 1
2023/06/01 10:31:27 scanning "schema-good.md"
```
You get a relatively detailed description of why validation failed and a non-zero exit code, exactly what you need to prevent malformed data from entering your pipeline.
You get a relatively detailed summary of why validation failed and a non-zero exit code, exactly what you need to prevent malformed data from entering your pipeline.
### how to schema library?
You might notice that when I specify a schema, it's hosted at `schemas.ndumas.com`. [Here](https://code.ndumas.com/ndumas/json-schemas) you can find the repository powering that domain.

Loading…
Cancel
Save