Skip to content

Commit eea461b

Browse files
committed
add flag to enable links and remove ext icon
1 parent 67b49c1 commit eea461b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permalink: /:categories/:title/
1010

1111
exclude: ['js', '_site', '*.sketch']
1212
# Build settings
13+
os_links: false
1314
markdown: kramdown
1415
highlighter: rouge
1516
defaults:

src/_includes/sidebar/edit-tools.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
{% if site.os_links %}
12
<div>
2-
<a href="https://github.com/segmentio/segment-docs/edit/master/src/{{ page.path }}" class="button edit flex" target="_blank">
3+
<a href="https://github.com/segmentio/segment-docs/edit/master/src/{{ page.path }}" class="button edit flex no-icon" target="_blank">
34
<span class="button__icon">{% include icons/symbols/edit.svg %}</span>
45

56
<span class="button__text">Edit this page</span>
67
</a>
78

8-
<a href="https://github.com/segmentio/segment-docs/issues/new?body=File:%20[{{ page.path }}](https://segment.com/docs/)" class="button edit" target="_blank">
9+
<a href="https://github.com/segmentio/segment-docs/issues/new?body=File:%20[{{ page.path }}](https://segment.com/docs/)" class="button edit no-icon" target="_blank">
910
<span class="button__icon">{% include icons/symbols/plus.svg %}</span>
1011

1112
<span class="button__text">Request docs change</span>
1213
</a>
1314
</div>
15+
{% endif %}

0 commit comments

Comments
 (0)