File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
modules/blox-tailwind/layouts/_shortcodes
starters/academic-cv/content/post/teach-courses Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ {{/*
2+ Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#cite
3+
4+ Cite shortcode for Hugo Blox Builder.
5+
6+ Parameters
7+ ----------
8+ page : required
9+ Path to Markdown page to be referenced.
10+ view : optional, default "citation"
11+ A built-in Hugo Blox Builder view or an installed community view.
12+
13+ */}}
14+
15+ {{ $page := .Page }}
16+ {{ $item := .Get "page" }}
17+
18+ {{/* Default to citation view for Tailwind module */}}
19+ {{ $view := (.Get "view") | default "citation" }}
20+
21+ {{ with site.GetPage $item }}
22+ {{ partial "functions/render_view" (dict "page" $page "item" . "view" $view "index" 0) }}
23+ {{ else }}
24+ {{ warnf "Failed to find page for cite shortcode: %s" $item }}
25+ {{ end }}
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ image:
1919
2020On this page, you'll find some examples of the types of technical content that can be rendered with Hugo Blox.
2121
22+ ## Citation
23+
24+ Here's an example of citing a publication using the cite shortcode:
25+
26+ {{< cite page="/publication/preprint" view="citation" >}}
27+
28+ You can also use the default view by omitting the view parameter:
29+
30+ {{< cite page="/publication/conference-paper" >}}
31+
2232## Video
2333
2434Teach your course by sharing videos with your students. Choose from one of the following approaches:
You can’t perform that action at this time.
0 commit comments