mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-07-07 12:37:31 -05:00
WIP
This commit is contained in:
9
layouts/_shortcodes/resource.html
Normal file
9
layouts/_shortcodes/resource.html
Normal file
@ -0,0 +1,9 @@
|
||||
{{ with .Get 0 }}
|
||||
{{ with $.Page.Resources.Get . }}
|
||||
{{ partial "embed-resource.html" . }}
|
||||
{{ else }}
|
||||
{{ errorf "resource %q not found" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ errorf "resource name not provided as first parameter" }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user