This commit is contained in:
2025-04-07 00:47:47 +02:00
parent a820788415
commit 4a08fd80aa
3 changed files with 122 additions and 0 deletions

8
deploy Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
USER=pleb
HOST=bob
DIR=/var/www/resumes/julien/ # the directory where your website files should go
hugo && rsync -avz --rsync-path='sudo rsync' --progress -e ssh --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public folder
exit 0

113
hokus.toml Normal file
View File

@@ -0,0 +1,113 @@
hugover = "0.69.0"
[[serve]]
key = "default"
config = "config.toml"
[[build]]
key = "default"
config = "config.toml"
[[collections]]
key = "posts"
title = "Posts"
folder = "content/posts/"
extension = "md"
dataformat = "toml"
itemtitle = "Post"
[[collections.fields]]
key = "info"
type = "info"
size = "small"
content = "# Info\nYou can write custom instructions here."
theme = "gray"
[[collections.fields]]
key = "title"
title = "Title"
type = "string"
[[collections.fields]]
key = "mainContent"
title = "Content"
type = "markdown"
[[collections.fields]]
key = "pubdate"
title = "Pub Date"
type = "date"
default = "now"
[[collections.fields]]
key = "draft"
title = "Draft"
type = "boolean"
[[collections.fields]]
key = "bundle-manager"
title = "Images"
type = "bundle-manager"
path = "imgs"
extensions = [
"png",
"jpg",
"gif"
]
[[collections.fields.fields]]
key = "title"
title = "Title"
type = "string"
[[collections.fields.fields]]
key = "description"
title = "Description"
type = "string"
multiLine = true
[[collections.fields.fields]]
key = "bundle-image-thumbnail"
type = "bundle-image-thumbnail"
[[singles]]
key = "mainConfig"
title = "Main Config"
file = "config.toml"
dataformat = "toml"
[[singles.fields]]
key = "title"
title = "Site Title"
type = "string"
tip = "Your page title."
[[singles.fields]]
key = "baseURL"
title = "Base URL"
type = "string"
tip = "Your site URL."
[[singles.fields]]
key = "theme"
title = "Theme"
type = "readonly"
tip = "The current theme."
[[singles.fields]]
key = "languageCode"
title = "Language Code"
type = "readonly"
[[singles.fields]]
key = "googleAnalytics"
title = "Google Analytics"
type = "string"
tip = "Provide a Google Analitics Tracking Code to enable analytics."
[[singles.fields]]
key = "enableRobotsTXT"
title = "Enable Robots"
type = "boolean"
default = true
tip = "If you want your page to be indexed, keep this enabled."

File diff suppressed because one or more lines are too long