Upload files to "templates"

This commit is contained in:
2024-11-28 00:55:02 -05:00
parent 9f90266716
commit cc9de49dba
13 changed files with 246 additions and 0 deletions

18
templates/section.html Normal file
View File

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ section.title }}</h1>
<h2>Content</h2>
<pre>{{ section.content }}</pre>
{% if section.resources %}
<h2>Resources</h2>
<ul>
{% for resource in section.resources %}
<li><a href="{{ resource }}" target="_blank">{{ resource }}</a></li>
{% endfor %}
</ul>
{% endif %}
<a href="/{{ request.path.split('/')[1] }}">Back to All Sections</a>
{% endblock %}