description update
This commit is contained in:
7
build.py
7
build.py
@@ -24,6 +24,7 @@ class Website:
|
||||
self.fetch_tags()
|
||||
self.create_list()
|
||||
self.build_about()
|
||||
self.build_campfire()
|
||||
self.fetch_all_images()
|
||||
self.create_json('public/json/articles.json')
|
||||
|
||||
@@ -108,6 +109,12 @@ class Website:
|
||||
with open(os.path.join('public', 'about.html'), 'w', encoding='utf8') as output_file:
|
||||
output_file.write(html_output)
|
||||
|
||||
def build_campfire(self):
|
||||
template = self.env.get_template('campfire.html')
|
||||
html_output = template.render(
|
||||
content=None
|
||||
)
|
||||
|
||||
def format_content(self, content):
|
||||
# convert all (link)(src) to <a> tags
|
||||
content = re.sub(r'\(([^)]+)\)\[([^\]]+)\]', r'<a href="\2" target="_blank">\1</a>', content)
|
||||
|
||||
Reference in New Issue
Block a user