typst template, more complete hugo template.
This commit is contained in:
parent
6b68c00069
commit
73451d607b
14 changed files with 41 additions and 0 deletions
1
templates/typst/.envrc
Normal file
1
templates/typst/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake
|
4
templates/typst/.gitignore
vendored
Normal file
4
templates/typst/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# direnv
|
||||
.direnv
|
||||
|
||||
*.pdf
|
25
templates/typst/flake.nix
Normal file
25
templates/typst/flake.nix
Normal 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
5
templates/typst/justfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
preview:
|
||||
typst watch main.typ
|
||||
|
||||
compile:
|
||||
typst compile main.typ
|
0
templates/typst/main.typ
Normal file
0
templates/typst/main.typ
Normal file
Loading…
Add table
Add a link
Reference in a new issue