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 2020/03/31 21:10:03 UTC

[camel-website] branch master updated: chore: add Netlify attribution

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 852b64f  chore: add Netlify attribution
852b64f is described below

commit 852b64fd9823386df585c4cbf809735616e4de10
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Tue Mar 31 22:55:09 2020 +0200

    chore: add Netlify attribution
    
    This adds Netlify attribution when the website is built and served from
    Netlify.
---
 layouts/partials/footer.html | 3 +++
 netlify.toml                 | 1 +
 2 files changed, 4 insertions(+)

diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 0b28390..ba8e969 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -35,6 +35,9 @@
                 Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of
                 The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of
                 their respective owners.
+                {{ if and (not .Page.Section) (eq (getenv "HUGO_ENV") "netlify") }}
+                    <a href="https://netlify.com">This site is powered by Netlify</a>
+                {{ end }}
             </p>
         </div>
     </footer>
diff --git a/netlify.toml b/netlify.toml
index 7ac7408..8328d80 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -1,2 +1,3 @@
 [build]
   command = "(cd antora-ui-camel && yarn --non-interactive --frozen-lockfile install && yarn --non-interactive --frozen-lockfile build) && yarn --non-interactive --frozen-lockfile install && yarn --non-interactive --frozen-lockfile build"
+  environment = { HUGO_ENV = "netlify" }