Browse Source

update hero banner

master
Cian Butler 3 years ago
parent
commit
f716ebb5c5
Signed by: butlerx GPG Key ID: B37CA765BAA89170
2 changed files with 11 additions and 2 deletions
  1. +3
    -0
      config.toml
  2. +8
    -2
      layouts/partials/hero.html

+ 3
- 0
config.toml View File

@@ -2,3 +2,6 @@ baseURL = "https://admin.redbrick.dcu.ie/"
languageCode = "en-us"
title = "Redbrick Admin Blog"
author = "Redbrick Admin"
pygmentsCodeFences = true
[params]
hero = "root@redbrick"

+ 8
- 2
layouts/partials/hero.html View File

@@ -1,6 +1,12 @@
{{ $baseurl := .Site.BaseURL }}
{{- $baseurl := .Site.BaseURL -}}

<h1 class="site-title">
<span class="base05">[</span><span class="base08">r</span><span class="base09">o</span><span class="base0a">o</span><span class="base0b">t</span><span class="base05">]</span><span class="base05"># _</span>
<span class="base05">[</span>
{{- $colour := split "3,4,5,6,7,8,9,a,b,c,d,e" "," -}}
{{- range $index, $element := split .Site.Params.Hero "" -}}
<span class="base0{{- index $colour (mod $index (len $colour)) -}}">{{- $element -}}</span>
{{- end -}}
<span class="base05">]</span><span class="base05">#_</span>
</h1>

<div class="hero-logo">


Loading…
Cancel
Save