summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/format.yaml4
-rw-r--r--src/_includes/components/footer.njk2
-rw-r--r--src/_includes/components/headerbar.njk8
-rw-r--r--src/_includes/components/postlist.njk17
-rw-r--r--src/_includes/layouts/base.njk23
-rw-r--r--src/_includes/layouts/index.njk195
-rw-r--r--src/_includes/layouts/page.njk4
-rw-r--r--src/blog/index.njk4
-rw-r--r--src/lul.njk2
9 files changed, 198 insertions, 61 deletions
diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml
index 4b96fb3..aeb8118 100644
--- a/.github/workflows/format.yaml
+++ b/.github/workflows/format.yaml
@@ -22,7 +22,9 @@ jobs:
npm install -g prettier
- name: format
- run: prettier --editorconfig -w .
+ run: |
+ prettier --editorconfig -w --parser html ./**/*.njk
+ prettier --editorconfig -w .
- name: add and commit
uses: EndBug/add-and-commit@v9
diff --git a/src/_includes/components/footer.njk b/src/_includes/components/footer.njk
index f9aacaa..2d88e70 100644
--- a/src/_includes/components/footer.njk
+++ b/src/_includes/components/footer.njk
@@ -1,6 +1,6 @@
<footer>
<div id="commitText">
<a href="https://github.com/getchoo/getchoo.github.io">source</a>
- commit: {{ gitRevision }}
+ commit: {{ gitRevision }}
</div>
</footer>
diff --git a/src/_includes/components/headerbar.njk b/src/_includes/components/headerbar.njk
index 21fa357..0edc922 100644
--- a/src/_includes/components/headerbar.njk
+++ b/src/_includes/components/headerbar.njk
@@ -1,11 +1,7 @@
<div class="headerbar">
<div id="links" class="flex gap-3">
- <button onclick="window.location.href='/'">
- home
- </button>
- <button onclick="window.location.href='/blog'">
- blog
- </button>
+ <button onclick="window.location.href='/'">home</button>
+ <button onclick="window.location.href='/blog'">blog</button>
<button onclick="window.location.href='https://github.com/getchoo'">
github
</button>
diff --git a/src/_includes/components/postlist.njk b/src/_includes/components/postlist.njk
index d1fdb22..f7d2b95 100644
--- a/src/_includes/components/postlist.njk
+++ b/src/_includes/components/postlist.njk
@@ -1,14 +1,17 @@
<div>
<ul class="postList">
{% for post in postList %}
- <li>
- <a href="{{ post.data.url }}">{{ post.data.title }}</a>
- <time class="post-date" datetime="{{ post.data.date | date('DATETIME') }}">
- {{ post.data.date | date('HUMAN_DATE') }}
- </time>
- </li>
+ <li>
+ <a href="{{ post.data.url }}">{{ post.data.title }}</a>
+ <time
+ class="post-date"
+ datetime="{{ post.data.date | date('DATETIME') }}"
+ >
+ {{ post.data.date | date('HUMAN_DATE') }}
+ </time>
+ </li>
{% else %}
- <p>no posts yet! 🥸</p>
+ <p>no posts yet! 🥸</p>
{% endfor %}
</ul>
</div>
diff --git a/src/_includes/layouts/base.njk b/src/_includes/layouts/base.njk
index 027dae0..51f160b 100644
--- a/src/_includes/layouts/base.njk
+++ b/src/_includes/layouts/base.njk
@@ -1,24 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="utf-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>{{ title }}</title>
- <meta name="description" content="{{ description }}"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <link rel="stylesheet" href="/guzzle.css"/>
-
+ <meta name="description" content="{{ description }}" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <link rel="stylesheet" href="/guzzle.css" />
</head>
<body>
- {% block headerbar %}
- {% include "components/headerbar.njk" %}
- {% endblock %}
-
- {{ content | safe }}
-
- {% block footer %}
- {% include "components/footer.njk" %}
- {% endblock %}
+ {% block headerbar %} {% include "components/headerbar.njk" %} {%
+ endblock %} {{ content | safe }} {% block footer %} {% include
+ "components/footer.njk" %} {% endblock %}
</body>
</html>
diff --git a/src/_includes/layouts/index.njk b/src/_includes/layouts/index.njk
index 6eb1fe7..b2373e4 100644
--- a/src/_includes/layouts/index.njk
+++ b/src/_includes/layouts/index.njk
@@ -3,46 +3,191 @@ layout: "layouts/base.njk"
---
<div class="container">
- <div class="content">
- {{ content | safe }}
- </div>
+ <div class="content">{{ content | safe }}</div>
<div id="gifs">
<div id="gif">
- <img src="/imgs/gifs/legalize.gif" width="88" height="31" loading="lazy" decoding="async" alt="legalize now!"/>
- <img src="/imgs/gifs/acab.gif" width="88" height="31" loading="lazy" decoding="async" alt="acab"/>
+ <img
+ src="/imgs/gifs/legalize.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="legalize now!"
+ />
+ <img
+ src="/imgs/gifs/acab.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="acab"
+ />
<a href="https://github.com/sakecode">
<!--
Powered by NixOS © 2023 by Sake is licensed under (CC BY-NC-SA 4.0)
To view the source visit: https://github.com/sakecode/Sake-s-SVGs
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/
-->
- <img src="/imgs/gifs/poweredbynix.svg" width="88" height="31" loading="lazy" decoding="async" alt="powered by fedora"/>
+ <img
+ src="/imgs/gifs/poweredbynix.svg"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="powered by fedora"
+ />
</a>
- <img src="/imgs/gifs/capitalism.gif" width="88" height="31" loading="lazy" decoding="async" alt="let's crush capitalism!"/>
+ <img
+ src="/imgs/gifs/capitalism.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="let's crush capitalism!"
+ />
</div>
<div id="gif">
- <img src="/imgs/gifs/anybrowser.gif" width="88" height="31" loading="lazy" decoding="async" alt="best viewed with any browser"/>
- <img src="/imgs/gifs/weezer.gif" width="88" height="31" loading="lazy" decoding="async" alt="weezer fan"/>
+ <img
+ src="/imgs/gifs/anybrowser.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="best viewed with any browser"
+ />
+ <img
+ src="/imgs/gifs/weezer.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="weezer fan"
+ />
<a href="https://dnsense.pub/">
- <img src="/imgs/gifs/steam.gif" width="88" height="31" loading="lazy" decoding="async" alt="play with steam"/>
+ <img
+ src="/imgs/gifs/steam.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="play with steam"
+ />
</a>
- <img src="/imgs/gifs/vi.gif" width="88" height="31" loading="lazy" decoding="async" alt="made with vi"/>
- <img src="/imgs/gifs/pride.gif" width="88" height="31" loading="lazy" decoding="async" alt="pride"/>
- <img src="/imgs/gifs/imagine.gif" width="88" height="31" loading="lazy" decoding="async" alt="imagination"/>
+ <img
+ src="/imgs/gifs/vi.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="made with vi"
+ />
+ <img
+ src="/imgs/gifs/pride.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="pride"
+ />
+ <img
+ src="/imgs/gifs/imagine.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="imagination"
+ />
</div>
<div id="gif">
- <img src="/imgs/gifs/moz.gif" width="88" height="31" loading="lazy" decoding="async" alt="mozilla is cool"/>
- <img src="/imgs/gifs/free.gif" width="88" height="31" loading="lazy" decoding="async" alt="completely free software"/>
- <img src="/imgs/gifs/gimp.gif" width="88" height="31" loading="lazy" decoding="async" alt="graphics by gimp"/>
- <img src="/imgs/gifs/explorer.gif" width="88" height="31" loading="lazy" decoding="async" alt="marijuana mind explorer"/>
- <img src="/imgs/gifs/jsfree.gif" width="88" height="31" loading="lazy" decoding="async" alt="javascript free"/>
- <img src="/imgs/gifs/web3.gif" width="88" height="31" loading="lazy" decoding="async" alt="keep the web free! say no to web3!"/>
- <img src="/imgs/gifs/tired.gif" width="88" height="31" loading="lazy" decoding="async" alt="tired"/>
- <img src="/imgs/gifs/arnold.gif" width="88" height="31" loading="lazy" decoding="async" alt="hey arnold!"/>
- <img src="/imgs/gifs/bob.gif" width="88" height="31" loading="lazy" decoding="async" alt="powered by bob"/>
- <img src="/imgs/gifs/counterstrike.gif" width="88" height="31" loading="lazy" decoding="async" alt="counter-strike player"/>
- <img src="/imgs/gifs/chris.gif" width="88" height="31" loading="lazy" decoding="async" alt="chris troll" id="chris_gif"/>
+ <img
+ src="/imgs/gifs/moz.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="mozilla is cool"
+ />
+ <img
+ src="/imgs/gifs/free.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="completely free software"
+ />
+ <img
+ src="/imgs/gifs/gimp.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="graphics by gimp"
+ />
+ <img
+ src="/imgs/gifs/explorer.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="marijuana mind explorer"
+ />
+ <img
+ src="/imgs/gifs/jsfree.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="javascript free"
+ />
+ <img
+ src="/imgs/gifs/web3.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="keep the web free! say no to web3!"
+ />
+ <img
+ src="/imgs/gifs/tired.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="tired"
+ />
+ <img
+ src="/imgs/gifs/arnold.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="hey arnold!"
+ />
+ <img
+ src="/imgs/gifs/bob.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="powered by bob"
+ />
+ <img
+ src="/imgs/gifs/counterstrike.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="counter-strike player"
+ />
+ <img
+ src="/imgs/gifs/chris.gif"
+ width="88"
+ height="31"
+ loading="lazy"
+ decoding="async"
+ alt="chris troll"
+ id="chris_gif"
+ />
</div>
</div>
</div>
-
diff --git a/src/_includes/layouts/page.njk b/src/_includes/layouts/page.njk
index ed02c69..d355024 100644
--- a/src/_includes/layouts/page.njk
+++ b/src/_includes/layouts/page.njk
@@ -3,7 +3,5 @@ layout: layouts/base.njk
---
<div class="container">
- <div class="content" id="blogpost">
- {{ content | safe }}
- </div>
+ <div class="content" id="blogpost">{{ content | safe }}</div>
</div>
diff --git a/src/blog/index.njk b/src/blog/index.njk
index 2a2cc51..7922a48 100644
--- a/src/blog/index.njk
+++ b/src/blog/index.njk
@@ -4,5 +4,5 @@ title: "getchoo's blog"
description: "getchoo's blog posts"
---
-{% set postList = search.pages("type=posts", "date=desc", 3) %}
-{% include "components/postlist.njk" %}
+{% set postList = search.pages("type=posts", "date=desc", 3) %} {% include
+"components/postlist.njk" %}
diff --git a/src/lul.njk b/src/lul.njk
index 2030fc7..c7c70e2 100644
--- a/src/lul.njk
+++ b/src/lul.njk
@@ -6,6 +6,6 @@ layout: layouts/base.njk
<div id="vidya">
<video width="1280" height="720" controls autoplay muted>
- <source src="/files/rickroll.mp4" type="video/mp4"/>
+ <source src="/files/rickroll.mp4" type="video/mp4" />
</video>
</div>