diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2014-03-18 18:20:10 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2014-03-18 18:20:10 +0100 |
| commit | 018a14431bd3612db4e8840ce24f3e60026ece0f (patch) | |
| tree | 18c7f0ed489c0c0f206ac1f0a191b1ce0ab045b2 /searx/templates | |
| parent | faed14b2c691746ba6cf98d164a5e6b1ca3ee4c9 (diff) | |
| parent | 993271bed30e24c7ae1e0f63b64e030829206f27 (diff) | |
Merge pull request #57 from pointhi/results
improving publishDate extraction and output of it
Diffstat (limited to 'searx/templates')
| -rw-r--r-- | searx/templates/opensearch_response_rss.xml | 1 | ||||
| -rw-r--r-- | searx/templates/result_templates/videos.html | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/searx/templates/opensearch_response_rss.xml b/searx/templates/opensearch_response_rss.xml index 417b195a3..5673eb2e1 100644 --- a/searx/templates/opensearch_response_rss.xml +++ b/searx/templates/opensearch_response_rss.xml @@ -16,6 +16,7 @@ <title>{{ r.title }}</title> <link>{{ r.url }}</link> <description>{{ r.content }}</description> + {% if r.pubdate %}<pubDate>{{ r.pubdate }}</pubDate>{% endif %} </item> {% endfor %} </channel> diff --git a/searx/templates/result_templates/videos.html b/searx/templates/result_templates/videos.html index d3391f0d3..ab869a6eb 100644 --- a/searx/templates/result_templates/videos.html +++ b/searx/templates/result_templates/videos.html @@ -5,6 +5,7 @@ <p> <h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3> + {% if result.publishedDate %}<p class="published_date">{{ result.publishedDate }}</p>{% endif %} <a href="{{ result.url }}"><img width="400px" src="{{ result.thumbnail }}" title={{ result.title }} alt=" {{ result.title }}"/></a> <p class="url">{{ result.url }}</p> </p> |