Skip to content

Commit f4ad28d

Browse files
author
TechStack Global
committed
fix: add missing font-awesome to non-core pages to fix hamburger menu icon
1 parent 2e71226 commit f4ad28d

File tree

6 files changed

+34
-0
lines changed

6 files changed

+34
-0
lines changed

about.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap"
2020
rel="stylesheet">
2121
<link rel="stylesheet" href="style.css">
22+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
2223
<link rel="icon" type="image/png" sizes="32x32" href="assets/icons/favicon-32.png">
2324
<link rel="icon" type="image/png" sizes="16x16" href="assets/icons/favicon-16.png">
2425
<link rel="apple-touch-icon" sizes="192x192" href="assets/icons/techstack-logo-192.png">

affiliate-disclosure.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap"
99
rel="stylesheet">
1010
<link rel="stylesheet" href="style.css">
11+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
1112
<link rel="icon" type="image/png" sizes="32x32" href="assets/icons/favicon-32.png">
1213
<link rel="icon" type="image/png" sizes="16x16" href="assets/icons/favicon-16.png">
1314
<link rel="apple-touch-icon" sizes="192x192" href="assets/icons/techstack-logo-192.png">

contact.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap"
2121
rel="stylesheet">
2222
<link rel="stylesheet" href="style.css">
23+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
2324
<link rel="icon" type="image/png" sizes="32x32" href="assets/icons/favicon-32.png">
2425
<link rel="icon" type="image/png" sizes="16x16" href="assets/icons/favicon-16.png">
2526
<link rel="apple-touch-icon" sizes="192x192" href="assets/icons/techstack-logo-192.png">

fix_fa.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import sys
2+
3+
files = [
4+
'about.html',
5+
'contact.html',
6+
'affiliate-disclosure.html',
7+
'privacy-policy.html',
8+
'terms-of-service.html'
9+
]
10+
11+
fa_tag = '<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">'
12+
13+
count = 0
14+
for filepath in files:
15+
with open(filepath, 'r', encoding='utf-8') as f:
16+
content = f.read()
17+
18+
if fa_tag not in content:
19+
print(f"Adding Font Awesome to {filepath}")
20+
content = content.replace(
21+
'<link rel="stylesheet" href="style.css">',
22+
'<link rel="stylesheet" href="style.css">\n ' + fa_tag
23+
)
24+
25+
with open(filepath, 'w', encoding='utf-8') as f:
26+
f.write(content)
27+
count += 1
28+
29+
print(f"Fixed {count} files.")

privacy-policy.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap"
99
rel="stylesheet">
1010
<link rel="stylesheet" href="style.css">
11+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
1112
<style>
1213
body {
1314
padding: 2rem;

terms-of-service.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap"
99
rel="stylesheet">
1010
<link rel="stylesheet" href="style.css">
11+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
1112
<style>
1213
body {
1314
padding: 2rem;

0 commit comments

Comments
 (0)