Fixing the article flag
All checks were successful
Build and Deploy Resume Site / setup-website-content (push) Successful in 18s
All checks were successful
Build and Deploy Resume Site / setup-website-content (push) Successful in 18s
This commit is contained in:
@@ -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 }}
|
||||
{{ if not (hasPrefix .Page.Path "/scripts") }}
|
||||
<p class="card-text swag">{{ .Page.Content }}</p>
|
||||
<!-- 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">{{ .Page.Content }}</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if .Page.Params.Thumbnail }}
|
||||
|
||||
Reference in New Issue
Block a user