Skip to content
This repository was archived by the owner on Dec 19, 2022. It is now read-only.

Commit 560a96d

Browse files
feat(): Allow to specify the logo click (#68)
Use _appLogoClickUrl to specify where it should redirect the user
1 parent d717330 commit 560a96d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

_includes/header.liquid

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<nav class="navbar navbar-expand-md navbar-dark">
22
<div class="container-xxl">
3-
<a class="navbar-brand" href="{{ page._rel }}">
3+
{%- if page._appLogoClickUrl -%}
4+
{%- assign headerLogoUrl = page._appLogoClickUrl -%}
5+
{%- else -%}
6+
{%- assign headerLogoUrl = page._rel -%}
7+
{%- endif -%}
8+
<a class="navbar-brand" href="{{ headerLogoUrl }}">
49
{%- if page._appLogoPath -%}
510
<img src="{{ page._appLogoPath }}">
611
{%- endif -%}

0 commit comments

Comments
 (0)