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:
@@ -480,39 +480,19 @@ $read_time = 12;
|
||||
<div class="article-footer">
|
||||
<span class="read-time">6 min read</span>
|
||||
<a href="gdpr-data-minimisation-practices.php" class="read-more">Read →</a>
|
||||
</div>
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/author-bio.php'); ?>
|
||||
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/article-footer.php'); ?>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="article-card">
|
||||
</div> <article class="article-card">
|
||||
<h3><a href="handling-captchas-scraping">How to Handle CAPTCHAs in Web Scraping: 7 Methods That Work</a></h3>
|
||||
<p>Learn 7 proven methods to handle reCAPTCHA, hCaptcha and Turnstile ethically while web scraping.</p>
|
||||
<div class="article-footer">
|
||||
<span class="read-time">8 min read</span>
|
||||
<a href="handling-captchas-scraping" class="read-more">Read →</a>
|
||||
</div>
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/author-bio.php'); ?>
|
||||
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/article-footer.php'); ?>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="article-card">
|
||||
</div> <article class="article-card">
|
||||
<h3><a href="data-protection-impact-assessments">DPIA Guide: Data Protection Impact Assessments for the UK</a></h3>
|
||||
<p>Step-by-step guide to conducting DPIAs for your data processing activities, with free template.</p>
|
||||
<div class="article-footer">
|
||||
<span class="read-time">10 min read</span>
|
||||
<a href="data-protection-impact-assessments" class="read-more">Read →</a>
|
||||
</div>
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/author-bio.php'); ?>
|
||||
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/article-footer.php'); ?>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
</div> </div>
|
||||
|
||||
<div class="category-links">
|
||||
<a href="../categories/compliance.php" class="btn btn-secondary">More Legal & Compliance Articles</a>
|
||||
|
||||
Reference in New Issue
Block a user