You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by bm...@apache.org on 2021/09/03 19:59:49 UTC

[shiro-site] 06/06: [Freemarker] Fix missing "edit on GitHub" link

This is an automated email from the ASF dual-hosted git repository.

bmarwell pushed a commit to branch jbake
in repository https://gitbox.apache.org/repos/asf/shiro-site.git

commit 9c02d222076e714178a0499a1001e0b5200bb6ab
Author: Benjamin Marwell <bm...@apache.org>
AuthorDate: Fri Sep 3 21:47:29 2021 +0200

    [Freemarker] Fix missing "edit on GitHub" link
---
 jbake/assets/js/shiro.js   | 1 +
 jbake/templates/footer.ftl | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/jbake/assets/js/shiro.js b/jbake/assets/js/shiro.js
index 60fa211..3de1d33c 100644
--- a/jbake/assets/js/shiro.js
+++ b/jbake/assets/js/shiro.js
@@ -13,6 +13,7 @@ function addPageEditLink() {
         let editPageLink = document.createElement('a');
         editPageLink.setAttribute('href', ghEditHref);
         editPageLink.setAttribute('rel', 'nofollow');
+        editPageLink.text = "Edit this page on GitHub";
         editThisPageElement.append(editPageLink);
     }
 }
diff --git a/jbake/templates/footer.ftl b/jbake/templates/footer.ftl
index e349f57..e8ce264 100644
--- a/jbake/templates/footer.ftl
+++ b/jbake/templates/footer.ftl
@@ -20,7 +20,7 @@
           <a class="btn btn-social"><span class="social-icon social-linkedin"><i class="bi bi-linkedin"></i></span></a>
         </div>
 
-        <ul class="d-flex justify-content-end col-md-5" style="position: relative">
+        <ul class="d-flex justify-content-end col-md-5" style="position: relative" id="editThisPage">
           <#if (content.file)??><input type="hidden" id="ghEditPage" value="${content.file}"></input></#if>
           <div class="footer-shield"></div>
         </ul>