Use camel case for vars

This commit is contained in:
Will Faught
2025-02-06 21:42:51 -08:00
parent b840f2233a
commit 20798f3a3a
22 changed files with 226 additions and 228 deletions

View File

@@ -1,7 +1,7 @@
{{- $href := cond (.Destination | not | not) (printf ` href="%s"` .Destination) "" -}}
{{- $targetvalue := partial "paige/func-target.html" (dict "page" .Page "url" .Destination) -}}
{{- $targetValue := partial "paige/func-target.html" (dict "page" .Page "url" .Destination) -}}
{{- $title := cond (.Title | not | not) (printf ` title="%s"` .Title) "" -}}
{{- $targetattr := cond ($targetvalue | not | not) (printf ` target="%s"` $targetvalue) "" -}}
{{- $targetAttr := cond ($targetValue | not | not) (printf ` target="%s"` $targetValue) "" -}}
{{- printf `<a%s%s%s>%s</a>` $href $targetattr $title .Text | safeHTML -}}
{{- printf `<a%s%s%s>%s</a>` $href $targetAttr $title .Text | safeHTML -}}