mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-16 22:43:13 +00:00
24 lines
729 B
HTML
24 lines
729 B
HTML
<!--
|
|
Copyright © 2022 - 2025 The Hinode Team / Mark Dumay. All rights reserved.
|
|
Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file.
|
|
Visit gethinode.com/license for more details.
|
|
-->
|
|
|
|
{{ $error := false -}}
|
|
|
|
{{ $args := partial "utilities/InitArgs.html" (dict "structure" "ins" "args" .Params) }}
|
|
{{ if $args.err }}
|
|
{{ partial "utilities/LogErr.html" (dict
|
|
"partial" "shortcodes/ins.html"
|
|
"msg" "Invalid arguments"
|
|
"details" $args.errmsg
|
|
"file" page.File
|
|
)}}
|
|
{{ end }}
|
|
|
|
{{ $text := .Inner | default "" }}
|
|
|
|
<!-- Main code -->
|
|
{{- if not $error -}}
|
|
<ins>{{ $text | strings.TrimSpace | .Page.RenderString }}</ins>
|
|
{{- end -}} |