-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.html
More file actions
40 lines (37 loc) · 1.49 KB
/
search.html
File metadata and controls
40 lines (37 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{% extends 'base.html' %}
{% block content %}
<section id="archive">
<header class="major">
<h2>Search Result</h2>
</header>
<div>
{% for blog in blogs %}
<article>
<a href="{% url 'content:blog_single' blog.slug %}" title="{{ blog.title }}">
<h3>{{ blog.title }}</h3>
</a>
<p>{{ blog.content | safe | truncatewords_html:10 }}</p>
</article>
<hr>
{% endfor %}
{% for videocast in videocasts %}
<article>
<a href="{% url 'content:videocast_single' videocast.slug %}" title="{{ videocast.title }}">
<h3>{{ videocast.title }}</h3>
</a>
<p>{{ videocast.content | safe | truncatewords_html:10 }}</p>
</article>
<hr>
{% endfor %}
{% for podcast in podcasts %}
<article>
<a href="{% url 'content:podcast_single' podcast.slug %}" title="{{ podcast.title }}">
<h3>{{ podcast.title }}</h3>
</a>
<p>{{ podcast.content | safe | truncatewords_html:10 }}</p>
</article>
<hr>
{% endfor %}
</div>
</section>
{% endblock %}