Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix report icon not displayed #1370

Merged
merged 2 commits into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/_includes/page-github-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
{% endcomment -%}

{% assign repo = page.repo | default: site.repo.this -%}
{% capture path -%} {{repo}}/tree/{{site.branch}}/{{site.source}}/{{page.path}} {%- endcapture -%}
{% capture path -%} {{repo}}/blob/{{site.branch}}/{{site.source}}/{{page.path}} {%- endcapture -%}
{% assign title = page.title | default: page.url -%}
{% assign url = site.url | append: page.url -%}

{% capture issueTitle -%} title=[PAGE ISSUE]: '{{title}}' {%- endcapture -%}
{% capture issueTitle -%} title=[页面问题] '{{title}}' {%- endcapture -%}

<div id="page-github-links" class="btn-group" aria-label="Page GitHub links" role="group">
<a href='{{path | replace_first:"docs/", ""}}' class="btn no-automatic-external" title="查看文档源码" target="_blank" rel="noopener">
<i class="fas fa-file-alt fa-sm"></i>
<i class="material-icons">description</i>
</a>
<a href="{{repo}}/issues/new?template=1_page_issue.yml&{{issueTitle}}&page-url={{url | replace_first:'docs/', ''}}&page-source={{path | replace_first:'docs/', ''}}" class="btn no-automatic-external" title="为本页面内容提出建议"
target="_blank" rel="noopener">
<i class="fas fa-bug fa-sm"></i>
<i class="material-icons">bug_report</i>
</a>
</div>
Loading