Fix: remove duplicate author-bio includes, add author images, move inline styles

- Remove author-bio.php and article-footer.php duplicate inclusions from
  inside related article cards across 17 articles (was rendering 4x per page)
- Create /assets/images/authors/ with SVG avatars for all 7 named authors
- Move inline <style> block out of author-bio.php into main.css
This commit is contained in:
root
2026-02-22 09:58:16 +00:00
committed by Peter Foster
parent 4d44e84478
commit 6f8a0490fc
26 changed files with 195 additions and 478 deletions

View File

@@ -252,31 +252,13 @@ $read_time = 10;
<article class="related-card">
<span class="category">Business Intelligence</span>
<h4><a href="competitive-intelligence-roi-metrics.php">Measuring ROI from Competitive Intelligence Programmes</a></h4>
<span class="read-time">8 min read</span>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/author-bio.php'); ?>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/article-footer.php'); ?>
</div>
</article>
<article class="related-card">
<span class="read-time">8 min read</span> <article class="related-card">
<span class="category">Technology</span>
<h4><a href="data-automation-strategies-uk-businesses.php">Data Automation Strategies for UK Businesses</a></h4>
<span class="read-time">9 min read</span>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/author-bio.php'); ?>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/article-footer.php'); ?>
</div>
</article>
<article class="related-card">
<span class="read-time">9 min read</span> <article class="related-card">
<span class="category">Web Scraping</span>
<h4><a href="javascript-heavy-sites-scraping.php">Scraping JavaScript-Heavy Sites: Advanced Techniques</a></h4>
<span class="read-time">6 min read</span>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/author-bio.php'); ?>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/article-footer.php'); ?>
</div>
</article>
</div>
<span class="read-time">6 min read</span> </div>
</aside>
</div>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/author-bio.php'); ?>