Skip to content

Commit

Permalink
Merge pull request #97 from phel-lang/feat/94-no-edit-link-on-api
Browse files Browse the repository at this point in the history
Edit me link broken at documentation/api
  • Loading branch information
Chemaclass authored Nov 29, 2024
2 parents ec90662 + 8fb5090 commit abcb1b7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 1 addition & 4 deletions templates/layouts/two-column-layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
{% include "navigation/site-navigation.html" %}
</aside>
<main class="two-column-layout__content">
<span class="found-a-typo">
{% set url = config.extra.repo_content_url ~ page.relative_path %}
<a href="{{url}}">Edit me</a>
</span>
{% block editable %} {% endblock %}
{% block content %} {% endblock %}

{% include "footer.html" %}
Expand Down
1 change: 1 addition & 0 deletions templates/page-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>{{ page.title }} | {{ config.title }}</title>
<meta property="og:title" content="{{ page.title }} | {{ config.title }}" />
{% endblock meta_content %}

{% block content %}
<h1>{{page.title}}</h1>

Expand Down
8 changes: 8 additions & 0 deletions templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>{{ page.title }} | {{ config.title }}</title>
<meta property="og:title" content="{{ page.title }} | {{ config.title }}" />
{% endblock meta_content %}

{% block content %}
<h1>{{page.title}}</h1>
<aside>
Expand All @@ -15,3 +16,10 @@ <h1>{{page.title}}</h1>
</div>
</div>
{% endblock content %}

{% block editable %}
<span class="found-a-typo">
{% set url = config.extra.repo_content_url ~ page.relative_path %}
<a href="{{url}}">Edit me</a>
</span>
{% endblock editable %}

0 comments on commit abcb1b7

Please sign in to comment.