|
1 | | -# Nix |
2 | | -Norgolith theme for Nix docs |
| 1 | +# Norgowind |
| 2 | +Norgolith <3 TailwindCSS. |
3 | 3 |
|
4 | 4 | ## Installation |
5 | 5 | ```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 | + |
| 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 |
7 | 94 | ``` |
8 | 95 |
|
9 | 96 | ## License |
10 | | -Nix is licensed under MIT license. |
| 97 | +Norgowind is licensed under MIT license. |
0 commit comments