-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create pdf.md * Update pdf.md * Escape PDF shortcode examples * Remove markdown syntax highlight * chore: update Hugo and Go versions for deployment * docs: add additional shortcodes * chore: re-compile --------- Co-authored-by: Shahar Naveh <[email protected]>
- Loading branch information
1 parent
526be88
commit 66d2bf5
Showing
6 changed files
with
69 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
title: Other Shortcodes | ||
linkTitle: Others | ||
sidebar: | ||
exclude: true | ||
--- | ||
|
||
{{< callout emoji="ℹ️" >}} | ||
Some of these are Hugo built-in shortcodes. | ||
These shortcodes are considered less stable and may be changed anytime. | ||
{{< /callout >}} | ||
|
||
## YouTube | ||
|
||
Embed a YouTube video. | ||
|
||
``` | ||
{{</* youtube VIDEO_ID */>}} | ||
``` | ||
|
||
Result: | ||
|
||
{{< youtube id=dQw4w9WgXcQ loading=lazy >}} | ||
|
||
For more information, see [Hugo's YouTube Shortcode](https://gohugo.io/content-management/shortcodes/#youtube). | ||
|
||
|
||
With PDF shortcode, you can embed a PDF file in your content. | ||
|
||
``` | ||
{{</* pdf "https://example.com/sample.pdf" */>}} | ||
``` | ||
|
||
You can also place the PDF file in your project directory and use the relative path. | ||
|
||
``` | ||
{{</* pdf "path/to/file.pdf" */>}} | ||
``` | ||
|
||
Example: | ||
|
||
{{< pdf "https://upload.wikimedia.org/wikipedia/commons/1/13/Example.pdf" >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.