Add avatar option and footer text option (#41)

* Add avatar option and footer text option

* add responsive avatar for narrow screen

* improvement of code

* conflicts solved
This commit is contained in:
rdhox
2018-07-05 15:06:04 +02:00
committed by Luiz F. A. de Prá
parent 9fdd4f2f4a
commit c7cae007a6
7 changed files with 25 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
<footer class="footer">
<section class="container">
{{ with .Site.Params.footercontent }}
<p>{{.}}</p>
{{ end }}
{{ if not .Site.Params.hideCopyright }} © {{ .Site.LastChange.Format "2006" }} {{ end }} {{ if not .Site.Params.hideCredits}} {{ if not .Site.Params.hideCopyright }} · {{ end }} Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>. {{ end }}
</section>
</footer>

View File

@@ -1,5 +1,8 @@
<section class="container centered">
<div class="about">
{{ with .Site.Params.avatarurl }}
<div class="avatar"><img src="{{.}}" alt="avatar"></div>
{{ end }}
<h1>{{ .Site.Params.author }}</h1>
<h2>{{ .Site.Params.info }}</h2>
{{ with .Site.Params.social }}