Skip to content

Commit

Permalink
added some meta tag thing
Browse files Browse the repository at this point in the history
  • Loading branch information
maxiwee69 committed Jan 24, 2024
1 parent 337b6ed commit bf52c27
Show file tree
Hide file tree
Showing 16 changed files with 45 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cleanlibrary/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CleanLibrary</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
Expand All @@ -10,7 +11,7 @@
<div class="text">
<a href="/projects/mytweaks" class="clickable-text">Back to My Tweaks</a>
<h1>CleanLibrary</h1>
<p>This is probal ymy lamest tweak. It hides the names of the categoreis in the app library. </p>
<p>This is probal my lamest tweak. It hides the names of the categories in the app library. </p>
</div>
<img src="CleanLibrary.webp" alt="CleanLibrary in action">
</div>
Expand Down
1 change: 1 addition & 0 deletions depictions/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PackageName</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down
1 change: 1 addition & 0 deletions fiveicondock/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FiveIconDock</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
Expand Down
1 change: 1 addition & 0 deletions learntotweak/aarch64/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Maxiwee</title>
<link href="style.css" rel="stylesheet" type="text/css">
Expand Down
1 change: 1 addition & 0 deletions learntotweak/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Maxiwee</title>
<link href="style.css" rel="stylesheet" type="text/css">
Expand Down
1 change: 1 addition & 0 deletions learntotweak/step2/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Maxiwee</title>
<link href="style.css" rel="stylesheet" type="text/css">
Expand Down
1 change: 1 addition & 0 deletions learntotweak/step3/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Maxiwee</title>
<link href="style.css" rel="stylesheet" type="text/css">
Expand Down
1 change: 1 addition & 0 deletions noballz/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NoBallz</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
Expand Down
1 change: 1 addition & 0 deletions nobar/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NoBar</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
Expand Down
1 change: 1 addition & 0 deletions nodock/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NoDock</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
Expand Down
1 change: 1 addition & 0 deletions nolabels/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NoLabels</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
Expand Down
1 change: 1 addition & 0 deletions nopill/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NoPill</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
Expand Down
1 change: 1 addition & 0 deletions noquickies/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NoQuickies</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
Expand Down
1 change: 1 addition & 0 deletions projects/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</script>
<meta charset="UTF-8">
<title>Maxiwee</title>
Expand Down
1 change: 1 addition & 0 deletions projects/mytweaks/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Tweaks</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
Expand Down
29 changes: 29 additions & 0 deletions tag.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import os

# Define the meta tag you want to add
meta_tag = '<meta name="viewport" content="width=device-width, initial-scale=1.0">'

# Specify the directory you want to start from
root_dir = r'C:\Users\maxi\maxiwee69.github.io'

# Walk through all subdirectories
for dirpath, dirnames, filenames in os.walk(root_dir):
for filename in filenames:
# Check if the file is an index.html file
if filename == 'index.html':
filepath = os.path.join(dirpath, filename)
print(f'Found file: {filepath}')
with open(filepath, 'r+') as file:
# Read the existing content
content = file.read()
# Check if the meta tag already exists
if meta_tag not in content:
# If not, add the meta tag after the opening head tag
content = content.replace('<head>', '<head>\n' + meta_tag, 1)
# Write the new content back to the file
file.seek(0)
file.write(content)
file.truncate()
print(f'Meta tag added to: {filepath}')
else:
print(f'Meta tag already exists in: {filepath}')

0 comments on commit bf52c27

Please sign in to comment.