Add version param to stylesheet href

This commit is contained in:
Catalin Constantin Mititiuc 2025-05-10 08:55:05 -07:00
parent aa5cfceb08
commit 2a9a39ac6d
2 changed files with 3 additions and 2 deletions

View File

@ -18,6 +18,7 @@ posts = (path=".") ->
files = [file for file in lfs.dir path when file != "." and file != ".."]
{join(path, file), target(file, "/posts") for _, file in ipairs files}
-- Change output dir to what Openresty prefers
site!
site.config.out_dir = "html/"
@ -30,4 +31,4 @@ sitegen.create =>
add "index.md"
add path, target: target for path, target in pairs posts "docs"
build(css, "app.css")
build css, "app.css"

View File

@ -11,7 +11,7 @@
type="text/css"
media="screen"
/>
<link rel="stylesheet" href="$root/app.css" />
<link rel="stylesheet" href="$root/app.css?$generate_date" />
</head>
<body class="bg-white">
<header>