Skip to content

Commit

Permalink
Port to hinoki
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte committed Apr 20, 2024
1 parent efd920e commit c11e406
Show file tree
Hide file tree
Showing 39 changed files with 782 additions and 49 deletions.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"samuelcolvin.jinjahtml"
]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"files.associations": {
"*.html": "tera"
"**/templates/*.html": "jinja-html"
}
}
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# blog.turbo.fish

[![builds.sr.ht status](https://builds.sr.ht/~jplatte/blog.turbo.fish.svg)](https://builds.sr.ht/~jplatte/blog.turbo.fish?)

This repository contains the sources for my blog at <https://blog.turbo.fish/>.

To build it, [zola][] needs to be installed.
This branch contains a work-in-progress port to my own static site generator,
hinoki. It is not yet publically available.

## Build instructions

[zola]: https://www.getzola.org/documentation/getting-started/installation/
```sh
hinoki build
# hinoki also has no dev server yet
(pushd public; python -m http.server)
```
27 changes: 14 additions & 13 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
title = "blog.turbo.fish"
base_url = "https://blog.turbo.fish"
description = "Jonas Platte's personal blog"

generate_feed = true
feed_filename = "rss.xml"

compile_sass = false
build_search_index = false

[markdown]
highlight_code = true
highlight_theme = "visual-studio-dark"
output_dir = "public"

[content."blog/*.md"]
template = "article.html"
process = "markdown_to_html"
date = "{source_file_stem|date_prefix}"
path = "/{source_file_stem|strip_date_prefix}/index.html"

#title = "blog.turbo.fish"
#base_url = "https://blog.turbo.fish"
#description = "Jonas Platte's personal blog"
#
#generate_feed = true
#feed_filename = "rss.xml"

[extra]
about = """
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions content/_index.md

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Hello, dear reader! Today, I am excited to announce

## [caniuse.rs](https://caniuse.rs)

![screenshot of caniuse.rs](screenshot.png)
![screenshot of caniuse.rs](/img/caniuse_rs.png)

A website I created, which, in contrast to [turbo.fish](https://turbo.fish/),
has a practical use: It allows you to quickly find out which version of Rust
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions content/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
+++
template = "index.html"
+++
14 changes: 0 additions & 14 deletions templates/index.html

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c11e406

Please sign in to comment.