Add base header footer
This commit is contained in:
parent
0200086036
commit
ebb1b01c3e
6
content/_index.md
Normal file
6
content/_index.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: "Home"
|
||||||
|
date: 2023-06-27
|
||||||
|
---
|
||||||
|
|
||||||
|
Welcome to my site!
|
@ -1,7 +1,16 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<div class="centered top-fade dashed-bottom">
|
||||||
<h1>{{ .Title }}</h1>
|
<div class="intro-content">
|
||||||
<div>
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content-list">
|
||||||
|
<ul>
|
||||||
|
{{ range .Site.RegularPages }}
|
||||||
|
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
BIN
static/css/.styles.css.swp
Normal file
BIN
static/css/.styles.css.swp
Normal file
Binary file not shown.
26
static/css/styles.css
Normal file
26
static/css/styles.css
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
.centered {
|
||||||
|
width: 100vw;
|
||||||
|
max-width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
|
||||||
|
display: grid;
|
||||||
|
align-content: center;
|
||||||
|
justify-content: center;
|
||||||
|
justify-items: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-fade {
|
||||||
|
background: linear-gradient(rgba(11,11,12,1) 0%, rgba(11,11,12,0.9 20%), rgba(0,0,0,0.1), 100%)
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashed-bottom {
|
||||||
|
border-bottom: 5px dashed white;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
overflow-x: hidden;
|
||||||
|
margin: 0;
|
||||||
|
height: 100%;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
}
|
BIN
themes/clortox/layouts/_default/.baseof.html.swp
Normal file
BIN
themes/clortox/layouts/_default/.baseof.html.swp
Normal file
Binary file not shown.
BIN
themes/clortox/layouts/partials/.header.html.swp
Normal file
BIN
themes/clortox/layouts/partials/.header.html.swp
Normal file
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
<head>
|
||||||
|
<link rel="stylesheet" href="{{ "css/clortox.css" | relURL }}">
|
||||||
|
</head>
|
@ -1,4 +1,4 @@
|
|||||||
<header>
|
<header class="navbar sticky">
|
||||||
<a href="{{ "/" | relURL }}">Home</a>
|
<a href="{{ "/" | relURL }}">Home</a>
|
||||||
<a href="{{ "/about/" | relURL }}">About</a>
|
<a href="{{ "/about/" | relURL }}">About</a>
|
||||||
</header>
|
</header>
|
||||||
|
14
themes/clortox/static/css/clortox.css
Normal file
14
themes/clortox/static/css/clortox.css
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
.navbar {
|
||||||
|
margin: 0;
|
||||||
|
background: rgb(11,11,12);
|
||||||
|
height: 3em;
|
||||||
|
border-color: white;
|
||||||
|
border-bottom: 5px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sticky {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user