typst template, more complete hugo template.
This commit is contained in:
parent
6b68c00069
commit
73451d607b
14 changed files with 41 additions and 0 deletions
5
templates/hugo/archetypes/default.md
Normal file
5
templates/hugo/archetypes/default.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
+++
|
||||||
|
date = '{{ .Date }}'
|
||||||
|
draft = true
|
||||||
|
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||||
|
+++
|
0
templates/hugo/assets/.gitkeep
Normal file
0
templates/hugo/assets/.gitkeep
Normal file
0
templates/hugo/content/.gitkeep
Normal file
0
templates/hugo/content/.gitkeep
Normal file
0
templates/hugo/data/.gitkeep
Normal file
0
templates/hugo/data/.gitkeep
Normal file
|
@ -1,3 +1,4 @@
|
||||||
|
languageCode = 'en-us'
|
||||||
baseURL = "https://example.com"
|
baseURL = "https://example.com"
|
||||||
title = "Title"
|
title = "Title"
|
||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
|
|
0
templates/hugo/i18n/.gitkeep
Normal file
0
templates/hugo/i18n/.gitkeep
Normal file
0
templates/hugo/layouts/.gitkeep
Normal file
0
templates/hugo/layouts/.gitkeep
Normal file
0
templates/hugo/static/.gitkeep
Normal file
0
templates/hugo/static/.gitkeep
Normal file
0
templates/hugo/themes/.gitkeep
Normal file
0
templates/hugo/themes/.gitkeep
Normal file
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