added some flake templates.
This commit is contained in:
parent
9068858ee4
commit
fac5efd7b2
17 changed files with 448 additions and 0 deletions
1
templates/hugo/.envrc
Normal file
1
templates/hugo/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake
|
16
templates/hugo/.gitignore
vendored
Normal file
16
templates/hugo/.gitignore
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Generated files by hugo
|
||||
/public/
|
||||
/resources/_gen/
|
||||
/assets/jsconfig.json
|
||||
hugo_stats.json
|
||||
|
||||
# Executable may be added to repository
|
||||
hugo.exe
|
||||
hugo.darwin
|
||||
hugo.linux
|
||||
|
||||
# Temporary lock file while building
|
||||
/.hugo_build.lock
|
||||
|
||||
# for direnv
|
||||
.direnv
|
26
templates/hugo/flake.nix
Normal file
26
templates/hugo/flake.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
description = "hugo development environment";
|
||||
|
||||
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 = [
|
||||
hugo
|
||||
just
|
||||
rsync
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
21
templates/hugo/hugo.toml
Normal file
21
templates/hugo/hugo.toml
Normal file
|
@ -0,0 +1,21 @@
|
|||
baseURL = "https://example.com"
|
||||
title = "Title"
|
||||
enableRobotsTXT = true
|
||||
|
||||
[markup.goldmark.extensions]
|
||||
definitionList = true
|
||||
footnote = true
|
||||
strikethrough = true
|
||||
table = true
|
||||
taskList = true
|
||||
[markup.goldmark.extensions.extras.insert]
|
||||
enable = true
|
||||
[markup.goldmark.extensions.extras.mark]
|
||||
enable = true
|
||||
[markup.goldmark.extensions.extras.subscript]
|
||||
enable = true
|
||||
[markup.goldmark.extensions.extras.superscript]
|
||||
enable = true
|
||||
|
||||
[security]
|
||||
enableInlineShortcodes = true
|
10
templates/hugo/justfile
Normal file
10
templates/hugo/justfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
preview:
|
||||
hugo serve --buildDrafts --buildExpired --buildFuture --navigateToChanged
|
||||
|
||||
USER:='root'
|
||||
HOST:='1.1.1.1'
|
||||
DIR:='/srv/folder'
|
||||
|
||||
deploy:
|
||||
hugo --minify
|
||||
rsync -rvz --delete public/ {{USER}}@{{HOST}}:{{DIR}} # this will delete everything on the server that's not in the local public folder
|
Loading…
Add table
Add a link
Reference in a new issue