|
@@ -22,10 +22,16 @@
|
|
|
{{ $is_sponsor := site.Params.i_am_a_sponsor | default false }}
|
|
|
{{ $hide_published_with_footer := site.Params.power_ups.hide_published_with | default true }}
|
|
|
{{ if not (and $is_sponsor $hide_published_with_footer) }}
|
|
|
- Published with
|
|
|
- <a href="https://wowchemy.com/?utm_campaign=poweredby" target="_blank" rel="noopener">Wowchemy</a> —
|
|
|
- the free, <a href="https://github.com/wowchemy/wowchemy-hugo-modules" target="_blank" rel="noopener">
|
|
|
- open source</a> website builder that empowers creators.
|
|
|
+ {{ $default := "Published with {wowchemy} — the free, {repo_link}open source{/repo_link} website builder that empowers creators." }}
|
|
|
+ {{ $i18n_published_with := i18n "published_with" | default $default }}
|
|
|
+ {{ if not (findRE "{wowchemy}" $i18n_published_with) }}
|
|
|
+ {{ warnf "Please attribute Wowchemy using `{wowchemy}` in the `published_with` text." }}
|
|
|
+ {{ $i18n_published_with = $default }}
|
|
|
+ {{ end }}
|
|
|
+ {{ $i18n_published_with = replace $i18n_published_with "{wowchemy}" "<a href=\"https://wowchemy.com/?utm_campaign=poweredby\" target=\"_blank\" rel=\"noopener\">Wowchemy</a>" | safeHTML }}
|
|
|
+ {{ $i18n_published_with = replace $i18n_published_with "{repo_link}" "<a href=\"https://github.com/wowchemy/wowchemy-hugo-modules\" target=\"_blank\" rel=\"noopener\">" | safeHTML }}
|
|
|
+ {{ $i18n_published_with = replace $i18n_published_with "{/repo_link}" "</a>" | safeHTML }}
|
|
|
+ {{ $i18n_published_with | markdownify | emojify }}
|
|
|
{{ end }}
|
|
|
</p>
|
|
|
</footer>
|