Skip to content

Commit d059cb1

Browse files
committed
Link to edit page directly
Contributors may click on the "fix a typo" link while reading a specific post. When that only leads to the repo, it takes extra effort to find the specific file to edit. Linking to that file directly is more convenient. Even if contributors don't want to use the GitHub editor, it at least tells them the exact path of the file in the repo.
1 parent 62bb295 commit d059cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h4 class="mt4 mb3">RSS</h4>
3838
</div>
3939
<div class="attribution">
4040
Maintained by the Rust Team. See a typo?
41-
<a href="https://github.com/rust-lang/blog.rust-lang.org" target="_blank" rel="noopener">Send a fix here</a>!
41+
<a href="https://github.com/rust-lang/blog.rust-lang.org{% if page %}/edit/master/content/{{ page.relative_path }}{% endif %}" target="_blank" rel="noopener">Send a fix here</a>!
4242
</div>
4343
</div>
4444
</footer>

0 commit comments

Comments
 (0)