8000 SVG or raster logo? · Issue #86 · pawroman/zola-theme-terminimal · GitHub
[go: up one dir, main page]

Skip to content

SVG or raster logo? #86

Open
Open

Description

@anirbanbasu

Is there a way to set a SVG logo? Or, a raster image logo, such as a PNG?

Activity

  1. heitorPB commented on Apr 15, 2026

    @heitorPB
    Contributor

    Where is this logo used?

  2. anirbanbasu commented on Apr 15, 2026

    @anirbanbasu
    Author

    Sorry for the lack of clarity earlier: I meant the logo on the header of the website. At present, a text logo can be specified in zola.toml within the [extra] as logo_text. Is there a way to load a SVG or a PNG instead?

  3. anirbanbasu commented on Apr 15, 2026

    @anirbanbasu
    Author

    I suppose the answer is no based on the following code snippet.

    <div class="header__logo">
    {%- if config.extra.logo_home_link %}
    {% set logo_link = config.extra.logo_home_link %}
    {% else %}
    {% set logo_link = config.base_url %}
    {% endif -%}
    <a href="{{ logo_link | safe }}" style="text-decoration: none;">
    <div class="logo">
    {% block logo_content %}
    {%- if config.extra.logo_text %}
    {{ config.extra.logo_text }}
    {% else %}
    Terminimal theme
    {% endif -%}
    {% endblock logo_content %}
    </div>
    </a>
    </div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0