hugo-owu-se/layouts/shortcodes/vps_company.html

23 lines
762 B
HTML
Raw Normal View History

2025-04-12 22:30:51 +07:00
{{- /*
For use with 7
*/}}
{{- /* Get OWNER Arguments. */}}
{{- $COMPANY := or (.Get "company") "N/a" }}
{{- $REGISTER_ID := or (.Get "register_id") "N/a" }}
{{- $COMPANY_STATE := or (.Get "company_state") "N/a" }}
{{- $COMPANY_COUNTRY := or (.Get "company_country") "N/a" }}
{{- $WEBSITE := or (.Get "website") "N/a" }}
{{ $owner := slice
(dict "type" "Company" "value" $COMPANY)
(dict "type" "Entity ID" "value" $REGISTER_ID)
(dict "type" "Company Location" "value" (print $COMPANY_STATE ", " $COMPANY_COUNTRY))
(dict "type" "Website" "value" (safeHTML (print "<a target=_blank href='https://" $WEBSITE "'>" $WEBSITE "</a>")))
}}
<h2>Owner</h2>
{{ range $owner }}
<b>{{ .type }}:</b> <pre>{{ .value |safeHTML }}</pre>
{{ end }}