-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmovie.pug
33 lines (29 loc) · 1.27 KB
/
movie.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
extends layout
block content
.container.post
- const titleCombined = `${title} (${yearReleased})`
.movie-list
div.cover-photo
if cover
a(href=imdb): img(src=meta.imageResizer(640, 0, `/assets/images/book/${cover}.png`) title=titleCombined onerror="this.src='https://via.placeholder.com/640x800/FFFFFF/?text=Image+not+found'")
else
a(href=imdb): img(src='https://via.placeholder.com/640x800/FFFFFF/?text=Image+not+found' title=titleCombined)
div.details
h2
a(href=((data && post.data.externalLink) ? data.externalLink : page.url), title=(data && post.data.externalLink) ? "External Link" : "Permalink")!= titleCombined
p Last Updated:
= ' '
time(datetime=global.dateHtml(page.date), pubdate="pubdate")= global.dateReadable(page.date)
= ' '
a(class="permalink", title="Permalink" href=page.url) ∞
ul
li Would Recommend: #[=rating]/10
if dateWatched
li Date Watched: #[=global.dateReadable(dateWatched)]
if imdb
li Reviews & Details on #[a(href=imdb) IMDB]
div.excerpt: p= excerpt
if content
h3 My Notes
div.content!= content
div.linkBack: p: a(href="/movies") List of all Movies & Shows