Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xaviablaza/hugo-lodi-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Ablaza <xlablaza@gmail.com>2017-10-18 10:23:04 +0300
committerXavi Ablaza <xlablaza@gmail.com>2017-10-18 10:33:37 +0300
commitd59b5af392c47a2f1f536c7a8a33f8394ac953d6 (patch)
tree8527212218cc198e27970bc9263a279d007e536f
parentb9b9f765e8a54f67377ac0592b253db9cdb4c7bb (diff)
Make inline svg of download resume button work on Firefox
-rw-r--r--layouts/partials/hero.html4
-rw-r--r--static/svg/dl-resume.svg2
2 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html
index 030744b..489c306 100644
--- a/layouts/partials/hero.html
+++ b/layouts/partials/hero.html
@@ -107,8 +107,8 @@
{{ end }}
</div>
<a href="{{ .Site.BaseURL }}{{ .Site.Params.Hero.Resume }}" target="blank" class="download-resume" onclick="ga('send', {hitType: 'event',eventCategory: 'CTA',eventAction: 'download',});">
- <svg style="position: relative;top: 1.8px;padding-right: 1.5em;" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16"><g><polygon data-color="color-2" fill="#b6c9fe" points="9,8 9,1 7,1 7,8 4.6,8 8,12 11.4,8 "></polygon>
- <path fill="#b6c9fe" d="M15,16H1c-0.6,0-1-0.4-1-1V6c0-0.6,0.4-1,1-1h3v2H2v7h12V7h-2V5h3c0.6,0,1,0.4,1,1v9C16,15.6,15.6,16,15,16z"></path></g></svg>Download Resume</a>
+ <img style="position: relative;top: 1.8px;padding-right: 6px;" src="svg/dl-resume.svg">
+ Download Resume</a>
</div>
<div class="hero-right">
{{ range $paragraph := .Site.Params.Hero.hero_right }}
diff --git a/static/svg/dl-resume.svg b/static/svg/dl-resume.svg
new file mode 100644
index 0000000..4e70747
--- /dev/null
+++ b/static/svg/dl-resume.svg
@@ -0,0 +1,2 @@
+<svg xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16"><g><polygon data-color="color-2" fill="#b6c9fe" points="9,8 9,1 7,1 7,8 4.6,8 8,12 11.4,8 "></polygon>
+ <path fill="#b6c9fe" d="M15,16H1c-0.6,0-1-0.4-1-1V6c0-0.6,0.4-1,1-1h3v2H2v7h12V7h-2V5h3c0.6,0,1,0.4,1,1v9C16,15.6,15.6,16,15,16z"></path></g></svg> \ No newline at end of file