typst template, more complete hugo template.

This commit is contained in:
Gabe Venberg 2024-12-04 00:54:27 +01:00
parent 6b68c00069
commit 73451d607b
14 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,5 @@
+++
date = '{{ .Date }}'
draft = true
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
+++

View file

View file

View file

View file

@ -1,3 +1,4 @@
languageCode = 'en-us'
baseURL = "https://example.com"
title = "Title"
enableRobotsTXT = true

View file

View file

View file

View file

1
templates/typst/.envrc Normal file
View file

@ -0,0 +1 @@
use flake

4
templates/typst/.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
# direnv
.direnv
*.pdf

25
templates/typst/flake.nix Normal file
View file

@ -0,0 +1,25 @@
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
in
with pkgs; {
devShells.default = mkShell {
buildInputs = [
typst
just
];
};
});
}

5
templates/typst/justfile Normal file
View file

@ -0,0 +1,5 @@
preview:
typst watch main.typ
compile:
typst compile main.typ

0
templates/typst/main.typ Normal file
View file