You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.9 KiB
44 lines
1.9 KiB
extends ../layouts/main
|
|
block content
|
|
|
|
section.uk-section.uk-section-default.uk-section-small
|
|
.uk-container
|
|
|
|
.uk-margin
|
|
div(uk-grid).uk-flex-middle
|
|
.uk-width-expand
|
|
h1.uk-margin-remove #{site.name} Newsroom
|
|
.uk-width-auto
|
|
a(href="/newsroom/feed").uk-button.dtp-button-primary.uk-button-small.uk-border-rounded
|
|
span View All
|
|
|
|
if Array.isArray(newsroom.feeds) && (newsroom.feeds.length > 0)
|
|
div(uk-grid).uk-grid-match
|
|
each feed in newsroom.feeds
|
|
div(class="uk-width-1-1 uk-width-1-2@s uk-width-1-3@m uk-width-1-4@l")
|
|
.uk-card.uk-card-secondary.uk-card-small.uk-border-rounded
|
|
.uk-card-header(style="border-bottom: solid 1px #808080;")
|
|
div(uk-grid).uk-grid-small.uk-flex-middle
|
|
.uk-width-expand
|
|
h2.uk-card-title.uk-margin-remove
|
|
a(href=`/newsroom/${feed._id}`, uk-tooltip=`See all for ${feed.title}`)= feed.title
|
|
.uk-width-auto
|
|
a(href=`/newsroom/${feed._id}`, uk-tooltip=`See all for ${feed.title}`).uk-text-small ALL
|
|
|
|
.uk-text-small.uk-text-muted
|
|
div last update #{moment(feed.published).fromNow()}
|
|
//- div= feed.description
|
|
|
|
.uk-card-body
|
|
if Array.isArray(feed.recent.entries) && (feed.recent.entries.length > 0)
|
|
ul.uk-list.uk-list-divider
|
|
each entry in feed.recent.entries
|
|
li
|
|
.uk-text-truncate
|
|
a(href= entry.link, uk-tooltip= entry.title, target="_blank").uk-link-reset= entry.title
|
|
.uk-article-meta= moment(entry.published).fromNow()
|
|
|
|
else
|
|
div No recent posts
|
|
else
|
|
div There are no configured news feeds.
|