--- /dev/null
+{% load markdownify %}
+<article class="container mt-5">
+ <h2><a href="{{ note.get_absolute_url }}" class="link-dark">{{ note.title }}</a></h2>
+ <div class="mt-3">{{ note.content|linebreaksbr|markdownify }}</div>
+ <p class="fst-italic" style="font-size: smaller;">Published on {{ note.created_at|date:"Y-m-d, H:i" }}</p>
+</article>
\ No newline at end of file
<div id="content" class="container mt-5">
{% block content %}{% endblock %}
</div>
+
+ <div class="container-fluid p-5 bg-dark text-white text-center mt-5">
+ <div class="row">
+ <div class="col-sm">
+ <ul>
+ <li>Row 1</li>
+ </ul>
+ </div>
+ <div class="col-sm">
+ <ul>
+ <li>Row 2</li>
+ </ul>
+ </div>
+ <div class="col-sm">
+ <ul>
+ <li>Row 3</li>
+ </ul>
+ </div>
+ </div>
+ </div>
</body>
</html>
\ No newline at end of file
{% block title %}Notes - {{ note.title }}{% endblock %}
{% block content %}
- <article>
- <h2>{{ note.title }}</h2>
- {{ note.content|linebreaksbr|markdownify }}
- <p>Date: {{ note.created_at|date:"Y-m-d H:i" }}</p>
- </article>
+{% include "note.html" %}
{% endblock %}
\ No newline at end of file
{% extends "note_base.html" %}
-{% load markdownify %}
{% block title %}Notes{% endblock %}
{% block content %}
{% for note in notes_page %}
- <article class="container mt-5">
- <h2><a href="{{ note.get_absolute_url }}" class="link-dark">{{ note.title }}</a></h2>
- <div>{{ note.content|linebreaksbr|markdownify }}</div>
- <p>Date: {{ note.created_at|date:"Y-m-d H:i" }}</p>
- </article>
+ {% include "note.html" %}
{% empty %}
<p>No notes</p>
{% endfor %}
- <ul class="pagination">
+ <ul class="pagination mt-5">
{% for page in pages %}
{% ifnotequal page.number page_number %}
<li class="page-item"><a href="?page={{ page.number }}" class="page-link">{{ page.number }}</a></li>