Skip to content

Commit

Permalink
Fix Sketchnote Detail pages without metadata
Browse files Browse the repository at this point in the history
Remove unneeded check
  • Loading branch information
fbernutz committed May 11, 2023
1 parent 2f62386 commit 64ac62f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Sources/HimmelstraeumerinBlog/Theme/Theme+ItemDetail.swift
Expand Up @@ -60,15 +60,13 @@ private extension Node where Context == HTML.BodyContext {
}

static func sketchnoteDetail(_ item: Item<HimmelstraeumerinBlog>) -> Self {
return .unwrap(item.metadata.sketchnoteMetadata) { sketchnote in
.div(
.class("content sketchnote-detail"),
.h1(.text(item.title)),
.metaData(for: item),
.sketchnoteOriginal(for: item),
.contentBody(item.body)
)
}
return .div(
.class("content sketchnote-detail"),
.h1(.text(item.title)),
.metaData(for: item),
.sketchnoteOriginal(for: item),
.contentBody(item.body)
)
}

static func sketchnoteOriginal(for item: Item<HimmelstraeumerinBlog>) -> Self {
Expand Down

0 comments on commit 64ac62f

Please sign in to comment.