diff --git a/core/modules/aggregator/aggregator.theme.inc b/core/modules/aggregator/aggregator.theme.inc index 605025c..aade2ca 100644 --- a/core/modules/aggregator/aggregator.theme.inc +++ b/core/modules/aggregator/aggregator.theme.inc @@ -39,6 +39,7 @@ function template_preprocess_aggregator_item(&$variables) { $variables['source_date'] = format_date($item->getPostedTime(), 'medium'); } + $variables['posted_time'] = $item->getPostedTime(); $variables['attributes']['class'][] = 'feed-item'; } diff --git a/core/modules/aggregator/templates/aggregator-item.html.twig b/core/modules/aggregator/templates/aggregator-item.html.twig index 8c23106..24e22fb 100644 --- a/core/modules/aggregator/templates/aggregator-item.html.twig +++ b/core/modules/aggregator/templates/aggregator-item.html.twig @@ -8,29 +8,41 @@ * - feed_title: Title of the feed item. * - source_url: Link to the local source section. * - source_title: Title of the remote source. - * - source_date: Date the feed was posted on the remote source. + * - source_date: Date the feed was posted. Formatted as N days ago. + * - posted_time: Date the feed was posted. * - content: Feed item content. + * - categories: Categories assigned to the feed. * * @see template_preprocess_aggregator_item() * * @ingroup themeable */ #} - -

- {{ feed_title }} -

+
+ + {{ feed_title }} + + {{ content }} + +