fix faq headings, improve meta description for faq and blog

This commit is contained in:
Jeremy Kauffman 2019-11-26 18:35:27 -05:00
parent 3b86f58a23
commit b3dfa9041d
2 changed files with 8 additions and 5 deletions

View file

@ -1,18 +1,21 @@
<?php Response::setMetaDescription($post->getTitle()) ?>
<?php Response::addMetaImages($post->getImageUrls()) ?>
<?php Response::setMetaDescription(htmlspecialchars($post->getContentText(20, true))) ?>
<?php NavActions::setNavUri('/learn') ?>
<main class="ancillary">
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--center-hero">
<h1>Frequently Asked Questions</h1>
<h1><?php echo htmlentities($post->getTitle()) ?></h1>
</div>
</section>
<section>
<div class="inner-wrap">
<h2><?php echo htmlentities($post->getTitle()) ?></h2>
<p><a href="/faq">« {{page.faq.back}}</a></p>
<section>
<small class="meta">
<a href="/faq">« {{page.faq.back}}</a>
</small>
</section>
<?php echo $post->getContentHtml() ?>
</div>
</section>

View file

@ -1,4 +1,4 @@
<?php Response::setMetaDescription($post->getTitle()) ?>
<?php Response::setMetaDescription(htmlspecialchars($post->getContentText(20, true))) ?>
<?php Response::addMetaImages($post->getImageUrls()) ?>
<?php NavActions::setNavUri('/news') ?>