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

github.com/nurlansu/hugo-sustain.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNurlan Su <nurlansu@users.noreply.github.com>2017-02-12 01:34:02 +0300
committerGitHub <noreply@github.com>2017-02-12 01:34:02 +0300
commit317905fbcade5b89da7ccf4e36817453e186b289 (patch)
treef82e4c0ba9e9d1601f6d8fefd5901146c89da94a
parentdd0f30b33d61d783953554e2be584b6749e8fd6d (diff)
parent084c128b5b0aa71c963b0bceabb12d761d2c7912 (diff)
Merge pull request #4 from patrickderitter/social-fix
-rwxr-xr-xexampleSite/config.toml2
-rw-r--r--layouts/index.html2
-rwxr-xr-xlayouts/partials/social.html20
3 files changed, 12 insertions, 12 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 6620350..49233a1 100755
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -19,7 +19,7 @@ theme = "hugo-sustain"
custom_css = []
custom_js = []
-[social]
+[params.social]
Github = "username"
Email = "email@example.com"
Twitter = "username"
diff --git a/layouts/index.html b/layouts/index.html
index d1fa20e..43fcdae 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -11,7 +11,7 @@
<h3>I love all things computer science and maths.</h3>
<h3>Have a look at some of my working <a href="{{ .Site.BaseURL }}projects/"> projects</a>.</h3>
<h3>For more check out my academic &amp; professional <a href="http://biomadeira.github.io/vitae">Resume</a>.</h3>
- <h3>Contact me at <a href="http://twitter.com/{{ .Site.Social.Twitter }}">@{{ .Site.Social.Twitter }}</a> or by <a href="mailto:{{ .Site.Social.Email }}">email</a>.</h3>
+ <h3>Contact me at <a href="http://twitter.com/{{ .Site.Params.Social.Twitter }}">@{{ .Site.Params.Social.Twitter }}</a> or by <a href="mailto:{{ .Site.Params.Social.Email }}">email</a>.</h3>
{{ partial "social.html" . }}
</div>
</section>
diff --git a/layouts/partials/social.html b/layouts/partials/social.html
index 067c391..829dce8 100755
--- a/layouts/partials/social.html
+++ b/layouts/partials/social.html
@@ -1,23 +1,23 @@
<div class="social">
<h4>
- {{ if .Site.Social.Github }}
- <a href="http://github.com/{{ .Site.Social.Github }}"><i class="fa fa-github"></i></a>
+ {{ if .Site.Params.Social.Github }}
+ <a href="http://github.com/{{ .Site.Params.Social.Github }}"><i class="fa fa-github"></i></a>
{{ end }}
- {{ if .Site.Social.Email }}
- <a href="mailto:{{ .Site.Social.Email }}"><i class="fa fa-envelope"></i></a>
+ {{ if .Site.Params.Social.Email }}
+ <a href="mailto:{{ .Site.Params.Social.Email }}"><i class="fa fa-envelope"></i></a>
{{ end }}
- {{ if .Site.Social.Twitter }}
- <a href="http://twitter.com/{{ .Site.Social.Twitter }}"><i class="fa fa-twitter"></i></a>
+ {{ if .Site.Params.Social.Twitter }}
+ <a href="http://twitter.com/{{ .Site.Params.Social.Twitter }}"><i class="fa fa-twitter"></i></a>
{{ end }}
- {{ if .Site.Social.LinkedIn }}
- <a href="http://linkedin.com/in/{{ .Site.Social.LinkedIn }}"><i class="fa fa-linkedin"></i></a>
+ {{ if .Site.Params.Social.LinkedIn }}
+ <a href="http://linkedin.com/in/{{ .Site.Params.Social.LinkedIn }}"><i class="fa fa-linkedin"></i></a>
{{ end }}
- {{ if .Site.Social.Stackoverflow }}
- <a href="http://stackoverflow.com/{{ .Site.Social.Stackoverflow }}"><i class="fa fa-stack-overflow"></i></a>
+ {{ if .Site.Params.Social.Stackoverflow }}
+ <a href="http://stackoverflow.com/{{ .Site.Params.Social.Stackoverflow }}"><i class="fa fa-stack-overflow"></i></a>
{{ end }}
</h4>
</div>