fix: bold in text not working + sorted data not passed to functions

This commit is contained in:
Oxbian 2024-12-02 15:04:18 -05:00
parent 572b4ef237
commit 65b69b5efa
Signed by: Oxbian
GPG Key ID: 0E8F319FD43747E5
3 changed files with 6 additions and 12 deletions

View File

@ -78,13 +78,6 @@ tags: new year, happy, test
This project only has `python-dotenv` as dependencies for loading environment variable into python. This project only has `python-dotenv` as dependencies for loading environment variable into python.
## Trouble & help
If you have any troube you can contact me by email, matrix, or open an issue. If you are a beginner prefer using email, thanks.
- Email: oxbian.noch@simplelogin.com
- Matrix: @oxbian:matrix.org
## License ## License
This project is under the GPLV3 license. You can use, modify, as long as the copy is opensource under the GPLV3 too. This project is under the GPLV3 license. You can use, modify, as long as the copy is opensource under the GPLV3 too.

View File

@ -179,8 +179,8 @@ if __name__ == "__main__":
# Generating atom feed # Generating atom feed
print(f"{color['green']}Generating RSS / Atom feed in {lang} {color['end']}") print(f"{color['green']}Generating RSS / Atom feed in {lang} {color['end']}")
generate_atom_feed(data, env_vars) generate_atom_feed(sorted_data, env_vars)
# Generating index # Generating index
print(f"{color['green']}Generating main page in {lang} :{color['end']}") print(f"{color['green']}Generating main page in {lang} :{color['end']}")
generate_index(data, env_vars) generate_index(sorted_data, env_vars)

View File

@ -11,12 +11,13 @@ def parse_line(line):
html.escape(line) html.escape(line)
# Checking if there is strong or emphasized # Checking if there is strong or emphasized
while "*" in line:
line = line.replace("*", "<em>", 1)
line = line.replace("*", "</em>", 1)
while "**" in line: while "**" in line:
line = line.replace("**", "<strong>", 1) line = line.replace("**", "<strong>", 1)
line = line.replace("**", "</strong>", 1) line = line.replace("**", "</strong>", 1)
while "*" in line:
line = line.replace("*", "<em>", 1)
line = line.replace("*", "</em>", 1)
# Checking if there is image # Checking if there is image
while "![" in line and "]" in line: while "![" in line and "]" in line: