Skip to content

Commit

Permalink
Add links to edit posts/pages in line.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlapenna committed Jul 6, 2023
1 parent dacc1d5 commit ea1c5bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<nav class="site-footer-nav">
{{navigation type="secondary"}}
</nav>
{{{block "edit-link"}}}
</div>
</footer>

Expand Down
3 changes: 3 additions & 0 deletions page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ into the {body} tag of the default.hbs template --}}
</article>
</main>

{{#contentFor "edit-link"}}
<a href="/ghost/#/editor/page/{{id}}">Edit</a>
{{/contentFor}}
{{/post}}
3 changes: 3 additions & 0 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,7 @@ into the {body} tag of the default.hbs template --}}
{{/get}}
{{/if}}

{{#contentFor "edit-link"}}
<a href="/ghost/#/editor/post/{{id}}">Edit</a>
{{/contentFor}}
{{/post}}

0 comments on commit ea1c5bb

Please sign in to comment.