Add version param to stylesheet href
This commit is contained in:
parent
aa5cfceb08
commit
2a9a39ac6d
@ -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"
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user