Erstes Commit
This commit is contained in:
18
hugo/layouts/partials/conversion-seo-texts.html
Normal file
18
hugo/layouts/partials/conversion-seo-texts.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{{ $fromText := printf "texts/%s.html" .Params.from }}
|
||||
{{ $toText := printf "texts/%s.html" .Params.to }}
|
||||
{{ $catText := printf "texts/%s.html" .Params.category }}
|
||||
|
||||
<div id="seo-texts" class="mt-4 space-y-4 textcontent">
|
||||
{{ if templates.Exists (printf "partials/%s" $fromText) }}
|
||||
{{ partial $fromText . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if and (ne .Params.from .Params.to)
|
||||
(templates.Exists (printf "partials/%s" $toText)) }}
|
||||
{{ partial $toText . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if templates.Exists (printf "partials/%s" $catText) }}
|
||||
{{ partial $catText . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user