Skip to content

Commit

Permalink
Merge pull request #187 from archivesspace/TD-1-edit-page-btn
Browse files Browse the repository at this point in the history
TD-1: Add edit page and report issue links to every page
  • Loading branch information
thimios authored Sep 24, 2024
2 parents 890b982 + 56e2672 commit d922689
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ github: # recreate gh-pages api
repository_nwo: archivesspace/tech-docs
owner_url: https://github.com/archivesspace
owner_name: ArchivesSpace
edit_base_url: https://github.com/archivesspace/tech-docs/edit/master/

jira_issues: https://archivesspace.atlassian.net/jira/software/projects/TD/issues
76 changes: 76 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

{% seo %}
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
{% include head-custom.html %}
</head>
<body>
<div class="wrapper">
<header>
<h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1>

{% if site.logo %}
<img src="{{site.logo | relative_url}}" alt="Logo" />
{% endif %}

<p>{{ site.description | default: site.github.project_tagline }}</p>

{% if site.github.is_project_page %}
<p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ site.github.repository_nwo }}</small></a></p>
{% endif %}

{% if site.github.is_user_page %}
<p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p>
{% endif %}

{% if site.show_downloads %}
<ul class="downloads">
<li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
<li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li>
<li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li>
</ul>
{% endif %}

<p>
<a
href="{{ site.github.edit_base_url }}{{ page.path }}"
title="Edit {{ page.path }} on GitHub"
>
Edit this page on GitHub
<small>{{ page.path }}</small>
</a>
</p>

<p>
<a
href="{{ site.jira_issues }}"
title="Report issue with {{ page.path }} on Jira"
>
Report issue on Jira
<small>{{ page.path }}</small>
</a>
</p>
</header>
<section>

{{ content }}

</section>
<footer>
{% if site.github.is_project_page %}
<p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
{% endif %}
<p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
</footer>
</div>
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
</body>
</html>

0 comments on commit d922689

Please sign in to comment.