diff --git a/modules/wowchemy/layouts/partials/blocks/accomplishments.html b/modules/wowchemy/layouts/partials/blocks/accomplishments.html new file mode 100644 index 00000000..887b8272 --- /dev/null +++ b/modules/wowchemy/layouts/partials/blocks/accomplishments.html @@ -0,0 +1,64 @@ +{{/* Wowchemy Blocks: Accomplishments */}} +{{/* Documentation: https://wowchemy.com/blocks/ */}} +{{/* License: https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/LICENSE.md */}} + +{{/* Initialise */}} +{{ $page := .wcPage }} +{{ $block := .wcBlock }} +{{ $columns := $block.design.columns | default "1" }} + + +
{{ $block.content.subtitle | markdownify | emojify }}
{{ end }} +{{ . | markdownify | emojify }}
{{ end }} ++ {{ if $block.content.cta.icon }}{{end}}{{ $block.content.cta.label | markdownify | emojify | safeHTML }} + + {{/* Alternative Call-to-action link */}} + {{ if $block.content.cta_alt.url }} + {{ $link := $block.content.cta_alt.url }} + {{ $scheme := (urls.Parse $link).Scheme }} + {{ $target := "" }} + {{ if not $scheme }} + {{ $link = $link | relLangURL }} + {{ else if in (slice "http" "https") $scheme }} + {{ $target = "target=\"_blank\" rel=\"noopener\"" }} + {{ end }} + {{ $block.content.cta_alt.label | markdownify | emojify | safeHTML }} + {{ end }} +
+ {{ end }} + + {{/* Call-to-action note */}} + {{ with $block.content.cta_note }} ++ {{ .label | markdownify | emojify | safeHTML }} +
+ {{ end }} + + {{/* Hero image */}} + {{ if $block.content.image.filename }} +