Skip to content

Commit abcb1b7

Browse files
authored
Merge pull request #97 from phel-lang/feat/94-no-edit-link-on-api
Edit me link broken at documentation/api
2 parents ec90662 + 8fb5090 commit abcb1b7

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

templates/layouts/two-column-layout.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
{% include "navigation/site-navigation.html" %}
1010
</aside>
1111
<main class="two-column-layout__content">
12-
<span class="found-a-typo">
13-
{% set url = config.extra.repo_content_url ~ page.relative_path %}
14-
<a href="{{url}}">Edit me</a>
15-
</span>
12+
{% block editable %} {% endblock %}
1613
{% block content %} {% endblock %}
1714

1815
{% include "footer.html" %}

templates/page-api.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<title>{{ page.title }} | {{ config.title }}</title>
55
<meta property="og:title" content="{{ page.title }} | {{ config.title }}" />
66
{% endblock meta_content %}
7+
78
{% block content %}
89
<h1>{{page.title}}</h1>
910

templates/page.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<title>{{ page.title }} | {{ config.title }}</title>
55
<meta property="og:title" content="{{ page.title }} | {{ config.title }}" />
66
{% endblock meta_content %}
7+
78
{% block content %}
89
<h1>{{page.title}}</h1>
910
<aside>
@@ -15,3 +16,10 @@ <h1>{{page.title}}</h1>
1516
</div>
1617
</div>
1718
{% endblock content %}
19+
20+
{% block editable %}
21+
<span class="found-a-typo">
22+
{% set url = config.extra.repo_content_url ~ page.relative_path %}
23+
<a href="{{url}}">Edit me</a>
24+
</span>
25+
{% endblock editable %}

0 commit comments

Comments
 (0)