mirror of
https://github.com/modernweb-dev/rocket.git
synced 2026-03-10 08:51:24 +00:00
feat: automatic handling of web component imports
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user