mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
cleanup
This commit is contained in:
17
bin/build/templates.ts
Normal file
17
bin/build/templates.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { resolve } from 'path';
|
||||
import { Config } from '../../types/config';
|
||||
import { createEjs } from '../resources/ejs';
|
||||
import { createReact } from '../resources/react';
|
||||
|
||||
const getTemplates = (cwd: string, config: Config) => ({
|
||||
latex: {
|
||||
article: createEjs(resolve(cwd, config.articles.latex.template)),
|
||||
resume: createEjs(resolve(cwd, config.resume.latex.template)),
|
||||
},
|
||||
react: {
|
||||
article: createReact(resolve(cwd, config.articles.react.template)),
|
||||
frontpage: createReact(resolve(cwd, config.frontpage.react.template)),
|
||||
},
|
||||
});
|
||||
|
||||
export { getTemplates };
|
||||
Reference in New Issue
Block a user