Skip to content

Commit a778f4c

Browse files
committed
weird issue
1 parent 0142cd2 commit a778f4c

File tree

6 files changed

+44
-40
lines changed

6 files changed

+44
-40
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ description: >-
22
Random thoughts about my passions.
33
44
sass:
5-
style: expanded
5+
style: compact
66

77
theme: null
88
url: "henrylang.net"

_includes/footer.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<footer>
2-
<p>henrylang.net</p>
3-
<a href="/">index</a>
4-
<a href="/about">about</a>
5-
<a href="/posts">posts</a>
2+
<p>2021, Henry Langmack</p>
3+
<a href="https://github.com/henry-lang">github</a>
64
</footer>

_includes/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<p>henrylang.net</p>
33
<a href="/">index</a>
44
<a href="/about">about</a>
5-
<a href="/posts">posts</a>
5+
<a href="/posts">posts</a>
66
</nav>

_layouts/default.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
<meta charset="UTF-8">
88
<meta http-equiv="X-UA-Compatible" content="IE=edge">
99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
10-
<link rel="preload" href="./assets/fonts/iosevka-regular.woff2" as="font" crossorigin>
11-
<link rel="stylesheet" href="./assets/styles/style.css">
10+
<link rel="preload" href="/assets/fonts/iosevka-regular.woff2" as="font" crossorigin>
11+
<link rel="stylesheet" href="/assets/styles/style.css">
1212
</head>
1313
<body>
1414
<div class="wrapper">
1515
{% include nav.html %}
16-
{{ content }}
16+
<div class="content">
17+
{{ content }}
18+
</div>
1719
{% include footer.html %}
1820
</div>
1921
</body>

assets/styles/style.sass

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
66
// font-display: swap
77
// src: url(../fonts/iosevka-regular.ttf)
88
9-
@keyframes fadein
10-
from
11-
opacity: 0
12-
transform: translateX(20px)
13-
14-
to
15-
opacity: 100%
16-
transform: translateX(0px)
17-
189
$font: Iosevka
1910
$backup-font: Arial
2011

@@ -24,36 +15,41 @@ $mid: #424c57
2415
$dark: #21272f
2516
$very-dark: #1b2129
2617

27-
h1, a, p
28-
color: $text
29-
font-family: $font, $backup-font
30-
31-
nav
32-
padding-top: 0.25rem
33-
border-bottom: 1px solid $mid
18+
@keyframes fadein
19+
from
20+
opacity: 0
21+
to
22+
opacity: 1
3423

24+
@mixin bar-links
3525
>
26+
p::after
27+
content: " | "
28+
3629
*
3730
display: inline-block
3831
font-weight: bold
3932
a
4033
color: $accent
4134
padding-right: 0.15rem
4235

36+
h1, a, p
37+
color: $text
38+
font-family: $font, $backup-font
39+
40+
nav
41+
@include bar-links
42+
43+
padding-top: 0.25rem
44+
border-bottom: 1px solid $mid
45+
4346
footer
44-
// position: relative
47+
@include bar-links
48+
4549
margin-top: -0.25rem
4650
width: 100%
4751
border-top: 1px solid $mid
4852

49-
>
50-
*
51-
display: inline-block
52-
font-weight: bold
53-
a
54-
color: $accent
55-
padding-right: 0.15rem
56-
5753
body
5854
padding: 0
5955
margin: 0
@@ -73,8 +69,4 @@ body
7369
margin: auto
7470
width: 80vw
7571
min-height: 100vh
76-
// animation: fadein 0.3s 0s
77-
78-
// >
79-
// *
80-
// animation: fadein 0.35s
72+
animation: fadein 0.35s

posts.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
---
22
layout: default
3-
---
3+
---
4+
5+
{% for post in site.posts %}
6+
7+
<div class="post">
8+
<a href="{{ site.baseurl }}{{ post.url }}">
9+
<h2>{{ post.title }}</h2>
10+
</a>
11+
<p>{{ post.date | date_to_string: "ordinal", "US" }}</p>
12+
<p>{{ post.excerpt | truncatewords: 35 }}</p>
13+
</div>
14+
15+
{% endfor %}

0 commit comments

Comments
 (0)