-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: styling images appropriately * feat: also adds linting * chore: fix lint * chore: improve the styling
- Loading branch information
Showing
23 changed files
with
846 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,7 @@ hugo.linux | |
|
||
# Temporary lock file while building | ||
/.hugo_build.lock | ||
|
||
/node_modules | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm exec lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Ignore artifacts: | ||
build | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"plugins": ["prettier-plugin-go-template"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.html"], | ||
"options": { | ||
"parser": "go-template" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
console.log('This site was generated by Hugo.'); | ||
console.log("This site was generated by Hugo."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
title: Test Post | ||
date: 1980-01-02 | ||
author: Test Author | ||
summary: Test Summary | ||
tags: ["test", "lorem"] | ||
draft: true | ||
cover: | ||
image: test.jpg | ||
alt: test | ||
caption: test caption | ||
relative: false | ||
hidden: true | ||
audio: | ||
src: audio.mp3 | ||
caption: caption | ||
hidden: true | ||
--- | ||
|
||
Lorem ipsum dolor sit amet, qui minim labore adipisicing minim sint cillum sint consectetur cupidatat. | ||
|
||
![Test page](./testing.jpg) | ||
|
||
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 | ||
# Lorem ipsum dolor sit amet, qui minim labore adipisicing minim sint cillum sint consectetur cupidatat. Lorem ipsum dolor sit amet, qui minim labore adipisicing minim sint cillum sint consectetur cupidatat. | ||
|
||
print("Hello world") | ||
``` | ||
|
||
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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
<!doctype html> | ||
<html lang="{{ site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}"> | ||
|
||
<head> | ||
{{ partial "head.html" . }} | ||
</head> | ||
|
||
<body> | ||
<header>{{ partial "header.html" . }}</header> | ||
<main>{{ block "main" . }}{{ end }}</main> | ||
<footer>{{ partial "footer.html" . }}</footer> | ||
</body> | ||
<html | ||
lang="{{ site.Language.LanguageCode }}" | ||
dir="{{ or site.Language.LanguageDirection `ltr` }}" | ||
> | ||
<head> | ||
{{ partial "head.html" . }} | ||
</head> | ||
|
||
<body> | ||
<header>{{ partial "header.html" . }}</header> | ||
<main>{{ block "main" . }}{{ end }}</main> | ||
<footer>{{ partial "footer.html" . }}</footer> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
{{ define "main" }} {{ with .GetPage "About" }} | ||
<h1 hidden>{{ .Page.Title }}</h1> | ||
<section class="about"> | ||
<header> | ||
<a href="{{ .RelPermalink }}"> | ||
<h2>About</h2> | ||
</a> | ||
</header> | ||
<p>{{ truncate 128 .Content }}</p> | ||
<footer> | ||
<a href="{{ .RelPermalink }}">Read more...</a> | ||
</footer> | ||
</section> | ||
{{ end }} | ||
<section class="posts"> | ||
<header> | ||
<h2>Posts</h2> | ||
</header> | ||
{{ partial "posts-list.html" . }} | ||
<footer /> | ||
</section> | ||
{{ define "main" }} | ||
{{ with .GetPage "About" }} | ||
<h1 hidden>{{ .Page.Title }}</h1> | ||
<section class="about"> | ||
<header> | ||
<a href="{{ .RelPermalink }}"> | ||
<h2>About</h2> | ||
</a> | ||
</header> | ||
<p>{{ truncate 128 .Content }}</p> | ||
<footer> | ||
<a href="{{ .RelPermalink }}">Read more...</a> | ||
</footer> | ||
</section> | ||
{{ end }} | ||
<section class="posts"> | ||
<header> | ||
<h2>Posts</h2> | ||
</header> | ||
{{ partial "posts-list.html" . }} | ||
<footer /> | ||
</section> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{{ define "main" }} | ||
<header> | ||
<h2>{{ .Title }}</h2> | ||
</header> | ||
<header> | ||
<h2>{{ .Title }}</h2> | ||
</header> | ||
|
||
{{ partial "posts-list.html" . }} {{ end }} | ||
{{ partial "posts-list.html" . }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{{ define "main" }} | ||
<article> | ||
<header> | ||
<h2>{{ .Title }}</h2> | ||
</header> | ||
<div class="content">{{ .Content }}</div> | ||
</article> | ||
<article> | ||
<header> | ||
<h2>{{ .Title }}</h2> | ||
</header> | ||
<div class="content">{{ .Content }}</div> | ||
</article> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{{ define "main" }} | ||
<h1>{{ .Title }}</h1> | ||
{{ .Content }} {{ range .Pages }} | ||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> | ||
{{ end }} {{ end }} | ||
<h1>{{ .Title }}</h1> | ||
{{ .Content }} | ||
{{ range .Pages }} | ||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
<p> | ||
Made with <span title="Love">💗</span> by | ||
<a title="{{ .Site.Params.author.email }}" href="mailto:{{ .Site.Params.author.email }}">{{ .Site.Params.author.name | ||
}}</a> | ||
</p> | ||
<p> | ||
<span title="Powered">⚡</span> by | ||
<a title="Hugo" href="https://gohugo.io">Hugo</a> in | ||
<time datetime='{{ dateFormat "2006" now | ||
}}'>{{ dateFormat "2006" now }}</time> | ||
</p> | ||
<p><a title="Back to top" href="#top">Back to Top</a></p> | ||
<div> | ||
<p> | ||
Made with <span title="Love">💗</span> by | ||
<a | ||
title="{{ .Site.Params.author.email }}" | ||
href="mailto:{{ .Site.Params.author.email }}" | ||
>{{ .Site.Params.author.name }}</a | ||
> | ||
</p> | ||
<p> | ||
<span title="Powered">⚡</span> by | ||
<a title="Hugo" href="https://gohugo.io">Hugo</a> in | ||
<time datetime="{{ dateFormat " 2006" now }}" | ||
>{{ dateFormat "2006" now }}</time | ||
> | ||
</p> | ||
<p> | ||
<a title="Back to top" href="#top">Back to Top</a> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<title> | ||
{{ if .IsHome }} | ||
{{ site.Title }} | ||
{{ else }} | ||
{{ printf "%s | %s" .Title site.Title }} | ||
{{ end }} | ||
</title> | ||
{{ partialCached "head/css.html" . }} | ||
{{ partialCached "head/js.html" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
{{- with resources.Get "css/main.css" }} | ||
{{- if eq hugo.Environment "development" }} | ||
<link rel="stylesheet" href="{{ .RelPermalink }}"> | ||
<link rel="stylesheet" href="{{ .RelPermalink }}" /> | ||
{{- else }} | ||
{{- with . | minify | fingerprint }} | ||
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> | ||
<link | ||
rel="stylesheet" | ||
href="{{ .RelPermalink }}" | ||
integrity="{{ .Data.Integrity }}" | ||
crossorigin="anonymous" | ||
/> | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
{{ $pages := where site.RegularPages "Type" "posts" }} | ||
{{ range $pages.GroupByPublishDate "2006" }} | ||
<div class="posts-groupby"> | ||
<h3>{{ .Key }}</h3> | ||
<ul> | ||
{{ range .Pages }} | ||
<li> | ||
<a href="{{ .RelPermalink }}"><span title={{ .LinkTitle }} class="post-title">{{ if .Draft }}<em | ||
title="Draft post">[D] </em>{{ | ||
end }}{{ | ||
.LinkTitle | truncate 128 }}</span> | ||
<small class="post-metadata"> | ||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" | ||
}} {{ $dateHuman := .Date | time.Format "2 Jan" }} | ||
<span title={{ .Date | time.Format "January 2, 2006" }}><time datetime="{{ $dateMachine }}">{{ $dateHuman | ||
}}</time></span> | ||
<span title="{{ .WordCount }} words"> | ||
{{ .ReadingTime }} min</span></small></a> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
</div> | ||
<div class="posts-groupby"> | ||
<h3>{{ .Key }}</h3> | ||
<ul> | ||
{{ range .Pages }} | ||
<li> | ||
<a href="{{ .RelPermalink }}" | ||
><span title="{{ .LinkTitle }}" class="post-title" | ||
>{{ if .Draft }} | ||
<em title="Draft post">[D] </em> | ||
{{ end }}{{ .LinkTitle | truncate 128 }}</span | ||
> | ||
<small class="post-metadata"> | ||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} | ||
{{ $dateHuman := .Date | time.Format "2 Jan" }} | ||
<span title="{{ .Date | time.Format "January 2, 2006" }}" | ||
><time datetime="{{ $dateMachine }}" | ||
>{{ $dateHuman }}</time | ||
></span | ||
> | ||
<span title="{{ .WordCount }} words"> | ||
{{ .ReadingTime }} min</span | ||
></small | ||
></a | ||
> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
</div> | ||
{{ end }} |
Oops, something went wrong.