mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 20:15:25 +00:00
feat: add cite shortcode
This commit is contained in:
1 parent
0513bee773
commit
4afdb4deba
1 file changed
+17
@@ -0,0 +1,17 @@
|
||||
{{ $page := .Get "page" }}
|
||||
|
||||
{{/* Default compact view. */}}
|
||||
{{ $view := (.Get "view") | default 2 }}
|
||||
{{ $view = int $view }}
|
||||
|
||||
{{ with site.GetPage $page }}
|
||||
{{ if eq $view 1 }}
|
||||
{{ partial "li_list" . }}
|
||||
{{ else if eq $view 3 }}
|
||||
{{ partial "li_card" . }}
|
||||
{{ else if eq $view 4 }}
|
||||
{{ partial "li_citation" . }}
|
||||
{{ else }}
|
||||
{{ partial "li_compact" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in new issue
Block a user