Skip to content

Commit 5ee93dd

Browse files
author
TechStack Global
committed
chore: major cleanup - standardized affiliate disclosure, removed emojis/dashes in SM7B review, updated primary image and moved to Amazon Stack page
1 parent 2dc88ac commit 5ee93dd

20 files changed

+134
-100
lines changed

amazon-stack.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,20 @@ <h3><a href="posts/dell-thunderbolt-smart-dock-review.html"
184184
</div>
185185
</div>
186186

187-
<! Shure SM7dB>
187+
188+
<! Shure SM7B>
189+
<div class="product-item glass-card">
190+
<div class="product-thumbnail-wrapper">
191+
<img src="posts/images/shure-sm7b-primary.jpg" alt="Shure SM7B dynamic studio microphone profile view thumbnail" class="product-thumbnail" loading="lazy">
192+
</div>
193+
<div class="product-info">
194+
<div class="product-meta">Broadcast Standard</div>
195+
<h3><a href="posts/shure-sm7b-review.html" aria-label="Open review: Shure SM7B">Shure SM7B Microphone</a></h3>
196+
<a href="posts/shure-sm7b-review.html" class="view-review-cta">View Review <i class="fa-solid fa-arrow-right"></i></a>
197+
</div>
198+
</div>
199+
200+
<! Shure SM7dB>
188201
<div class="product-item glass-card">
189202
<div class="product-thumbnail-wrapper">
190203
<img src="posts/images/shure-sm7db-primary.jpg"

blog.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,7 @@ <h1>Guides</h1>
7070

7171
<div class="blog-grid" id="blog-posts-container">
7272

73-
<!-- Reviews -->
74-
<div class="blog-card glass-card">
75-
<div class="blog-category">Audio &amp; Podcasting</div>
76-
<h3><a href="posts/shure-sm7b-review.html">Shure SM7B Review (2026): The Broadcast Standard
77-
Explained</a></h3>
78-
<p>A deep dive into the Shure SM7B. Discover why this iconic broadcast standard requires specific
79-
gain staging and if it belongs in your studio.</p>
80-
<a href="posts/shure-sm7b-review.html" class="read-more">Read Review &rarr;</a>
81-
</div>
73+
8274

8375
<! Best Remote Work Setup>
8476
<div class="blog-card glass-card" style="border-top: 3px solid var( accent);">

finalize_sm7b.py

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import os
2+
import re
3+
4+
affiliate_text = '<strong>Affiliate disclosure:</strong> This page contains affiliate links. If you purchase via these links we may earn a commission at no extra cost to you. This helps support our research and operating costs.'
5+
6+
# Step 1: Update all reviews in /posts
7+
directory = 'posts'
8+
for filename in os.listdir(directory):
9+
if not filename.endswith('.html'): continue
10+
filepath = os.path.join(directory, filename)
11+
with open(filepath, 'r', encoding='utf-8') as f: content = f.read()
12+
13+
# Standardize affiliate disclosures
14+
content = re.sub(r'<p class=[\'\"]affiliate-disclosure[\'\"][^>]*>.*?</p>', f'<p class=\"affiliate-disclosure\">{affiliate_text}</p>', content, flags=re.DOTALL)
15+
content = re.sub(r'<div class=[\'\"]affiliate-disclaimer[\'\"][^>]*>.*?</div>', f'<div class=\"affiliate-disclosure\">\n {affiliate_text}\n</div>', content, flags=re.DOTALL)
16+
17+
# For SM7B specifically, clean emojis and dashes
18+
if filename == 'shure-sm7b-review.html':
19+
content = re.sub(r'🎙️|🎛️|🏢|🔊|🎵|🔌|💰|🎒|✅|❌|✨|🚀', '', content)
20+
content = content.replace('—', ':').replace('–', '-')
21+
22+
with open(filepath, 'w', encoding='utf-8') as f: f.write(content)
23+
24+
# Step 2: Fix Navigation/Library Pages
25+
if os.path.exists('blog.html'):
26+
with open('blog.html', 'r', encoding='utf-8') as f: blog_content = f.read()
27+
# Find the SM7B review element and remove it
28+
blog_content = re.sub(r'<!-- Reviews -->.*?Read Review &rarr;</a>\n\s*</div>', '', blog_content, flags=re.DOTALL)
29+
with open('blog.html', 'w', encoding='utf-8') as f: f.write(blog_content)
30+
31+
if os.path.exists('amazon-stack.html'):
32+
with open('amazon-stack.html', 'r', encoding='utf-8') as f: stack_content = f.read()
33+
if 'shure-sm7b-review.html' not in stack_content:
34+
# Create the SM7B card for Amazon Stack
35+
sm7b_card = '''
36+
<! Shure SM7B>
37+
<div class="product-item glass-card">
38+
<div class="product-thumbnail-wrapper">
39+
<img src="posts/images/shure-sm7b-primary.jpg" alt="Shure SM7B dynamic studio microphone profile view thumbnail" class="product-thumbnail" loading="lazy">
40+
</div>
41+
<div class="product-info">
42+
<div class="product-meta">Broadcast Standard</div>
43+
<h3><a href="posts/shure-sm7b-review.html" aria-label="Open review: Shure SM7B">Shure SM7B Microphone</a></h3>
44+
<a href="posts/shure-sm7b-review.html" class="view-review-cta">View Review <i class="fa-solid fa-arrow-right"></i></a>
45+
</div>
46+
</div>'''
47+
# Insert before SM7dB
48+
stack_content = stack_content.replace('<! Shure SM7dB>', sm7b_card + '\n\n <! Shure SM7dB>')
49+
with open('amazon-stack.html', 'w', encoding='utf-8') as f: f.write(stack_content)
50+
51+
print('Success.')

posts/apple-macbook-pro-m4-pro-review.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,9 @@
9797
<main class="article-container">
9898
<! Main Content >
9999
<article class="post-body">
100-
<div class="affiliate-disclaimer">
101-
<strong><i class="fa-solid fa-circle-info"></i> Affiliate Disclosure:</strong> We may earn a commission
102-
from purchases made through links on this page at no extra cost to you.
103-
</div>
100+
<div class="affiliate-disclosure">
101+
<strong>Affiliate disclosure:</strong> This page contains affiliate links. If you purchase via these links we may earn a commission at no extra cost to you. This helps support our research and operating costs.
102+
</div>
104103

105104
<span class="badge">Elite Performance</span>
106105
<h1 class="post-title">Review: Apple MacBook Pro M4 Pro (The All-Day Powerhouse)</h1>

posts/best-headphones-for-classes.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525

2626
<main class="article-container">
2727
<article class="post-body">
28-
<div class="affiliate-disclaimer">
29-
<strong><i class="fa-solid fa-circle-info"></i> Affiliate Disclosure:</strong> We may earn a commission
30-
from purchases made through links on this page.
31-
</div>
28+
<div class="affiliate-disclosure">
29+
<strong>Affiliate disclosure:</strong> This page contains affiliate links. If you purchase via these links we may earn a commission at no extra cost to you. This helps support our research and operating costs.
30+
</div>
3231

3332
<span class="badge">Study Setup Focus</span>
3433
<h1 class="post-title">Best Headphones for Online Classes: The 2026 Focus Guide</h1>

posts/best-laptops-for-students-2026.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@
2626
<main class="article-container">
2727
<! Main Content >
2828
<article class="post-body">
29-
<div class="affiliate-disclaimer">
30-
<strong><i class="fa-solid fa-circle-info"></i> Affiliate Disclosure:</strong> We may earn a commission
31-
from purchases made through links on this page at no extra cost to you. This helps support our research.
32-
</div>
29+
<div class="affiliate-disclosure">
30+
<strong>Affiliate disclosure:</strong> This page contains affiliate links. If you purchase via these links we may earn a commission at no extra cost to you. This helps support our research and operating costs.
31+
</div>
3332

3433
<span class="badge">Student Tech Hub</span>
3534
<h1 class="post-title">Best Laptops for Students 2026: From Budget to Premium</h1>

posts/best-premium-laptop-for-work-2026.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@
8181

8282
<main class="article-container">
8383
<article class="post-body">
84-
<div class="affiliate-disclaimer">
85-
<strong><i class="fa-solid fa-circle-info"></i> Affiliate Disclosure:</strong> We may earn a commission
86-
from purchases made through links on this page.
87-
</div>
84+
<div class="affiliate-disclosure">
85+
<strong>Affiliate disclosure:</strong> This page contains affiliate links. If you purchase via these links we may earn a commission at no extra cost to you. This helps support our research and operating costs.
86+
</div>
8887

8988
<span class="badge">Buying Guide</span>
9089
<h1 class="post-title">Best Premium Laptop for Work in 2026: MacBook vs Dell vs Surface</h1>

posts/best-remote-work-setup-2026.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@
6262

6363
<main class="article-container">
6464
<article class="post-body">
65-
<div class="affiliate-disclaimer">
66-
<strong><i class="fa-solid fa-circle-info"></i> Affiliate Disclosure:</strong> We may earn a commission
67-
from purchases made through links on this page at no extra cost to you.
68-
</div>
65+
<div class="affiliate-disclosure">
66+
<strong>Affiliate disclosure:</strong> This page contains affiliate links. If you purchase via these links we may earn a commission at no extra cost to you. This helps support our research and operating costs.
67+
</div>
6968

7069
<span class="badge">Ecosystem Hub</span>
7170
<h1 class="post-title">The Best Remote Work Setup Formula for 2026</h1>

posts/budget-laptops-under-1000.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525

2626
<main class="article-container">
2727
<article class="post-body">
28-
<div class="affiliate-disclaimer">
29-
<strong><i class="fa-solid fa-circle-info"></i> Affiliate Disclosure:</strong> We may earn a commission
30-
from purchases made through links on this page.
31-
</div>
28+
<div class="affiliate-disclosure">
29+
<strong>Affiliate disclosure:</strong> This page contains affiliate links. If you purchase via these links we may earn a commission at no extra cost to you. This helps support our research and operating costs.
30+
</div>
3231

3332
<span class="badge">Budget Picks 2026</span>
3433
<h1 class="post-title">Best Budget Laptops Under $1000: Real Value for Real Work</h1>

posts/dell-thunderbolt-smart-dock-review.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,9 @@
111111
<main class="article-container">
112112
<! Main Content >
113113
<article class="post-body">
114-
<div class="affiliate-disclaimer">
115-
<strong><i class="fa-solid fa-circle-info"></i> Affiliate Disclosure:</strong> We may earn a commission
116-
from purchases made through links on this page at no extra cost to you. This helps support our research.
117-
</div>
114+
<div class="affiliate-disclosure">
115+
<strong>Affiliate disclosure:</strong> This page contains affiliate links. If you purchase via these links we may earn a commission at no extra cost to you. This helps support our research and operating costs.
116+
</div>
118117

119118
<span class="badge">Hardware Accessories</span>
120119
<h1 class="post-title">Dell SD25TB4 Pro Review: The Thunderbolt 4 Dock That Rules Them All</h1>

0 commit comments

Comments
 (0)