Fix blob images using root url instead of baseURL

This commit is contained in:
Joe Hutchinson
2020-10-22 14:16:43 -04:00
parent 57bc14b43b
commit f9d9e62a57
3 changed files with 2 additions and 4 deletions

View File

@@ -24,7 +24,6 @@ p {
flex-direction: column; flex-direction: column;
z-index: -1; z-index: -1;
color: white; color: white;
background-image: url('/img/home-blob.svg');
background-position: center; background-position: center;
background-size: cover; background-size: cover;
} }
@@ -449,7 +448,6 @@ footer {
justify-content: space-evenly; justify-content: space-evenly;
align-items: flex-end; align-items: flex-end;
color: white; color: white;
background-image: url('/img/home-blob-flip.svg');
background-position: 40% 0%; background-position: 40% 0%;
background-size: 50rem; background-size: 50rem;
} }

View File

@@ -5,7 +5,7 @@
{{ partial "nav-bar.html" . }} {{ partial "nav-bar.html" . }}
<main class="card-container side-gutter"> <main class="card-container side-gutter">
{{ if or (not (eq .Description "")) (not (eq .Title "")) -}} {{ if or (not (eq .Description "")) (not (eq .Title "")) -}}
<header class="home-header"> <header class="home-header" style="background-image: url('{{ "img/home-blob.svg" | absURL }}');">
<div class="home-blob-text-container"> <div class="home-blob-text-container">
{{ with .Title }}<h1 class="home-blob-title">{{ . }}</h1>{{ end }} {{ with .Title }}<h1 class="home-blob-title">{{ . }}</h1>{{ end }}
{{ with .Description }}<p class="home-blob-text">{{ . }}</p>{{ end }} {{ with .Description }}<p class="home-blob-text">{{ . }}</p>{{ end }}

View File

@@ -1,4 +1,4 @@
<footer class="side-padding"> <footer class="side-padding" style="background-image: url('{{ "img/home-blob-flip.svg" | absURL }}');">
<a href="{{ $.Site.BaseURL }}" class="footer-link"> <a href="{{ $.Site.BaseURL }}" class="footer-link">
{{ with resources.Get "icons/home-page.png" }} {{ with resources.Get "icons/home-page.png" }}
<img class="footer-icon" src="{{ .Permalink }}"> <img class="footer-icon" src="{{ .Permalink }}">