<h1><a href="/" class="link-light">Notes</a></h1>
</div>
-{% block content %}{% endblock %}
+ <div id="content" class="container mt-5">
+ {% block content %}{% endblock %}
+ </div>
</body>
</html>
\ No newline at end of file
{% block title %}Notes - {{ note.title }}{% endblock %}
{% block content %}
- <article class="container mt-5">
+ <article>
<h2>{{ note.title }}</h2>
{{ note.content|linebreaksbr|markdownify }}
<p>Date: {{ note.created_at|date:"Y-m-d H:i" }}</p>
{% block content %}
{% for note in notes_page %}
<article class="container mt-5">
- <h2>{{ note.title }}</h2>
- <p>ID: {{ note.id }}</p>
+ <h2><a href="{{ note.get_absolute_url }}" class="link-dark">{{ note.title }}</a></h2>
<div>{{ note.content|linebreaksbr|markdownify }}</div>
- <p>Link: <a href="{{ note.get_absolute_url }}">View</a></p>
<p>Date: {{ note.created_at|date:"Y-m-d H:i" }}</p>
</article>
{% empty %}
{% endifnotequal %}
{% endfor %}
</ul>
-
- <p>Number of notes: {{ notes_count }}</p>
{% endblock %}
\ No newline at end of file