Skip to content

pantoken / platforms/hugo/src / toHugoAssets

Fušla: toHugoAssets()

toHugoAssets(): HugoFile[]

Eksperimentála

Geavahit token-asset-fállat Hugo-sajttái (ráhkadit ráhkadit sájta gávdno).

Gullii / Gávdnat

HugoFile[]

Sass-buorrán (assets/scss/_pantoken.scss), čalbmi style-sheet (assets/css/pantoken.css), ja proosa style-sheet (assets/css/pantoken-prose.css).

Exempel

Geavahit assetat sájta gávdno almmuhis

ts
import { writeFileSync, mkdirSync } from "node:fs";
import { dirname, join } from "node:path";
import { toHugoAssets } from "@pantoken/hugo";

for (const { path, content } of toHugoAssets()) {
  const dest = join("./my-site", path);
  mkdirSync(dirname(dest), { recursive: true });
  writeFileSync(dest, content);
}