From ed9943a3856aca00fd21cdb949c352338a2e702f Mon Sep 17 00:00:00 2001 From: danix Date: Wed, 8 Feb 2023 11:23:18 +0100 Subject: [PATCH] adding all svgs and partials to handle them in order to ask for help in the forums. --- assets/SVGs/arrow-up.svg | 1 + assets/SVGs/css3.svg | 1 + assets/SVGs/git.svg | 1 + assets/SVGs/github.svg | 1 + assets/SVGs/home.svg | 1 + assets/SVGs/html5.svg | 1 + assets/SVGs/instagram.svg | 1 + assets/SVGs/js.svg | 1 + assets/SVGs/linux.svg | 1 + assets/SVGs/markdown.svg | 1 + assets/SVGs/sass.svg | 1 + assets/SVGs/spotify.svg | 1 + assets/SVGs/twitter.svg | 1 + assets/sass/main.scss | 2 +- layouts/partials/funcs/svg.html | 6 ++++-- layouts/shortcodes/svg.html | 8 ++++---- 16 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 assets/SVGs/arrow-up.svg create mode 100644 assets/SVGs/css3.svg create mode 100644 assets/SVGs/git.svg create mode 100644 assets/SVGs/github.svg create mode 100644 assets/SVGs/home.svg create mode 100644 assets/SVGs/html5.svg create mode 100644 assets/SVGs/instagram.svg create mode 100644 assets/SVGs/js.svg create mode 100644 assets/SVGs/linux.svg create mode 100644 assets/SVGs/markdown.svg create mode 100644 assets/SVGs/sass.svg create mode 100644 assets/SVGs/spotify.svg create mode 100644 assets/SVGs/twitter.svg diff --git a/assets/SVGs/arrow-up.svg b/assets/SVGs/arrow-up.svg new file mode 100644 index 0000000..db78a14 --- /dev/null +++ b/assets/SVGs/arrow-up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/css3.svg b/assets/SVGs/css3.svg new file mode 100644 index 0000000..78dd10f --- /dev/null +++ b/assets/SVGs/css3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/git.svg b/assets/SVGs/git.svg new file mode 100644 index 0000000..f06f0bf --- /dev/null +++ b/assets/SVGs/git.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/github.svg b/assets/SVGs/github.svg new file mode 100644 index 0000000..2b43c97 --- /dev/null +++ b/assets/SVGs/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/home.svg b/assets/SVGs/home.svg new file mode 100644 index 0000000..9b8d350 --- /dev/null +++ b/assets/SVGs/home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/html5.svg b/assets/SVGs/html5.svg new file mode 100644 index 0000000..00bd134 --- /dev/null +++ b/assets/SVGs/html5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/instagram.svg b/assets/SVGs/instagram.svg new file mode 100644 index 0000000..f355c61 --- /dev/null +++ b/assets/SVGs/instagram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/js.svg b/assets/SVGs/js.svg new file mode 100644 index 0000000..42324e5 --- /dev/null +++ b/assets/SVGs/js.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/linux.svg b/assets/SVGs/linux.svg new file mode 100644 index 0000000..fb9afbb --- /dev/null +++ b/assets/SVGs/linux.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/markdown.svg b/assets/SVGs/markdown.svg new file mode 100644 index 0000000..07b49f8 --- /dev/null +++ b/assets/SVGs/markdown.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/sass.svg b/assets/SVGs/sass.svg new file mode 100644 index 0000000..549d397 --- /dev/null +++ b/assets/SVGs/sass.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/spotify.svg b/assets/SVGs/spotify.svg new file mode 100644 index 0000000..6a0311d --- /dev/null +++ b/assets/SVGs/spotify.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/twitter.svg b/assets/SVGs/twitter.svg new file mode 100644 index 0000000..38907e8 --- /dev/null +++ b/assets/SVGs/twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/sass/main.scss b/assets/sass/main.scss index 1f57f38..3948ad1 100644 --- a/assets/sass/main.scss +++ b/assets/sass/main.scss @@ -125,4 +125,4 @@ div#backtotop { width: 1.15rem; top: 0.15rem; position: relative; -} \ No newline at end of file +} diff --git a/layouts/partials/funcs/svg.html b/layouts/partials/funcs/svg.html index 44e167b..7421dbe 100644 --- a/layouts/partials/funcs/svg.html +++ b/layouts/partials/funcs/svg.html @@ -1,4 +1,6 @@ -{{ $svg := .Get 0 }} -{{ readFile ( print "SVGs/" . ".svg" ) | safeHTML }} +{{- $fname:=print "SVGs/" . ".svg" -}} +{{- $path:=" diff --git a/layouts/shortcodes/svg.html b/layouts/shortcodes/svg.html index 64ee2b4..1575bc3 100644 --- a/layouts/shortcodes/svg.html +++ b/layouts/shortcodes/svg.html @@ -1,4 +1,4 @@ - -{{- $fname:=print "../SVGs/" ( .Get 0 ) ".svg" -}} -{{ $fname | readFile | safeHTML }} - \ No newline at end of file +
+{{ $favicon := resources.Get "SVGs/linux.svg" }}
+{{ $favicon | absURL | readFile | safeHTML }}
+
-- 2.20.1