Fixing bg image on all pages issue

This commit is contained in:
shockrah 2023-10-18 15:18:29 -07:00
parent 961c976900
commit 783191b0a4
2 changed files with 10 additions and 4 deletions

View File

@ -1,9 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en-us"> <html lang="en-us">
{{ partial "head.html" . }} {{ partial "head.html" . }}
{{ if eq .Permalink .Site.BaseURL }}
<body class="main-page">
{{ else }}
<body> <body>
{{ end }}
<div class="banner-container"> <div class="banner-container">
<!-- <img class="bg-img fade-in-image" src="/img/bg.png"> -->
<div class="headline"> <div class="headline">
<h1 class="headline-title reveal-text">{{.Site.Title}}</h1> <h1 class="headline-title reveal-text">{{.Site.Title}}</h1>
<h5 class="reveal-text">{{.Site.Params.Description}}</h5> <h5 class="reveal-text">{{.Site.Params.Description}}</h5>

View File

@ -1,9 +1,12 @@
body { body {
/* background-color: #212121; */ background-color: #212121;
background-image: url("/img/bg.png");
font-family: 'Courier New', monospace; font-family: 'Courier New', monospace;
color: #dcdcdc; color: #dcdcdc;
} }
.main-page {
background-image: url("/img/bg.png");
}
html { html {
scroll-behavior: smooth; scroll-behavior: smooth;
display: flex; display: flex;