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

Christian Mendoza
20.28.2017 575ab65774651616fd95b7a83ca680521185fcfc
Update template
5 files modified
25 ■■■■ changed files
layouts/index.html 4 ●●●● patch | view | raw | blame | history
layouts/partials/bio.html 2 ●●● patch | view | raw | blame | history
layouts/partials/head.html 7 ●●●●● patch | view | raw | blame | history
layouts/partials/intro.html 4 ●●●● patch | view | raw | blame | history
layouts/partials/video.html 8 ●●●● patch | view | raw | blame | history
layouts/index.html
@@ -10,14 +10,14 @@
  <div class="fs-split">
    <!-- Image -->
    {{ if .Site.Params.split.image.enable }}
    {{ if .Site.Params.visual.image.enable }}
    
      <div class="split-image">
      </div>
    <!-- Video -->
    {{ else if .Site.Params.split.video.enable }}
    {{ else if .Site.Params.visual.video.enable }}
      {{ partial "video" . }}
layouts/partials/bio.html
@@ -1,3 +1,3 @@
<div class="split-bio">
  <p>{{ .Site.Params.bio | markdownify }}</p>
  <p>{{ .Site.Params.content.bio | markdownify }}</p>
</div>
layouts/partials/head.html
@@ -3,6 +3,7 @@
<!-- SEO -->
<title>{{ .Title }}</title>
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}" />{{ end }}
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}" />{{ end }}
<meta name="robots" content="index, follow" />
<meta name="referrer" content="always" />
@@ -25,10 +26,10 @@
<meta name="viewport" content="width=device-width,initial-scale=1" />
<!-- Image Styles -->
{{ if .Site.Params.split.image.enable }}
{{ if .Site.Params.visual.image.enable }}
  <style type="text/css">
  {{ if .Site.Params.split.image.file }}
    .fs-split .split-image { background-image: url("{{ .Site.Params.split.image.file }}"); background-position: {{ if .Site.Params.split.image.position }}{{ .Site.Params.split.image.position }}{{ else }}center center{{ end }}; }
  {{ if .Site.Params.visual.image.file }}
    .fs-split .split-image { background-image: url("{{ .Site.Params.visual.image.file }}"); background-position: {{ if .Site.Params.visual.image.position }}{{ .Site.Params.visual.image.position }}{{ else }}center center{{ end }}; }
  {{ end }}
  </style>
{{ end }}
layouts/partials/intro.html
@@ -1,4 +1,4 @@
<div class="split-intro">
  <h1>{{ .Site.Params.name }}</h1>
  <span class="tagline">{{ .Site.Params.tagline }}</span>
  <h1>{{ .Site.Params.content.name }}</h1>
  <span class="tagline">{{ .Site.Params.content.tagline }}</span>
</div>
layouts/partials/video.html
@@ -1,18 +1,18 @@
<div class="split-image split-video">
  <!-- YouTube Video -->
  {{ if .Site.Params.split.video.youtubeId }}
  {{ if .Site.Params.visual.video.youtubeId }}
    <div class="video-wrap">
      <div class="video-container">
        <iframe class="video-content" src="https://www.youtube.com/embed/{{ .Site.Params.split.video.youtubeId }}?rel=0&amp;controls=0&amp;showinfo=0&amp;loop=1&amp;playlist={{ .Site.Params.split.video.youtubeId }}&amp;autoplay=1{{ if .Site.Params.split.video.mute }}&amp;mute=1{{ end }}" frameborder="0" allowfullscreen></iframe>
        <iframe class="video-content" src="https://www.youtube.com/embed/{{ .Site.Params.visual.video.youtubeId }}?rel=0&amp;controls=0&amp;showinfo=0&amp;loop=1&amp;playlist={{ .Site.Params.visual.video.youtubeId }}&amp;autoplay=1{{ if .Site.Params.visual.video.mute }}&amp;mute=1{{ end }}" frameborder="0" allowfullscreen></iframe>
      </div>
    </div>
  <!-- Self-Hosted Video -->
  {{ else if .Site.Params.split.video.file }}
  {{ else if .Site.Params.visual.video.file }}
    <video class="video" src="{{ .Site.Params.split.video.file }}" loop autoplay{{ if .Site.Params.split.video.mute }} muted{{ end }}></video>
    <video class="video" src="{{ .Site.Params.visual.video.file }}" loop autoplay{{ if .Site.Params.visual.video.mute }} muted{{ end }}></video>
  {{ end }}