-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e9ed2a
commit 8fb65c3
Showing
5 changed files
with
47 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- Actions - only if content is not generated --> | ||
{% if not page.meta.generated and page.edit_url %} | ||
|
||
<!-- Edit button --> | ||
{% if "content.action.edit" in features %} | ||
<a | ||
href="{{ page.edit_url }}" | ||
title="{{ lang.t('action.edit') }}" | ||
class="md-content__button md-icon" | ||
> | ||
{% set icon = config.theme.icon.edit or "material/file-edit-outline" %} | ||
{% include ".icons/" ~ icon ~ ".svg" %} | ||
</a> | ||
{% endif %} | ||
|
||
<!-- View button --> | ||
{% if "content.action.view" in features %} | ||
{% if "/blob/" in page.edit_url %} | ||
{% set part = "blob" %} | ||
{% else %} | ||
{% set part = "edit" %} | ||
{% endif %} | ||
<a | ||
href="{{ page.edit_url | replace(part, 'raw') }}" | ||
title="{{ lang.t('action.view') }}" | ||
class="md-content__button md-icon" | ||
> | ||
{% set icon = config.theme.icon.view or "material/file-eye-outline" %} | ||
{% include ".icons/" ~ icon ~ ".svg" %} | ||
</a> | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% include "partials/giscus.html" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters