mirror of
https://github.com/imfing/hextra.git
synced 2025-08-25 06:16:45 -04:00
docs: add documentation on all shortcodes (#753)
This commit is contained in:

committed by
GitHub

parent
80ada64da0
commit
2033d50005
@@ -1,4 +1,10 @@
|
||||
{{/* Shortcode to include a PDF file in a page. */}}
|
||||
{{- /*
|
||||
Shortcode to include a PDF file in a page.
|
||||
|
||||
@param {string} 0 The path to the PDF file.
|
||||
|
||||
@example {{< pdf "path/to/file.pdf" >}}
|
||||
*/ -}}
|
||||
|
||||
{{- $path := .Get 0 -}}
|
||||
{{- $url := partial "utils/file-path" (dict "page" .Page "path" $path) -}}
|
||||
|
Reference in New Issue
Block a user