feat: automatic handling of web component imports

This commit is contained in:
Thomas Allmer
2022-03-12 23:00:58 +01:00
parent 55c8b3fcc3
commit 4b1919c02d
121 changed files with 1704 additions and 426 deletions

View File

@@ -5,17 +5,8 @@ import '../components/blog-post.js';
export class LayoutBlogPost {
render(data) {
const {
title,
description,
publishDate,
author,
authorHref,
heroImage,
permalink,
alt,
lang,
} = data;
const { title, description, publishDate, author, authorHref, heroImage, permalink, alt, lang } =
data;
return html`
<html-server-only lang=${lang || 'en'}>
<head>