Renaming + CSS

This commit is contained in:
2024-12-13 21:52:50 +01:00
parent 5875cc785b
commit f18f82fb99
34 changed files with 203 additions and 3062 deletions

View File

@@ -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