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

github.com/cowboysmall-tools/hugo-devresume-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Kiely <jerry@cowboysmall.com>2019-11-04 03:50:58 +0300
committerJerry Kiely <jerry@cowboysmall.com>2019-11-04 03:50:58 +0300
commit0bdebe9c7e418e46e9973a5dd5404cb9094174f7 (patch)
treec4a259f2347a451145b8fa20ab89515489e18e80
parent0beb4b59d4eebfd4f1f6858a0a500a2c8d57bcbf (diff)
made avatar name configurable
-rw-r--r--exampleSite/config.toml4
-rw-r--r--layouts/partials/summary.html2
-rw-r--r--static/assets/images/resume-profile.pngbin40412 -> 0 bytes
3 files changed, 3 insertions, 3 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 816afec..f8820be 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -3,8 +3,7 @@
baseURL = "http://example.org/"
languageCode = "en"
title = ""
-theme = "devresume"
-# theme = "hugo-devresume-theme"
+theme = "hugo-devresume-theme"
googleAnalytics = "UA-XXXXXXX-Y"
@@ -26,6 +25,7 @@ googleAnalytics = "UA-XXXXXXX-Y"
enable = true
name = "Simon Doe"
tagline = "Senior Software Engineer"
+ avatar = "avatar.png"
diff --git a/layouts/partials/summary.html b/layouts/partials/summary.html
index c2412ba..5257094 100644
--- a/layouts/partials/summary.html
+++ b/layouts/partials/summary.html
@@ -2,7 +2,7 @@
<div class="media flex-column flex-md-row align-items-center">
- <img class="resume-profile-image mb-3 mb-md-0 mr-md-5 ml-md-0 rounded mx-auto" src="{{ .Site.BaseURL }}assets/images/resume-profile.png" alt="image">
+ <img class="resume-profile-image mb-3 mb-md-0 mr-md-5 ml-md-0 rounded mx-auto" src="{{ .Site.BaseURL }}assets/images/{{ .Site.Params.profile.avatar }}" alt="image">
<div class="media-body text-left">
<p class="mb-0">{{ .Site.Params.summary.text }}</p>
diff --git a/static/assets/images/resume-profile.png b/static/assets/images/resume-profile.png
deleted file mode 100644
index 2bf823b..0000000
--- a/static/assets/images/resume-profile.png
+++ /dev/null
Binary files differ