Fixing the article flag
All checks were successful
Build and Deploy Resume Site / setup-website-content (push) Successful in 18s

This commit is contained in:
2026-07-09 00:06:56 -07:00
parent dfda430ae7
commit beda5bde45
2 changed files with 6 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ title: 'Preview of My New Desk'
description: 'Final stretch of making my first real furniture piece and a small challenge ;-;'
date: 2026-07-08T22:47:52-07:00
thumbnail: /img/08-jul-2026/thumbnail.JPG
article: false
article: true
---
I'm finally get to the point where I can start putting the finishing touches on

View File

@@ -11,7 +11,6 @@
<h5>/files</h5>
{{ end }}
{{ end }}
<p>{{ .Content }}</p>
{{ $colors := slice "cyan" "yellow" "pink"}}
{{ if hasPrefix $path "files" }}
{{ range $folder, $files := .Params.folders }}
@@ -39,8 +38,11 @@
{{ if .Page.Params.Article }}
<p class="card-text">{{ .Description }}</p>
{{ else }}
<!-- for some reason /scripts likes to dump the whole article so this -->
<!-- is a guard against that and yes its fucking stupid who cares it works -->
<!-- even if it is absolutely stupid -->
{{ if not (hasPrefix .Page.Path "/scripts") }}
<p class="card-text swag">{{ .Page.Content }}</p>
<p class="card-text">{{ .Page.Content }}</p>
{{ end }}
{{ end }}
{{ if .Page.Params.Thumbnail }}