Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
baseurl: "/open-source-handbook"
branch: gh-pages

google_tracking_id: UA-3769691-29
exclude:
- config.ru
Expand Down
8 changes: 8 additions & 0 deletions _layouts/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ <h1>{{ page.title }}</h1>
</div>
{% endif %}

<div class="toc-wrapper">
<a class="light-button" href="https://github.com/{{ site.github.repository_nwo }}/edit/{{ site.branch }}/{{ page.path }}">
<span class="octicon octicon-pencil"></span>
Suggest edits
</a>
</div>


<div class="markdown-body content-body {% if page.full_width %}full-width{% endif %}">
{{ content }}

Expand Down
18 changes: 18 additions & 0 deletions stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -498,3 +498,21 @@ ol.toc>li a.active {
padding: 0;
}
}

.light-button {
color: #bbb;
font-size: 13px;
padding: 5px 10px;
border-radius: 4px;
border: 1px solid #eee;

&:hover {
color: #999;
background: #fafafa;
}

.octicon {
font-size: inherit;
margin-right: 2px;
}
}