if (!$page) return;
if ($page->getTemplate() === 'blog') {
+
+ // Don't show the Blog link in the main menu for the English locale
+ if ($locale == 'en') {
+ $page->setVisible(false);
+ return;
+ }
+
$this->addBlogPages($page, $locale, $isAdmin);
}
}
if ($is_single) {
$title = $post->getTitle();
$title_tag = 'h1';
+ $read_more = '';
} else {
$title = $this->link($post->getTitle(), $URL, ['itemprop' => 'url']);
$title_tag = 'h2';
+ $read_more = $this->link(__('Lire la suite'), $URL, ['class' => 'blog-intro-read-more']);
}
// Avoid orphaned punctuation in titles
);
$res .= $this->title($title, $title_tag, ['class' => 'blog-intro-title', 'itemprop' => 'headline']);
$res .= $this->markupDotclear($post->getExcerpt(), [], ['class' => 'blog-intro-excerpt']);
+ $res .= $read_more;
$res .= '</div>'; // .col-2
$res .= '</div>'; // .grid
}
}
+ &-read-more {
+ .border-button-fill(#fff, #fff, 5%);
+ .longarrow-button(12px, 40px, 18px);
+ margin-top: 1.5em;
+
+ &:hover {
+ color: #fff;
+ }
+ }
+
.grid {
width: 100%;
}