Commit 2649cfbb authored by eric's avatar eric
Browse files

Make language available as metadata, encode the language as a class on the home-page list

parent 6d56b5d6
......@@ -77,6 +77,7 @@ short_names = {
"http://purl.org/dc/terms/title" : "title",
"http://purl.org/dc/terms/creator" : "author",
"http://purl.org/dc/terms/created" : "date",
"http://purl.org/dc/terms/language" : "language",
}
def query_results_to_template_articles(query_results):
......
......@@ -17,7 +17,7 @@
{% block content %}
<ul>{% for article in articles %}
<li>{{ article.author }} <a href="{{ article.href }}">{{ article.title }}</a></li>
<li class="{{ article.language }}">{{ article.author }} <a href="{{ article.href }}">{{ article.title }}</a></li>
{% endfor %}</ul>
{% endblock %}
......
......@@ -23,7 +23,7 @@
{% block head_meta %}{% if meta %}
{% if meta.title %}<meta property="dc:title" content="{{ meta.title|natural_join:'et' }}" />{% endif %}
{% if meta.title %}<meta property="dc:title" content="{{ meta.title|natural_join:'et' }}" />{% endif %}
{% if meta.language %}{% for language in meta.language %}<meta property="dc:language" content="{{ language|lower }}" />{% endfor %}{% endif %}
{% endif %}{% endblock %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment