mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2026-08-17 00:42:50 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca9b574669 | ||
|
|
0d544fdc8e | ||
|
|
154d77e187 | ||
|
|
c177eaffc3 |
@@ -8,4 +8,4 @@
|
|||||||
|
|
||||||
"""Metadata for this python module."""
|
"""Metadata for this python module."""
|
||||||
|
|
||||||
__version__ = "2026.8.13"
|
__version__ = "2026.8.14"
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
"""invenio module for I-Form theme."""
|
"""invenio module for I-Form theme."""
|
||||||
|
|
||||||
from flask_babel import lazy_gettext as _
|
from flask_babel import lazy_gettext as _
|
||||||
|
|
||||||
I18N_LANGUAGES = [
|
I18N_LANGUAGES = [
|
||||||
("en", _("English")),
|
("en", _("English")),
|
||||||
("ga", _("Irish")),
|
("ga", _("Irish")),
|
||||||
@@ -53,6 +54,9 @@ THEME_500_TEMPLATE = "invenio_theme_iform/default_error.html"
|
|||||||
THEME_LOGO = "images/iform_logo.png"
|
THEME_LOGO = "images/iform_logo.png"
|
||||||
"""I-Form logo"""
|
"""I-Form logo"""
|
||||||
|
|
||||||
|
THEME_FAVICON = "images/iform-favicon.ico"
|
||||||
|
"""I-Form favicon"""
|
||||||
|
|
||||||
THEME_SEARCHBAR = False
|
THEME_SEARCHBAR = False
|
||||||
"""Enable or disable the header search bar."""
|
"""Enable or disable the header search bar."""
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 330 KiB After Width: | Height: | Size: 330 KiB |
@@ -39,7 +39,7 @@
|
|||||||
<title>{{ title }}</title>
|
<title>{{ title }}</title>
|
||||||
{%- endblock head_title %}
|
{%- endblock head_title %}
|
||||||
{%- block head_links %}
|
{%- block head_links %}
|
||||||
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" />
|
<link rel="shortcut icon" href="{{ url_for('static', filename=config.THEME_FAVICON or 'images/iform-favicon.ico') }}" />
|
||||||
{%- if keywords %}<link rel="canonical" href="{{ canonical_url }}" />{% endif %}
|
{%- if keywords %}<link rel="canonical" href="{{ canonical_url }}" />{% endif %}
|
||||||
{%- block head_links_langs %}
|
{%- block head_links_langs %}
|
||||||
{%- if alternate_urls %}
|
{%- if alternate_urls %}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
{%- endblock head_title %}
|
{%- endblock head_title %}
|
||||||
|
|
||||||
{%- block head_links %}
|
{%- block head_links %}
|
||||||
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" />
|
<link rel="shortcut icon" href="{{ url_for('static', filename=config.THEME_FAVICON or 'images/iform-favicon.ico') }}" />
|
||||||
|
|
||||||
{%- if keywords %}
|
{%- if keywords %}
|
||||||
<link rel="canonical" href="{{ canonical_url }}" />
|
<link rel="canonical" href="{{ canonical_url }}" />
|
||||||
|
|||||||
+2
-2
@@ -100,12 +100,12 @@ ignore-vcs = true
|
|||||||
|
|
||||||
# Testing configuration
|
# Testing configuration
|
||||||
[tool.pytest]
|
[tool.pytest]
|
||||||
addopts = "--ruff --ruff-format --pydocstyle --doctest-glob=\"*.rst\" --doctest-modules --cov=invenio_config_iform --cov-report=term-missing tests invenio_theme_iform"
|
addopts = "--ruff --ruff-format --pydocstyle --doctest-glob=\"*.rst\" --doctest-modules --cov=invenio_theme_iform --cov-report=term-missing tests invenio_theme_iform"
|
||||||
testpaths = ["tests", "invenio_theme_iform"]
|
testpaths = ["tests", "invenio_theme_iform"]
|
||||||
live_server_scope = "module"
|
live_server_scope = "module"
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = "--ruff --ruff-format --pydocstyle --doctest-glob=\"*.rst\" --doctest-modules --cov=invenio_config_iform --cov-report=term-missing tests invenio_theme_iform"
|
addopts = "--ruff --ruff-format --pydocstyle --doctest-glob=\"*.rst\" --doctest-modules --cov=invenio_theme_iform --cov-report=term-missing tests invenio_theme_iform"
|
||||||
testpaths = ["tests", "invenio_theme_iform"]
|
testpaths = ["tests", "invenio_theme_iform"]
|
||||||
live_server_scope = "module"
|
live_server_scope = "module"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user