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

github.com/vaga/hugo-theme-m10c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Quintão <ghustavus@gmail.com>2019-06-12 16:32:33 +0300
committerFabien <vaga@users.noreply.github.com>2019-06-17 22:52:30 +0300
commit752e38782a97c9439c9a323e277d504342c97cd5 (patch)
treec71a2ea521f3e90b54231e9b67af0c580fb50fe7
parenta641e52c7c0fd57f81bfb45824766065d43c42ea (diff)
Allow set avatar image on Hugo config.toml
Change baseof.html to permit set src to avatar image on config.toml through avatar attribute.
-rw-r--r--layouts/_default/baseof.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index e87e849..a10b797 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -17,7 +17,7 @@
</head>
<body>
<header class="app-header">
- <a href="{{ .Site.BaseURL }}"><img class="app-header-avatar" src="{{ "avatar.jpg" | relURL }}" alt="{{ .Site.Params.author | default "John Doe" }}" /></a>
+ <a href="{{ .Site.BaseURL }}"><img class="app-header-avatar" src="{{.Site.Params.avatar | default " avatar.jpg "}}" alt="{{ .Site.Params.author | default "John Doe" }}" /></a>
<h1>{{ .Site.Title }}</h1>
<p>{{ .Site.Params.description | default "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vehicula turpis sit amet elit pretium." }}</p>
<div class="app-header-social">