Skip to content

feat: add GitHub edit and issue buttons to curriculum pages (#552) #1507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion common-theme/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <!<![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <![endif]-->
<html lang="en" class="p-{{ (.Layout | default .Kind ) | urlize | lower }}">
{{- partial "head.html" . -}}
<body>
Expand All @@ -15,8 +15,19 @@
class="l-layout__main l-main"
tabindex="0"
data-pagefind-body>

{{ block "main" . }}{{ end }}

<!-- 📝 GitHub Edit & Issue Links -->
<div style="margin-top: 2rem; text-align: right; font-size: 0.95em;">
<a href="https://github.com/CodeYourFuture/curriculum/edit/main/{{ .File.Path }}" target="_blank" style="margin-right: 1em;">
📝 Edit this page on GitHub
</a>
<a href="https://github.com/CodeYourFuture/curriculum/issues/new?title=Issue%20with%20{{ .File.Path }}&body=Describe%20the%20problem..." target="_blank">
🐛 Open an issue for this page
</a>
</div>

{{ partial "page-footer.html" . }}
</main>
{{- partialCached "foot.html" . -}}
Expand Down