added first modelviewer example

This commit is contained in:
Luca Junge 2022-11-10 19:05:53 +01:00
parent ed7ab76ad9
commit 1326d54083
13 changed files with 1406 additions and 17 deletions

View file

@ -1,10 +1,19 @@
const { DateTime } = require("luxon")
module.exports = function (eleventyConfig) {
//eleventyConfig.addPassthroughCopy("css")
eleventyConfig.addPassthroughCopy("src/**/*.png")
eleventyConfig.addPassthroughCopy("src/**/*.jpg")
eleventyConfig.addPassthroughCopy("src/css/modelviewer.css")
eleventyConfig.addPassthroughCopy("src/**/*.glb")
eleventyConfig.addPassthroughCopy({ "src/_assets/": "assets" })
eleventyConfig.addFilter("readableDate", (dateObj) => {
return DateTime.fromJSDate(dateObj, {
zone: "Europe/Berlin"
}).setLocale("de").toLocaleString(DateTime.DATE_FULL)
})
return {
passthroughFileCopy: true,
dir: {