Skip to content

Commit

Permalink
docs strings trying to render. fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwcarlson committed Sep 1, 2023
1 parent a454455 commit 8ceec2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions themes/psh-docs/layouts/shortcodes/version/only.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!-- Markdown passed between shortcode `vendor/inner` will render only if the current version = first passed variable -->
<!-- For example, -->
<!-- {{< vendor/only "1" >}} -->
<!-- vendor/only "1" -->
<!-- platform variable:get -->
<!-- {{< /vendor/only >}} -->
<!-- /vendor/only -->
<!-- When the site is built, the `platform` command will appear iff vendor.config.version = 1 in params.yaml -->
{{- $version := .Site.Params.vendor.config.version -}}
{{- if eq $version ( int (.Get 0)) -}}
Expand Down
6 changes: 3 additions & 3 deletions themes/psh-docs/layouts/shortcodes/version/specific.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<!-- Key 1: Version 1; the first Inner prior to the dividing character -->
<!-- Key 2: Version 2; the second Inner after the dividing character -->
<!-- For example, -->
<!-- {{< vendor/specific >}} -->
<!-- vendor/specific -->
<!-- platform variable:get -->
<!-- \<---\> -->
<!-- (divider: see $splitVersionChar below) -->
<!-- friday variable:get -->
<!-- {{< /vendor/specific}} -->
<!-- /vendor/specific -->
{{- $page := .Page -}}
{{- $version := .Site.Params.vendor.config.version -}}
{{- $splitVersionChar := "<--->" -}}
Expand Down

0 comments on commit 8ceec2f

Please sign in to comment.