You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2020/10/23 13:58:11 UTC

[lucenenet] 07/08: website: added Google ads

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

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 0bdae67be839db764cb0f8ec4672010f676996aa
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Oct 23 19:32:48 2020 +0700

    website: added Google ads
---
 websites/site/docfx.json                                        | 3 ++-
 websites/site/lucenetemplate/ads.txt                            | 1 +
 websites/site/lucenetemplate/partials/head-content.tmpl.partial | 1 +
 websites/site/lucenetemplate/partials/head.tmpl.partial         | 1 +
 4 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/websites/site/docfx.json b/websites/site/docfx.json
index d37ec8d..340d65b 100644
--- a/websites/site/docfx.json
+++ b/websites/site/docfx.json
@@ -23,7 +23,8 @@
       },
       {
         "files": [
-          "doap_Lucene_Net.rdf"
+          "doap_Lucene_Net.rdf",
+          "ads.txt"
         ],
         "src": "lucenetemplate"
       }
diff --git a/websites/site/lucenetemplate/ads.txt b/websites/site/lucenetemplate/ads.txt
new file mode 100644
index 0000000..1979b65
--- /dev/null
+++ b/websites/site/lucenetemplate/ads.txt
@@ -0,0 +1 @@
+google.com, pub-3370160606703795, DIRECT, f08c47fec0942fa0
\ No newline at end of file
diff --git a/websites/site/lucenetemplate/partials/head-content.tmpl.partial b/websites/site/lucenetemplate/partials/head-content.tmpl.partial
index e95c2d6..dfbee2c 100644
--- a/websites/site/lucenetemplate/partials/head-content.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/head-content.tmpl.partial
@@ -21,6 +21,7 @@
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/academicons/1.8.0/css/academicons.min.css" integrity="sha512-GGGNUPDhnG8LEAEDsjqYIQns+Gu8RBs4j5XGlxl7UfRaZBhCCm5jenJkeJL8uPuOXGqgl8/H1gjlWQDRjd3cUQ==" crossorigin="anonymous">
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha512-SfTiTlX6kk+qitfevl/7LibUOeJWlt9rbyDn92a1DqWOw9vWG2MFoays0sgObmWazO5BQPiFucnnEAjpAB+/Sw==" crossorigin="anonymous">
   
+  <script data-ad-client="ca-pub-3370160606703795" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
   <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather%7CRoboto+Mono">
   <link rel="stylesheet" href="/styles/site.css">
 
diff --git a/websites/site/lucenetemplate/partials/head.tmpl.partial b/websites/site/lucenetemplate/partials/head.tmpl.partial
index 2a02a27..a6d0aee 100644
--- a/websites/site/lucenetemplate/partials/head.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/head.tmpl.partial
@@ -18,6 +18,7 @@
   {{#_enableSearch}}<meta property="docfx:rel" content="{{_rel}}">{{/_enableSearch}}
   {{#_enableNewTab}}<meta property="docfx:newtab" content="true">{{/_enableNewTab}}
 
+  <script data-ad-client="ca-pub-3370160606703795" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
   <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather%7CRoboto+Mono">
   <link rel="stylesheet" href="/styles/site.css">