minor changes

This commit is contained in:
Gabriel 2023-04-07 05:56:53 -04:00
parent 5542fce57f
commit af0216730d
10 changed files with 182 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>{{ partial "head" .}}</head>
<body style="background-image:url({{.Params.background}})">
{{ partial "header" .}}
<main>
<article>
{{ .Content}}
{{ range .Pages }}
{{partial "item" .}}
{{ end }}
</article>
</main>
{{ partial "footer" .}}
</body>
</html>

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>{{ partial "head" .}}</head>
<body>
{{ partial "header" .}}
<main>
{{ .Content}}
</main>
</body>
</html>

15
layouts/index.html Normal file
View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
{{ partial "head" .}}
<body style="background-image:url({{.Params.background}})">
{{ partial "header" .}}
<main>
<article>
{{ .Content}}
</article>
</main>
{{partial "footer" .}}
</body>
</html>

View file

@ -0,0 +1,2 @@
<footer>
</footer>

View file

@ -0,0 +1,6 @@
<head>
<link rel="stylesheet" type="text/css" href="/css/theme.css">
<title>{{.Title}}</title>
<meta charset="utf-8" />
</head>

View file

@ -0,0 +1,6 @@
<header>
<a href="/"><h1>{{.Site.Title}}</h1></a>
<p><i>{{.Description}}</i></p>
{{ partial "nav" .}}
</header>

View file

@ -0,0 +1,6 @@
<div >
<a href="{{.RelPermalink}}" class="item">
<h1>{{.Title}}</h1>
</a>
<i>{{.Params.description}}</i>
</div>

View file

@ -0,0 +1,8 @@
<nav>
{{ range .Site.Sections }}
<a href="{{.Permalink}}">
<span>{{.Title}}</span>
</a>
{{end}}
</nav>

103
static/css/theme.css Normal file
View file

@ -0,0 +1,103 @@
body{
--primary-color:black;
--secondary-color:white;
--accent-color:rgb(3, 58, 3);
--accent-color2:rgb(139, 72, 21);
display:flex;
flex-direction: column;
align-items: center;
margin:0;
background-color: var(--secondary-color);
color:var(--primary-color);
font-size:22px;
background-size:cover;
background-position: center;
}
a{
color:var(--accent-color);
font-weight: bolder;
}
header,footer{
background-color:var(--accent-color);
color:var(--secondary-color);
width:100vw;
display:flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
}
header{
margin-bottom: 1rem;
}
footer{
margin-top:1rem;
}
nav {
display:flex;
flex-direction: row;
align-items: center;
}
nav>*{
margin:1rem;
}
header a,
footer a{
color:var(--secondary-color);
}
main{
min-height: 80vh;
max-width:100vw;
border-radius:3rem;
padding:3rem;
padding-left:0;
padding-right:0;
}
table{
border-spacing: 0;
}
th,td{
border:2px solid var(--accent-color2);
padding:5px;
margin:0;
}
hr{
width:100%;
color:var(--accent-color2);
}
article{
max-width: 100%;
display:flex;
flex-direction: column;
align-items: center;
background-color: var(--secondary-color);
border-radius: 2.5rem;
padding:5rem;
padding-top:0.25rem;
}
code{
font-family: monospace;
color:var(--accent-color);
font-weight: bolder;
}
.item{
display:flex;
flex-direction: column;
align-items: center;
}
main p,
main h3,
main h4,
main table,
main ol,
main ul{
width:100%;
}

3
theme.toml Normal file
View file

@ -0,0 +1,3 @@
name = "hearth"
liscense = ""
description = "hearth"