11 lines
347 B
HTML
11 lines
347 B
HTML
{{- $path := .Get 0 -}}
|
|
{{- if not $path -}}
|
|
{{- $path = .Get "src" -}}
|
|
{{- end -}}
|
|
{{- if $path -}}
|
|
{{- partial "include.html" (dict "context" .Page "path" $path) -}}
|
|
{{- else -}}
|
|
{{- warnf "Shortcode 'include' called without path or src attribute." -}}
|
|
<p class="text-red-500 font-bold">[Include Error: No path provided]</p>
|
|
{{- end -}}
|