Skip to content

Commit a0279e1

Browse files
committed
stealing
1 parent cdbb3d9 commit a0279e1

22 files changed

+908
-330
lines changed
File renamed without changes.

flake.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@
2424
in
2525
{
2626
default = pkgs.mkShell {
27-
packages = [
27+
packages = with pkgs; [
28+
rustywind # Organize Tailwind CSS classes
29+
watchman # required by tailwindcss CLI for watch functionality
30+
tailwindcss_4
31+
tailwindcss-language-server
32+
mprocs # Run multiple commands in parallel
33+
2834
self.packages.x86_64-linux.default
2935
(pk "serve" ''lith dev --drafts'')
3036
(pk "serveh" # bash

mprocs.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
procs:
2+
norgolith:
3+
cmd: ["lith", "dev", "--drafts"]
4+
tailwind:
5+
cmd: ["tailwindcss", "-i", "theme/assets/css/tailwind.css", "-o", "theme/assets/css/styles.min.css", "--minify", "--watch"]
6+

norgolith.toml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,21 @@ enable = false
1313
enable = true
1414
description = 'Latest posts'
1515
ttl = 60
16-
image = '/assets/favicon.png'
16+
image = '/assets/favicon.png'
17+
18+
# Extras
19+
[extra]
20+
license = "GPLv3"
21+
favicon_path = '/assets/favicon.png'
22+
footer_author_link = "https://codeberg.org/amartin"
23+
enable_mermaid = true
24+
25+
[extra.nav]
26+
About = '/about'
27+
Posts = '/posts'
28+
Tags = '/categories'
29+
RSS = '/rss.xml'
30+
31+
[extra.footer]
32+
GitHub = 'https://github.com/NTBBloodbath'
33+
Codeberg = 'https://codeberg.org/amartin'

theme/.metadata.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
repo = "github:NTBBloodbath/norgowind"
2+
version = "0.3.0"
3+
pin = false

theme/README.md

Lines changed: 91 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,97 @@
1-
# Nix
2-
Norgolith theme for Nix docs
1+
# Norgowind
2+
Norgolith <3 TailwindCSS.
33

44
## Installation
55
```bash
6-
lith theme pull github:ladas552/Flake-Ocean
6+
lith theme pull github:NTBBloodbath/norgowind
7+
```
8+
9+
> [!IMPORTANT]
10+
>
11+
> Currently, Norgowind requires the latest Norgolith commit in the master branch in order to work.
12+
13+
## Usage
14+
15+
> [!TIP]
16+
>
17+
> As Norgowind has been written using the standalone TailwindCSS CLI, you might want to use it if
18+
> you plan to modify the CSS of the theme by hand. See the [Tailwind Reloading](#tailwind-reloading) section.
19+
20+
### Configuration
21+
Besides the default `norgolith.toml` configuration options, Norgowind theme also requires the following configuration fields to be present:
22+
23+
```toml
24+
# Custom additional configuration options with example values
25+
[extra]
26+
license = "GPLv2" # Optional
27+
favicon_path = "/assets/norgolith.svg" # Fallback to the default norgolith favicon
28+
footer_author_link = "https://github.com/NTBBloodbath" # Optional
29+
enable_mermaid = true # If you want to use Mermaid.js for diagrams and charts
30+
31+
# Link_name = "url"
32+
# e.g.
33+
# blog = "/posts"
34+
# GitHub = "https://github.com/NTBBloodbath/norgolith"
35+
[extra.nav]
36+
37+
# Link_name = "url"
38+
# GitHub = "https://github.com/NTBBloodbath/norgolith"
39+
[extra.footer]
40+
```
41+
42+
### Templates
43+
Norgowind provides the following templates:
44+
```
45+
templates
46+
├── partials
47+
│ ├── footer.html <- Footer content
48+
│ └── nav.html <- Header navbar
49+
├── base.html <- Main template which gets extended by any other template
50+
├── categories.html <- Categories list
51+
├── category.html <- Category posts list
52+
├── default.html <- Default template for all content
53+
├── home.html <- Homepage
54+
├── post.html <- Blog post
55+
└── posts.html <- Posts list
56+
```
57+
58+
In order to use a certain template, use the `layout` metadata field in your content files, e.g. if
59+
you are writing a blog post:
60+
```norg
61+
layout: post
62+
```
63+
64+
> [!TIP]
65+
>
66+
> Remember that Norgolith expects your blog posts to reside in the `content/posts` directory.
67+
68+
### Additional styling
69+
Norgowind adds certain additional styling classes for blockquotes (add them to your blockquotes
70+
using `+html.class` weak carryover tags):
71+
- `tip` (green)
72+
- `note` (blue)
73+
- `important` (violet)
74+
- `warning` (yellow)
75+
- `error` (red)
76+
77+
![blockquotes.png](https://github.com/user-attachments/assets/d45e2e97-5e3b-43cb-8077-a16f737259b9)
78+
79+
### Additional metadata fields
80+
Norgowind also accepts and uses the following opt-in content metadata:
81+
82+
- `truncate`: configures the truncate characters length in the recent post cards.
83+
- `truncate_char`: configures the truncate character, do not define it to use the default ellipsis. Leave it empty to disable the truncate character.
84+
85+
### Tailwind Reloading
86+
By default, Tailwind's configuration in Norgowind will see content files, along with user and theme
87+
templates. Each new class added to content using a weak carryover tag `+html.class` will
88+
automatically be added to the styling file.
89+
90+
It is highly recommended to have the TailwindCSS CLI installed and run the following command during
91+
development:
92+
```sh
93+
tailwindcss -i theme/assets/css/tailwind.css -o theme/assets/css/styles.min.css --watch
794
```
895

996
## License
10-
Nix is licensed under MIT license.
97+
Norgowind is licensed under MIT license.

theme/assets/css/code-blocks.css

Lines changed: 0 additions & 74 deletions
This file was deleted.

theme/assets/css/font.css

Lines changed: 0 additions & 26 deletions
This file was deleted.

theme/assets/css/prism-sweetie.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theme/assets/css/style.css

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)