mirror of https://github.com/escalate/hugo-split-theme.git

Dmitry Verkhoturov
20.10.2018 e9c7cc5c2fdc70603571516137d85bfaefbd4390
set defaults for unset variables, trim trailing spaces
5 files modified
20 ■■■■■ changed files
README.md 10 ●●●● patch | view | raw | blame | history
exampleSite/config.toml 2 ●●● patch | view | raw | blame | history
layouts/index.html 4 ●●●● patch | view | raw | blame | history
layouts/partials/bio.html 2 ●●●●● patch | view | raw | blame | history
layouts/partials/links.html 2 ●●● patch | view | raw | blame | history
README.md
@@ -49,7 +49,7 @@
##### Use your own video
Add your video to the `static` folder and change `file` to the location of your video accordingly. Make sure you delete `youtubeId` or comment it out.
Add your video to the `static` folder and change `file` to the location of your video accordingly. Make sure you delete `youtubeId` or comment it out.
```toml
[[params.visual.image]]
@@ -64,7 +64,7 @@
##### Use a YouTube video
Get the ID of the YouTube video and add it to `youtubeId`. Make sure you delete `file` or comment it out.
Get the ID of the YouTube video and add it to `youtubeId`. Make sure you delete `file` or comment it out.
```toml
[[params.visual.image]]
@@ -105,15 +105,15 @@
[[params.links]]
  [params.links.list1]
    heading = "Connect"
    [[params.links.list1.link]]
      text = "Blog"
      url = "#"
    [[params.links.list1.link]]
      text = "Email"
      url = "#"
    [[params.links.list1.link]]
      text = "Newsletter"
      url = "#"
exampleSite/config.toml
@@ -9,7 +9,7 @@
googleAnalytics = ""
# Copyright
copyright = "©2017 Your Name"
copyright = "©2018 Your Name"
[params]
layouts/index.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<html lang="{{ default .Site.LanguageCode "en-US" }}">
<head>
  {{ partial "head" . }}
@@ -11,7 +11,7 @@
    <!-- Image -->
    {{ if .Site.Params.visual.image.enable }}
      <div class="split-image">
      </div>
layouts/partials/bio.html
@@ -1,3 +1,5 @@
{{ if .Site.Params.content.bio }}
<div class="split-bio">
  <p>{{ .Site.Params.content.bio | markdownify }}</p>
</div>
{{ end }}
layouts/partials/links.html
@@ -2,7 +2,7 @@
  {{ range $key, $value := .Site.Params.links }}
    {{ range $key, $list := $value }}
    {{ if $list.link }}
      <div class="split-list">
        <h3>{{ $list.heading }}</h3>