Skip to content

Commit

Permalink
Merge pull request not-matthias#83 from nrdxp/main
Browse files Browse the repository at this point in the history
fix: repo_view should be settable in the config
  • Loading branch information
not-matthias authored Dec 27, 2024
2 parents 7b85d52 + a12e20f commit e9ca2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/macros/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h1 class="title">
{% endif %}

{# View the page on GitHub #}
{% if page.extra.repo_view | default(value=false) %}
{% if page.extra.repo_view | default(value=config.extra.repo_view) | default(value=false) %}
{# Use the page's repo_url if defined, otherwise use the global edit_repo_url #}
{% if page.extra.repo_url is defined %}
{% set repo_url = page.extra.repo_url %}
Expand Down

0 comments on commit e9ca2ba

Please sign in to comment.