Jelajahi Sumber

Asset generator fixes.

scossu 4 hari lalu
induk
melakukan
670c167a90
2 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 1 1
      config/app.lua
  2. 2 2
      src/generator.lua

+ 1 - 1
config/app.lua

@@ -69,7 +69,7 @@ return {
 
     -- Static site generation settings.
     htmlgen = {
-        out_dir = "./out/html",
+        out_dir = plpath.join(ROOT, "out", "html"),
         max_homepage_items = 12,
     },
 }

+ 2 - 2
src/generator.lua

@@ -709,10 +709,10 @@ M.generate_site = function()
     -- comparing RDF resource timestamps with HTML page timestamps. Post-MVP.
     if path.isdir(pkar.config.htmlgen.out_dir) then
         dir.rmtree(pkar.config.htmlgen.out_dir) end
-    --[[
+
+    -- Recreate asset dir.
     if path.isdir(M.asset_dir) then dir.rmtree(M.asset_dir) end
     dir.makepath(M.asset_dir)
-    --]]
 
     -- Copy static assets.
     dir.clonetree("templates/assets", M.asset_dir, dir.copyfile)