Skip to content

Commit

Permalink
feat: remove slant, add draft, add next and prev
Browse files Browse the repository at this point in the history
  • Loading branch information
shivan-s committed Oct 23, 2024
1 parent 81756d1 commit 409650d
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 30 deletions.
50 changes: 23 additions & 27 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
--primary-color: hsla(195, 100%, 75.1%, 1);
/* #ff9b33; */
--alternative-color: hsla(31, 100%, 60%, 1);
/* #e3e3e3 */
--text-color: hsla(0, 0%, 89%, 1);
/* #d9d7ce */
--text-color: hsla(47, 12%, 83%, 1);
/* #bababa */
--support-color: hsla(0, 0%, 73%, 1);
/* #222222 */
Expand Down Expand Up @@ -191,29 +191,6 @@ section {
}
}

section.posts {
& .page-groupby {
width: 100%;

&:nth-child(odd) {
transform: rotate(-1deg);
}

&:nth-child(even) {
transform: rotate(1deg);
}

&:hover {
transform: rotate(0deg);
}

&:hover a:not(:hover) {
opacity: 0.8;
filter: blur(1px);
}
}
}

section.about {
position: relative;
transform: rotate(-1deg);
Expand All @@ -240,21 +217,34 @@ article {
gap: var(--small-gap);

& header {
transform: rotate(-1deg);
& h1 {
transform: rotate(-1deg);

&:hover {
transform: rotate(0deg);
}
}
}

& footer {
display: flex;
justify-content: start;
align-items: center;
justify-content: space-between;
}
}

div.page-groupby {
display: flex;
width: 100%;
gap: var(--large-gap);
border-top: 1px dotted var(--text-color);
padding: var(--small-gap) 0;

&:hover a:not(:hover) {
opacity: 0.8;
filter: blur(1px);
}

& ul {
width: 100%;

Expand Down Expand Up @@ -357,6 +347,12 @@ body>footer {
pre:has(code) {
border-radius: calc(var(--normal-border-radius) * 2);
padding: calc(var(--small-gap)) calc(var(--small-gap) / 2);
box-shadow: 0px 0px 2pt var(--text-color);
transform: rotate(-1deg);

&:hover {
transform: rotate(0deg);
}
}

code {
Expand Down
29 changes: 29 additions & 0 deletions content/posts/my-second-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "My First Post"
date: 2020-09-03
author: Author Name
summary: Summary
tags: ["lorem"]
draft: false
cover:
image: image.jpg
alt: alt text
caption: caption
relative: false
hidden: false
audio:
file: audio.mp3
caption: audio
hidden: true
---

Here's an example blog post.

Lorem **ipsum** **_dolor_** sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.

Lorem ipsum _dolor_ sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.

```py
def main():
print("Hello World")
```
29 changes: 29 additions & 0 deletions content/posts/my-third-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "My First Post"
date: 2020-09-03
author: Author Name
summary: Summary
tags: ["lorem"]
draft: false
cover:
image: image.jpg
alt: alt text
caption: caption
relative: false
hidden: false
audio:
file: audio.mp3
caption: audio
hidden: true
---

Here's an example blog post.

Lorem **ipsum** **_dolor_** sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.

Lorem ipsum _dolor_ sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.

```py
def main():
print("Hello World")
```
4 changes: 3 additions & 1 deletion layouts/_default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ <h3>{{ .Key }}</h3>
<ul>
{{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}"><span class="post-title">{{ .LinkTitle }}</span>
<a href="{{ .RelPermalink }}"><span class="post-title">{{ if .Draft }}<em title="Draft post">[D]&nbsp;</em>{{
end }}{{
.LinkTitle }}</span>
<small class="post-metadata">
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00"
}} {{ $dateHuman := .Date | time.Format "2 Jan" }}
Expand Down
10 changes: 8 additions & 2 deletions layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<article>
<header>
<h1>{{ .Title }}</h1>
<p>{{ .Summary }}</p>
<small class="post-metadata">
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} {{
$dateHuman := .Date | time.Format "Jan 2, 2006" }}
Expand All @@ -13,6 +12,13 @@ <h1>{{ .Title }}</h1>
</small>
</header>
<div class="content">{{ .Content }}</div>
<footer>{{ partial "tags.html" (dict "taxonomy" "tags" "page" .) }}</footer>
{{ partial "tags.html" (dict "taxonomy" "tags" "page" .) }}
<footer>
{{ if .Prev }} {{ with .Prev }}
<a href="{{ .RelPermalink }}">《 {{ .Title | truncate 10 }}</a>
{{ end }} {{ end }} {{ if .Next }} {{ with .Next }}
<a href="{{ .RelPermalink }}">{{ .Title | truncate 10 }} 》 </a>
{{end }} {{ end }}
</footer>
</article>
{{ end }}

0 comments on commit 409650d

Please sign in to comment.