diff --git a/invenio_theme_tugraz/config.py b/invenio_theme_tugraz/config.py index c1719cb..eb6e51c 100644 --- a/invenio_theme_tugraz/config.py +++ b/invenio_theme_tugraz/config.py @@ -25,6 +25,9 @@ INVENIO_THEME_TUGRAZ_ICON = 'images/icon_use.png' THEME_LOGO = 'images/tug_logo.png' """TU Graz logo""" +THEME_SEARCHBAR = False +"""Enable or disable the header search bar.""" + THEME_HEADER_TEMPLATE = 'invenio_theme_tugraz/header.html' """TU Graz header template""" diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index 94646ca..8350109 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -14,6 +14,25 @@ {%- block page_body %} + +{%- block frontpage_search %} + + {%- block frontpage_form %} +
+
+
+
+ + +
+
+
+
+ + {%- endblock frontpage_form %} + +{%- endblock frontpage_search %} +
@@ -66,7 +85,11 @@ {%- if not loop.last %}
{%- else%} - {{_('More')}} +
+ +
{%- endif %} {%- endfor %}
diff --git a/invenio_theme_tugraz/views.py b/invenio_theme_tugraz/views.py index 8216ed7..ff5d20c 100644 --- a/invenio_theme_tugraz/views.py +++ b/invenio_theme_tugraz/views.py @@ -26,4 +26,4 @@ def index(): """Render frontpage view.""" return render_template( "invenio_theme_tugraz/index.html", - records=FrontpageRecordsSearch()[:10].sort('-_created').execute(),) + records=FrontpageRecordsSearch()[:5].sort('-_created').execute(),)