Skip to content

Commit

Permalink
Add homepage background image
Browse files Browse the repository at this point in the history
See #2
  • Loading branch information
Track3 committed Nov 22, 2018
1 parent 0a0ee1a commit e594f1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ copyright = "This work is licensed under a Creative Commons Attribution-NonComme
footerCopyright = ' &#183; <a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
# gitUrl = "https://github.com/Someone/SomeRepo/commit/" # Prefix of link to you git commit detail page. GitInfo must be enabled.
justifyContent = false # Set "text-align: justify" to .content
# bgImg = "" # Homepage background-image URL

[[params.social]]
name = "twitter"
Expand Down
3 changes: 3 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{{ define "main" }}
{{- with .Site.Params.bgImg }}
<div class="bg-img" style="background-image: url('{{ . }}')"></div>
{{- end }}
<div id="spotlight" class="animated fadeIn">
<div id="home-center">
<h1 id="home-title">{{ .Site.Title }}</h1>
Expand Down

0 comments on commit e594f1a

Please sign in to comment.