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:
@@ -471,31 +471,13 @@ run_scraper()
|
||||
<article class="related-card">
|
||||
<span class="category">Web Scraping</span>
|
||||
<h4><a href="handling-captchas-scraping">How to Handle CAPTCHAs in Web Scraping: 7 Methods That Work</a></h4>
|
||||
<span class="read-time">12 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">12 min read</span> <article class="related-card">
|
||||
<span class="category">Technology</span>
|
||||
<h4><a href="cloud-native-scraping-architecture.php">Cloud-Native Scraping Architecture for Enterprise Scale</a></h4>
|
||||
<span class="read-time">11 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">11 min read</span> <article class="related-card">
|
||||
<span class="category">Web Scraping</span>
|
||||
<h4><a href="web-scraping-compliance-uk-guide">Is Web Scraping Legal in the UK? GDPR & DPA 2018 Guide</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'); ?>
|
||||
|
||||
Reference in New Issue
Block a user