You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2019/08/15 11:38:14 UTC

[camel-website] branch master updated: CAMEL-11505: add edit this page link to Hugo bits

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

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/master by this push:
     new a223786  CAMEL-11505: add edit this page link to Hugo bits
a223786 is described below

commit a2237863bbce753e1ac67ca0252b4a9162f457ac
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Thu Aug 15 13:38:10 2019 +0200

    CAMEL-11505: add edit this page link to Hugo bits
---
 antora-ui-camel/src/css/footer.css | 14 ++++++++++++++
 content/_index.md                  |  2 +-
 layouts/partials/footer.html       |  1 +
 3 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/antora-ui-camel/src/css/footer.css b/antora-ui-camel/src/css/footer.css
index f195247..f7b3919 100644
--- a/antora-ui-camel/src/css/footer.css
+++ b/antora-ui-camel/src/css/footer.css
@@ -61,3 +61,17 @@ footer .footer dl dd {
     display: none;
   }
 }
+
+.edit {
+  max-width: var(--static-max-width--desktop);
+  margin: auto;
+  text-align: right;
+}
+
+.edit a {
+  display: inline-block;
+  padding: 0.4rem;
+  background-color: var(--footer-background);
+  color: black;
+  border-radius: 0.4rem 0.4rem  0 0;
+}
diff --git a/content/_index.md b/content/_index.md
index 2fa3abd..50b3c65 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -80,7 +80,7 @@ Camel is an [Apache Software Foundation](https://www.apache.org) project, availa
 
 [Sources](./community/sources/), [mailing lists](./community/mailing-list/), [issue tracker](./community/support/): it's fully open, you can access directly.
 
-We also love contributions: don't hesitate to [contribute](https://github.com/apache/camel/blob/master/CONTRIBUTING.md).
+We also love contributions: don't hesitate to [contribute](https://github.com/apache/camel/blob/master/CONTRIBUTING.md). You can contribute by <a href="https://github.com/apache/camel-website/edit/master/content{{ .File.Path }}">editing this page</a>!
 
 [Be Involved In The Community](https://github.com/apache/camel/blob/master/CONTRIBUTING.md) | [How To Contribute](https://github.com/apache/camel/blob/master/CONTRIBUTING.md)
 
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index d2afb47..7ee6547 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,3 +1,4 @@
+    <div class="edit"><a title="Improve this document, receive free virtual hugs &hearts;" href="https://github.com/apache/camel-website/edit/master/content/{{ .File.Path | replaceRE "^/" "" }}">Edit this Page</a></div>
     <footer>
         <div class="footer">
             <figure class="logo">