Skip to content

Commit f38c5d3

Browse files
authored
Link to edit page directly (#1607)
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 f38c5d3

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)