Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalkhov committed May 22, 2024
1 parent 1a526af commit e167f9d
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 94 deletions.
10 changes: 7 additions & 3 deletions settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
"""
This file contains important variables for site generation
"""

import json

OUTPUT_FOLDER = "docs/"
info = None
INFO = None

BLOG_CATEGORIES = ["main", "protocol"]

Expand All @@ -11,5 +15,5 @@
"education": "Tutorials/Posts Flask related",
}

with open("info.json", encoding="utf-8") as f:
info = json.load(f)
with open("INFO.json", encoding="utf-8") as f:
INFO = json.load(f)
Loading

0 comments on commit e167f9d

Please sign in to comment.