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

Commit fac2a10

Browse files
feat: Support _disableContribution (#49)
* fix(nav): check for relative path * feat(): Add support for _disableContribution
1 parent cdcabe9 commit fac2a10

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

_includes/footer.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{ page._appFooter }}
44
{%- endif -%}
55

6-
{%- if page._githubOwner and page._githubName -%}
6+
{%- if page._disableContribution == false and page._githubOwner and page._githubName -%}
77
<div class="github-star-button">
88
<iframe src="https://ghbtns.com/github-btn?user={{ page._githubOwner }}&repo={{ page._githubName }}&type=star&count=true" frameborder="0" scrolling="0" width="150" height="20" title="GitHub"></iframe>
99
</div>

_includes/main.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
{{ content }}
3636

37-
{%- if page.original_content_git_url -%}
37+
{%- if page._disableContribution == false and page.original_content_git_url -%}
3838
<a class="edit-this-page" href="{{ page.original_content_git_url }}">
3939
<svg xmlns="http://www.w3.org/2000/svg" height="1em" fill="currentColor" stroke="currentColor" viewBox="0 0 448 448">
4040
<path d="M426.01 21.914c-29.252-29.216-76.87-29.22-106.127-.008l-.008-.008-283.91 284.744L0 448l141.236-34.39 285.413-289.5C446.33 104.45 448 93.188 448 74.917c0-20.028-7.81-38.856-21.99-53.002zM44.437 402.99l18.206-72.676c26.932 6.47 48.067 27.627 54.44 54.56L44.436 402.99zm40.297-99.93L307.14 80.91l59.81 59.707-222.55 222.28c-10.78-27.27-32.407-48.978-59.667-59.837zm318.163-198.245l-.058-.042-12.72 12.7-59.807-59.71L343.04 45.05l.008.008c16.516-16.463 43.338-16.463 59.79 0 8.002 7.976 12.387 18.573 12.387 29.857 0 11.268-4.385 21.865-12.387 29.84l.058.06z"/>

0 commit comments

Comments
 (0)