danix
's git repository
home
/
my projects
/
theme-danix.xyz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding all svgs and partials to handle them in order to ask for help in the forums.
[theme-danix.xyz.git]
/
layouts
/
shortcodes
/
svg.html
diff --git
a/layouts/shortcodes/svg.html
b/layouts/shortcodes/svg.html
index
64ee2b4
..
1575bc3
100644
(file)
--- a/
layouts/shortcodes/svg.html
+++ b/
layouts/shortcodes/svg.html
@@
-1,4
+1,4
@@
-<span class="inline-svg" >
-{{- $fname:=print "../SVGs/" ( .Get 0 ) ".svg" -}}
-{{ $fname | readFile | safeHTML }}
-</span>
\ No newline at end of file
+<pre class="inline-vg">
+{{ $favicon := resources.Get "SVGs/linux.svg" }}
+{{ $favicon | absURL | readFile | safeHTML }}
+</pre>