{{ .Title }}
Tags: {{ with .Params.tags }}{{ delimit . ", " }}{{ end }}
{{- $filenameWithExt := split .Name "." -}} {{- $filename := index $filenameWithExt 0 -}} {{- $name := humanize $filename -}}
{{ readFile (printf "/%s/%s.svg" "icons" .File.TranslationBaseName) | chomp | safeHTML }}
Examples
{{ readFile (printf "/%s/%s.svg" "icons" .File.TranslationBaseName) | chomp | safeHTML }}
Heading
Inline text {{ readFile (printf "/%s/%s.svg" "icons" .File.TranslationBaseName) | chomp | safeHTML }}
Download
Right click and save as to download the SVG.
Download SVGIcon font
Using the web font? Copy, paste, and go.
{{ $iconFontSnippet := partial "font-snippet.html" (dict "context" . "name" .File.TranslationBaseName) }}
{{ highlight $iconFontSnippet "html" "" }}
Copy HTML
Paste the SVG right into your project's code.
{{ $source := readFile (printf "/%s/%s.svg" "icons" .File.TranslationBaseName) -}} {{ highlight $source "html" "" }}