Show Wikipedia article extract on Flickr search results page
Fetches the introductory paragraph from the Wikipedia API so users can see what/who they're looking for when browsing Flickr search results. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
32e81c2d93
commit
937735c396
2 changed files with 27 additions and 0 deletions
|
|
@ -63,6 +63,7 @@
|
|||
<p><a href="{{ url_for('category_search', cat=cat) }}">← Back to category</a></p>
|
||||
{% endif %}
|
||||
<p>Wikipedia article: {{ name }}</p>
|
||||
{% if wikipedia_extract %}<p class="text-muted">{{ wikipedia_extract }}</p>{% endif %}
|
||||
<form action="{{ url_for(request.endpoint) }}" class="mb-3 d-flex align-items-center gap-2">
|
||||
<input type="hidden" name="enwp" value="{{ enwp }}">
|
||||
{% if cat %}<input type="hidden" name="cat" value="{{ cat }}">{% endif %}
|
||||
|
|
@ -151,6 +152,7 @@
|
|||
<p><a href="{{ url_for('category_search', cat=cat) }}">← Back to category</a></p>
|
||||
{% endif %}
|
||||
<p>Wikipedia article: {{ name }}</p>
|
||||
{% if wikipedia_extract %}<p class="text-muted">{{ wikipedia_extract }}</p>{% endif %}
|
||||
<form action="{{ url_for(request.endpoint) }}" class="mb-3 d-flex align-items-center gap-2">
|
||||
<input type="hidden" name="enwp" value="{{ enwp }}">
|
||||
{% if cat %}<input type="hidden" name="cat" value="{{ cat }}">{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue