7 changed files with 86 additions and 63 deletions
@ -1,40 +1,33 @@ |
|||||
mixin renderSidebarEpisode(episode) |
|
||||
.uk-card.uk-card-secondary.uk-card-small.uk-card-hover |
|
||||
|
|
||||
.uk-card-media-top |
|
||||
a(href= episode.url, target="_blank", title="Watch on Gab TV") |
|
||||
img(src=episode.image).responsive |
|
||||
|
|
||||
.uk-card-body |
|
||||
.uk-card-title.uk-margin-remove.uk-text-truncate |
|
||||
a(href= episode.url, target="_blank", title= `Watch "${episode.title}" on Gab TV`)= episode.title |
|
||||
.uk-text-small Posted: #{moment(episode.date_modified).format("MMM DD YYYY HH:MM a")} |
|
||||
|
|
||||
mixin renderPageSidebar ( ) |
mixin renderPageSidebar ( ) |
||||
//- Gab TV 3 Most Recent Episodes |
|
||||
.uk-margin |
|
||||
+renderSectionTitle('Gab TV', { |
|
||||
label: 'Visit Channel', |
|
||||
title: gabTvChannel.title, |
|
||||
url: gabTvChannel.home_page_url, |
|
||||
}) |
|
||||
|
|
||||
ul.uk-list |
.uk-margin |
||||
each episode in gabTvChannel.items.slice(0, 3) |
+renderSectionTitle('Popular Links') |
||||
li |
if Array.isArray(popularLinks) && (popularLinks.length > 0) |
||||
+renderSidebarEpisode(episode) |
ul.uk-list |
||||
|
each link in popularLinks |
||||
|
li |
||||
|
form(method="POST", action=`/link/visit/${link._id}`).uk-form.uk-display-block.uk-width-1-1 |
||||
|
button(type="submit").uk-button.dtp-button-secondary.uk-display-block.uk-border-rounded.uk-width-1-1= link.label |
||||
|
else |
||||
|
div No links available. Check back later. |
||||
|
|
||||
//- Newsletter Signup |
.uk-margin |
||||
div(uk-sticky={ offset: 60, bottom: '#dtp-content-grid' }) |
+renderSectionTitle('New Links') |
||||
+renderSectionTitle('Mailing List') |
if Array.isArray(recentLinks) && (recentLinks.length > 0) |
||||
.uk-margin |
ul.uk-list |
||||
form(method="post", action="/newsletter", onsubmit="return dtp.app.submitForm(event, 'Subscribe to newsletter');").uk-form |
each link in recentLinks |
||||
.uk-card.uk-card-secondary.uk-card-small |
li |
||||
.uk-card-body |
form(method="POST", action=`/link/visit/${link._id}`).uk-form.uk-display-block.uk-width-1-1 |
||||
p Join the #{site.name} FREE newsletter to get show updates in your inbox. |
button(type="submit").uk-button.dtp-button-secondary.uk-display-block.uk-border-rounded.uk-width-1-1= link.label |
||||
.uk-margin |
else |
||||
label(for="email").uk-form-label.sr-only Email Address |
div No new links. Check back later. |
||||
input(id="email", name="email", type="email", placeholder="[email protected]").uk-input |
|
||||
|
|
||||
.uk-card-footer |
.uk-margin |
||||
button(type="submit").uk-button.dtp-button-primary.uk-button-small Sign Up |
+renderSectionTitle('New Members') |
||||
|
if Array.isArray(recentUsers) && (recentUsers.length > 0) |
||||
|
ul.uk-list |
||||
|
each newUser in recentUsers |
||||
|
li |
||||
|
a(href=`/${newUser.username}`).uk-button.dtp-button-secondary.uk-display-block.uk-border-rounded.uk-width-1-1= newUser.displayName || newUser.username |
||||
|
else |
||||
|
div No new members. Check back later. |
Loading…
Reference in new issue