Skip to content

Commit 01c1920

Browse files
committed
update: stylesheets and layouts
and some misc
1 parent 1aba8a5 commit 01c1920

File tree

8 files changed

+38
-18
lines changed

8 files changed

+38
-18
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
public/
2+
.vscode/
23
*.lock

assets/css/article.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
#article-content {
1313
margin: 1rem 20vw 0 2vw;
14-
overflow: auto;
1514

1615
img {
1716
max-width: 100%;

assets/css/index.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,14 @@
3333

3434
font-size: 1.2rem;
3535
}
36+
37+
#home-toolbar {
38+
margin: 4rem 1rem;
39+
40+
grid-column: 1 / span 2;
41+
justify-self: center;
42+
43+
input[type="button"] {
44+
background-color: #111111;
45+
}
46+
}

assets/css/list.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
margin: 1rem auto;
33
min-height: fit-content;
44
}
5-
5+
#list-title {
6+
padding-left: 1rem;
7+
}
68
#list-articles {
79
padding: 2rem;
810
overflow: auto;

assets/css/main.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ a {
2424
#app-container {
2525
display: flex;
2626
flex-direction: column;
27+
28+
overflow: auto;
2729
}
2830
#app-main {
2931
display: grid;
30-
justify-content: center;
31-
&:has(.home) {
32-
align-content: center;
33-
} align-content: start;
34-
justify-items: center;
32+
grid-template-columns: 30% 20%;
33+
34+
place-content: center;
35+
place-items: center;
3536
}
3637
#app-footer {
3738
justify-self: end;
3839
background-color: rgba(30, 141, 210, 0.343);
39-
width: 100vw;
4040

4141
text-align: center;
4242
margin-top: auto;

content/posts/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
---
22
title: 'posts'
3+
weight: 2
34
---

layouts/_default/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{ define "main" }}
22
<div id="list-navbar">
33
<a href=".."><- back</a>
4-
<h3>posts</h3>
54
</div>
5+
<h2 id="list-title">{{ .Page.Title }}</h2>
66
<ul id="list-articles">
77
{{ range .Pages.ByDate.Reverse }}
88
<li>

layouts/index.html

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
{{ define "main" }}
22
<main id="app-main">
33

4-
<div id="home-bio" class="home">
5-
<h1> ~$ proxyerium</h1>
4+
<div id="home-bio">
5+
<div>
6+
<h1>~$ proxyerium</h1>
7+
</div>
8+
9+
<nav>
10+
{{ range .Page.Params.links }}
11+
<a href="{{ .url }}">{{ .name }}</a>
12+
{{ end }}
13+
</nav>
614
</div>
715

8-
<div id="home-linkbar" class="home">
9-
{{ range $media,$link := .Page.Params.links }}
10-
<a href="{{ $link }}">{{ $media }}</a>
16+
<div id="home-navbar">
17+
{{ range .Site.Sections.ByWeight }}
18+
<a href="{{ .RelPermalink }}">::{{ .Title }} -></a>
1119
{{ end }}
1220
</div>
1321

14-
<div id="home-navbar" class="home">
15-
{{ range .Site.Sections }}
16-
<a href="{{ .RelPermalink }}">:: {{ .Title }} -></a>
17-
{{ end }}
22+
<div id="home-toolbar">
23+
<input id="button-theme" type="button" value="theme">
1824
</div>
1925
</main>
2026

0 commit comments

Comments
 (0)