-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor shortcode tweaks and consistency changes
- Loading branch information
Showing
7 changed files
with
49 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
{{- /* | ||
Work around wrong escapes in integrity attributes. | ||
*/ -}} | ||
{{- /* Work around wrong escapes in integrity attributes. */ -}} | ||
|
||
{{- $name := .Get 0 -}} | ||
|
||
{{- with $name -}} | ||
{{- $value := $.Page.Param . -}} | ||
{{- if in $name "_hash" -}} | ||
{{- $value = $value | safeHTML -}} | ||
{{- $value := $.Page.Param . -}} | ||
|
||
{{- if in $name "_hash" -}} | ||
{{- $value = $value | safeHTML -}} | ||
{{- end -}} | ||
|
||
{{- with $value }} | ||
{{- . -}} | ||
{{- else -}} | ||
{{- errorf "Param %q not found: %s" $name $.Position -}} | ||
{{- end -}} | ||
{{- else }} | ||
{{- errorf "Missing param key: %s" $.Position }} | ||
{{- end -}} | ||
{{- with $value }}{{ . }}{{ else }}{{ errorf "Param %q not found: %s" $name $.Position }}{{ end -}} | ||
{{- else }}{{ errorf "Missing param key: %s" $.Position }}{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{{- /* | ||
Output the current year | ||
*/ -}} | ||
{{- /* Outputs the current year */ -}} | ||
|
||
{{- now.Format "2006" -}} |