Skip to content

Commit

Permalink
fix(frontend): ensure app logo can be parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Feb 8, 2022
1 parent 7b94c39 commit fd315a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/components/footer/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</nav>
{%- endif %}
{%- if opts.logo %}
<a class="footer__logo" href="{{ opts.logo.href }}">
<img class="u-logo" src="{{ opts.logo.src }}" alt="{{ opts.logo.alt }}" height="16" width="16"/>
<a class="footer__logo h-x-app" href="{{ opts.logo.href }}">
<img class="u-logo p-name" src="{{ opts.logo.src }}" alt="{{ opts.logo.alt }}" height="16" width="16"/>
</a>
{%- endif %}
</div>
Expand Down
5 changes: 3 additions & 2 deletions packages/frontend/layouts/default.njk
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{%- from "summary/macro.njk" import summary -%}
{%- from "textarea/macro.njk" import textarea -%}
<!DOCTYPE html>
<html lang="{{ application.locale }}" dir="ltr" class="h-x-app color-scheme--{{ application.themeColorScheme }}">
<html lang="{{ application.locale }}" dir="ltr" class="color-scheme--{{ application.themeColorScheme }}">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
Expand All @@ -34,6 +34,7 @@

{%- set appClasses = "app" + (" " + appClasses if appClasses) + (" app--minimalui" if minimalui) -%}
<body class="{{ appClasses }}">

{%- block header %}
{{ header({
url: application.url,
Expand All @@ -56,7 +57,7 @@
logo: {
href: 'https://getindiekit.com',
src: application.url + assetPath | default("/assets") + "/icon.svg",
alt: "Powered by Indiekit"
alt: application.name
},
navigation: [{
href: application.repository.url | replace('.git', '') + "/releases/tag/v" + application.version,
Expand Down

0 comments on commit fd315a5

Please sign in to comment.