Skip to content

Commit

Permalink
add highlight shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
imgios committed Jan 4, 2025
1 parent a1a203e commit 65654d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions exampleSite/content/posts/hugo-shortcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ tags: ["hugo", "themes"]
This is a **bold** word.
{{< /details >}}

## Highlight

{{< highlight go-html-template >}}
{{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}
{{< /highlight >}}

## Images

{{< figure src="https://images.unsplash.com/photo-1560032779-0a8809186efd?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80" title="Dave Herring" >}}
Expand Down

0 comments on commit 65654d1

Please sign in to comment.