1 package App::SCS::Plugin::Core::PagePlugin::PageData;
5 with 'App::SCS::Role::PagePlugin';
7 sub filter_content_zoom {
8 my ($self, $zoom) = @_;
9 my $page = $self->page;
10 $zoom->select('.page.title')->replace_content($page->title)
11 ->select('.page.subtitle')->${\sub {
13 ? $_[0]->replace_content($page->subtitle)
16 ->select('.page.published_at')->replace_content($page->published_at)
17 ->select('meta[name=description]')
18 ->set_attribute(content => $page->description)
19 ->select('meta[name=keywords]')
20 ->set_attribute(content => $page->keywords)
21 ->select('meta[name=created]')
22 ->set_attribute(content => $page->created);