Fix meta tags
This commit is contained in:
parent
a9724b16d6
commit
5a7f9b1651
44
.github/add-headers.py
vendored
44
.github/add-headers.py
vendored
@ -1,32 +1,32 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
headersData = {
|
headersData = {
|
||||||
"AdblockVPNGuide.md": [":name_badge:", "140", "# Adblocking / Privacy", "Adblocking, Privacy, VPN's, Proxies, Antivirus"],
|
"AdblockVPNGuide.md": [ "Adblocking / Privacy", "Adblocking, Privacy, VPN's, Proxies, Antivirus"],
|
||||||
"AI.md": [":robot_face:", "130", "# Artificial Intelligence", "Chat Bots, Text Generators, Image Generators, ChatGPT Tools"],
|
"AI.md": [ "Artificial Intelligence", "Chat Bots, Text Generators, Image Generators, ChatGPT Tools"],
|
||||||
"Android-iOSGuide.md": [":iphone:", "45", "# Android / iOS", "Apps, Jailbreaking, Android Emulators"],
|
"Android-iOSGuide.md": ["Android / iOS", "Apps, Jailbreaking, Android Emulators"],
|
||||||
"AudioPiracyGuide.md": [":musical_note:", "110", "# Music / Podcasts / Radio", "Stream Audio, Download Audio, Torrent Audio"],
|
"AudioPiracyGuide.md": [ "Music / Podcasts / Radio", "Stream Audio, Download Audio, Torrent Audio"],
|
||||||
"Beginners-Guide.md": [":pirate_flag:", "150", "# Beginners Guide to Piracy", ""],
|
"Beginners-Guide.md": [ "Beginners Guide to Piracy", ""],
|
||||||
"DEVTools.md": [":male-technologist:", "50", "# Developer Tools", ""],
|
"DEVTools.md": ["Developer Tools", ""],
|
||||||
"DownloadPiracyGuide.md": [":floppy_disk:", "80", "# Downloading", "Download Sites, Software Sites, Open Directories"],
|
"DownloadPiracyGuide.md": ["Downloading", "Download Sites, Software Sites, Open Directories"],
|
||||||
"EDUPiracyGuide.md": [":brain:", "60", "# Educational", "Courses, Documentaries, Learning Resources"],
|
"EDUPiracyGuide.md": ["Educational", "Courses, Documentaries, Learning Resources"],
|
||||||
"GamingPiracyGuide.md": [":video_game:", "100", "# Gaming / Emulation", "Download Games, ROMs, Gaming Tools"],
|
"GamingPiracyGuide.md": [ "Gaming / Emulation", "Download Games, ROMs, Gaming Tools"],
|
||||||
"LinuxGuide.md": [":penguin:", "40", "# Linux / MacOS", "Apps, Software Sites, Gaming"],
|
"LinuxGuide.md": ["Linux / MacOS", "Apps, Software Sites, Gaming"],
|
||||||
"MISCGuide.md": [":open_file_folder:", "30", "# Miscellaneous", "Extensions, Indexes, News, Health, Food, Fun"],
|
"MISCGuide.md": ["Miscellaneous", "Extensions, Indexes, News, Health, Food, Fun"],
|
||||||
"NSFWPiracy.md": [":underage:", "25", "# NSFW", ""],
|
"NSFWPiracy.md": ["NSFW", ""],
|
||||||
"Non-English.md": [":earth_asia:", "35", "# Non-English", "International Piracy Sites"],
|
"Non-English.md": ["Non-English", "International Piracy Sites"],
|
||||||
"ReadingPiracyGuide.md": [":green_book:", "90", "# Books / Comics / Manga", "Books, Comics, Magazines, Newspapers"],
|
"ReadingPiracyGuide.md": ["Books / Comics / Manga", "Books, Comics, Magazines, Newspapers"],
|
||||||
"STORAGE.md": [":card_file_box:", "1", "", ""],
|
"STORAGE.md": ["", ""],
|
||||||
"TOOLSGuide.md": [":wrench:", "58", "# Tools", "General Tools, Internet Tools, System Tools"],
|
"TOOLSGuide.md": ["Tools", "General Tools, Internet Tools, System Tools"],
|
||||||
"TorrentPiracyGuide.md": [":cyclone:", "70", "# Torrenting", "Torrent Clients, Torrent Sites, Trackers"],
|
"TorrentPiracyGuide.md": ["Torrenting", "Torrent Clients, Torrent Sites, Trackers"],
|
||||||
"VideoPiracyGuide.md": [":tv:", "120", "# Movies / TV / Anime", "Stream Videos, Download Videos, Torrent Videos"],
|
"VideoPiracyGuide.md": ["Movies / TV / Anime", "Stream Videos, Download Videos, Torrent Videos"],
|
||||||
"base64.md": [":key:", "20", "", ""],
|
"base64.md": ["", ""],
|
||||||
"img-tools.md": [":camera:", "55", "# Image Tools", ""],
|
"img-tools.md": ["Image Tools", ""],
|
||||||
"UnsafeSites.md": [":warning:", "21", "# Unsafe Sites", ""]
|
"UnsafeSites.md": ["Unsafe Sites", ""]
|
||||||
}
|
}
|
||||||
|
|
||||||
def getHeaderForPage(pageFilename):
|
def getHeaderForPage(pageFilename):
|
||||||
data = headersData[pageFilename]
|
data = headersData[pageFilename]
|
||||||
header = '---\n' + 'icon: ' + '"' + data[0] + '"' + '\n' + 'order: ' + data[1] + '\n' + '---\n' + data[2] + '\n' + data[3] + '\n\n'
|
header = '---\n' + 'title: ' + '"' + data[0] + '"' + '\n' + 'description: ' + data[1] + '\n' + '---\n' + '# ' + data[0] + '\n' + data[1] + '\n\n'
|
||||||
return header
|
return header
|
||||||
|
|
||||||
def apply_to_all_md_files_in_current_dir():
|
def apply_to_all_md_files_in_current_dir():
|
||||||
|
Loading…
Reference in New Issue
Block a user