diff options
author | Gustavo Quintão <ghustavus@gmail.com> | 2019-06-12 16:32:33 +0300 |
---|---|---|
committer | Fabien <vaga@users.noreply.github.com> | 2019-06-17 22:52:30 +0300 |
commit | 752e38782a97c9439c9a323e277d504342c97cd5 (patch) | |
tree | c71a2ea521f3e90b54231e9b67af0c580fb50fe7 | |
parent | a641e52c7c0fd57f81bfb45824766065d43c42ea (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.html | 2 |
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"> |