www.byjp.me/indiekit/packages/indiekit-preset-byjp/index.js
JP Hastings-Spital 5c58632d42 Adapt Indiekit
2024-03-27 14:24:26 +00:00

32 lines
612 B
JavaScript

import { getPostTemplate } from "./lib/post-template.js";
import { getPostTypes } from "./lib/post-types.js";
const defaults = {};
export default class HugoPreset {
constructor(options = {}) {
this.name = "byJP preset";
this.options = { ...defaults, ...options };
}
get info() {
return {
name: "byJP",
};
}
get prompts() {
return [];
}
postTemplate(properties) {
return getPostTemplate(properties);
}
init(Indiekit) {
const { application } = Indiekit.config;
this.postTypes = getPostTypes(application.postTypes);
Indiekit.addPreset(this);
}
}