Skip to content

Commit e925e7f

Browse files
committed
refactor: simpler website
1 parent 951af61 commit e925e7f

24 files changed

+859
-1735
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
working-directory: ${{ env.BUILD_PATH }}
4242
- name: Build
4343
run: |
44-
pnpm build --base-url "${{ steps.pages.outputs.base_path }}"
44+
pnpm build --pathprefix "${{ steps.pages.outputs.base_path }}"
4545
working-directory: ${{ env.BUILD_PATH }}
4646
- name: Upload artifact
4747
uses: actions/upload-pages-artifact@v3
4848
with:
49-
path: ${{ env.BUILD_PATH }}/dist
49+
path: ${{ env.BUILD_PATH }}/_site
5050

5151
deploy:
5252
environment:

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
node_modules
2-
/dist
1+
_site
2+
/node_modules
33
.DS_Store
4-
/.tmp

.vscode/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"prettier.enable": true,
4+
"emmet.includeLanguages": {
5+
"njk": "html",
6+
"nunjucks": "html"
7+
},
8+
"[html]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode",
10+
"djlint.enableLinting": false
11+
},
12+
"files.associations": {
13+
"*.njk": "html"
14+
}
15+
}

_includes/base-simple-header.njk

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>tinytown.studio</title>
7+
<style>
8+
{% include "../node_modules/shed-css/dist/index.css" %}
9+
</style>
10+
<link rel="stylesheet" href="/main.css" />
11+
<link rel="preconnect" href="https://fonts.googleapis.com" />
12+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
13+
<link
14+
href="https://fonts.googleapis.com/css2?family=Quicksand:[email protected]&display=swap"
15+
rel="stylesheet"
16+
/>
17+
</head>
18+
<body>
19+
<header>
20+
<h1 class="m:0 p:0 m-t:2">tinyTown</h1>
21+
<p class="m:0 p:0 sub-heading subtle">tiny things for the tiny ones</p>
22+
</header>
23+
<div class="m-t:10">
24+
{{ content | safe }}
25+
</div>
26+
</body>
27+
</html>

_includes/base.njk

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>tinytown.studio</title>
7+
<style>
8+
{% include "../node_modules/shed-css/dist/index.css" %}
9+
</style>
10+
<link rel="stylesheet" href="/main.css" />
11+
<link rel="preconnect" href="https://fonts.googleapis.com" />
12+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
13+
<link
14+
href="https://fonts.googleapis.com/css2?family=Quicksand:[email protected]&display=swap"
15+
rel="stylesheet"
16+
/>
17+
</head>
18+
<body>
19+
<header class="hero-header">
20+
<h1 class="m:0 p:0">
21+
<small>tiny</small><span class="t-t:u">town</span>
22+
</h1>
23+
<p class="m:0 p:0 m-t:1 subtle">tiny things for the tiny ones</p>
24+
</header>
25+
<div class="m-t:10">
26+
{{ content | safe }}
27+
</div>
28+
</body>
29+
</html>

about.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: base-simple-header.njk
3+
---
4+
5+
## About
6+
7+
We are a tiny team of developers that like to build stuff that works and is
8+
built with simplicity in mind.
9+
10+
Our primary goal is to help businesses, start-ups and indie developers who are
11+
just starting out and every basic tool out there in the market costs a lot more
12+
than they can afford.
13+
14+
We make all kinds of things but if there's a specific software / service you
15+
wish we made, you can get in touch with us on <[email protected]>

eleventy.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { EleventyHtmlBasePlugin } from '@11ty/eleventy';
2+
3+
export default function (eleventyConfig) {
4+
eleventyConfig.addPassthroughCopy({
5+
'./public/': '/',
6+
});
7+
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
8+
}

index.njk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: base.njk
3+
---
4+
5+
<div class="d:f">
6+
<a class="link w:1of12" href="/about">About</a>
7+
<a class="link w:1of12" href="/products">Products</a>
8+
</div>

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
{
22
"name": "tinytownstudio.github.io",
3-
"version": "0.0.0",
3+
"version": "1.0.0",
44
"main": "index.js",
55
"scripts": {
6-
"dev": "pub ./src ",
7-
"build": "pub ./src ./dist"
6+
"dev": "eleventy --serve",
7+
"build": "eleventy"
88
},
99
"keywords": [],
1010
"author": "",
1111
"license": "ISC",
12-
"devDependencies": {
13-
"@tailwindcss/typography": "^0.5.15",
14-
"@tinytown/pub": "github:tinytownstudio/pub",
15-
"autoprefixer": "^10.4.20",
16-
"marked": "^15.0.3",
17-
"svelte": "^5.8.1",
18-
"tailwindcss": "^3.4.15"
12+
"description": "",
13+
"type": "module",
14+
"dependencies": {
15+
"@11ty/eleventy": "^3.0.0",
16+
"shed-css": "^1.4.0"
1917
}
2018
}

0 commit comments

Comments
 (0)