Finish basic site

This commit is contained in:
Tyler Perkins
2023-09-05 19:36:06 -04:00
parent 8c6dc0c101
commit 9f9260180c
7 changed files with 55 additions and 60 deletions

View File

@@ -1,10 +1,10 @@
{{ define "main" }}
<div class="page-header dashed-bottom">
<div class="page-header">
<h1 data-value="Posts" class="typewriter scramble"></h1>
<p>Ideas, projects, and other musings.</p>
</div>
{{ range.Pages }}
<article class="light-dashed-bottom">
<article>
<a href="{{ .Permalink }}">
{{ if .Params.banner }}
<div class="post-list-body-container">

View File

@@ -1,5 +1,5 @@
{{ define "main" }}
<div class="page-header dashed-bottom">
<div class="page-header">
<h1 data-value="{{ .Title }}" class="scramble">{{ .Title }}</h1>
<small class="post-list-date">{{ .Date.Format "January 2, 2006" }}</small>
</div>

View File

@@ -10,7 +10,7 @@ window.onload = function() {
let parallax = document.querySelector('.parallax')
let scrollPosition = window.pageYOffset;
let newSize = (document.querySelector('#content').offsetHeight * 0.66);
let newSize = (document.querySelector('#content').offsetHeight * 0.8);
if(newSize < window.innerHeight)
newSize = window.innerHeight;
parallax.style.height = newSize + "px";