generated from hjess/PythonTemplateProject
Renaming + CSS
This commit is contained in:
@@ -20,7 +20,6 @@ def box(title, content):
|
||||
</div>
|
||||
'''
|
||||
|
||||
|
||||
def note(content):
|
||||
"""Render a note component."""
|
||||
return f'''
|
||||
@@ -28,6 +27,11 @@ def note(content):
|
||||
<p>{content}</p>
|
||||
</div>
|
||||
'''
|
||||
def link_to(title, url):
|
||||
"""Render a box component."""
|
||||
return f'''
|
||||
<a href="{url}" target="_blank" rel="noopener noreferrer">{title}</a>
|
||||
'''
|
||||
|
||||
def warning(content):
|
||||
"""Render a warning component."""
|
||||
@@ -45,6 +49,7 @@ def create_jinja_environment():
|
||||
"box": box,
|
||||
"note": note,
|
||||
"warning": warning,
|
||||
"link_to": link_to,
|
||||
})
|
||||
return env
|
||||
|
||||
|
||||
Reference in New Issue
Block a user