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:
@@ -421,33 +421,13 @@ await page.goto(url);
|
||||
<article class="related-card">
|
||||
<h3><a href="web-scraping-compliance-uk-guide.php">Complete Guide to Web Scraping Compliance in the UK</a></h3>
|
||||
<p>Ensure your JavaScript scraping activities remain fully compliant with UK data protection laws.</p>
|
||||
<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">
|
||||
<h3><a href="selenium-vs-playwright-comparison.php">Selenium vs Playwright: Choose the Right Tool</a></h3>
|
||||
<p>Comprehensive comparison of browser automation tools with performance benchmarks.</p>
|
||||
<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">
|
||||
<h3><a href="../categories/web-scraping.php">More Web Scraping Articles</a></h3>
|
||||
<p>Explore our complete collection of web scraping guides and tutorials.</p>
|
||||
<span class="read-time">Browse category</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">Browse category</span> </div>
|
||||
</section>
|
||||
</div>
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/author-bio.php'); ?>
|
||||
|
||||
Reference in New Issue
Block a user