Sha256: d90eb2c9aa1dc30d45775e33f2b435813094ba3571c61f0c40a5131123390d27

Contents?: true

Size: 1.59 KB

Versions: 10

Compression:

Stored size: 1.59 KB

Contents

{% comment %}
 # -----------------------------------------------------------------------------
 #  ~/_includes/themes/j1/procedures/provider/ad/google-adsense.html
 #  Support of advertising provider Google Adsense for J1 Template
 #
 #  Product/Info:
 #  http://jekyll.one
 #
 #  Copyright (C) 2020 Juergen Adams
 #
 #  J1 Template is licensed under the MIT License.
 #  See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
 # -----------------------------------------------------------------------------
 # Test data:
 #  liquid_var:  {{ liquid_var | debug }}
 # -----------------------------------------------------------------------------
{% endcomment %}

{% comment %} Liquid procedures
-------------------------------------------------------------------------------- {% endcomment %}

{% comment %} Variables
-------------------------------------------------------------------------------- {% endcomment %}
{% assign publisher_id = site.data.template_settings.advertising.google.publisher_id %}

{% comment %} Main
-------------------------------------------------------------------------------- {% endcomment %}

<script data-ad-client="{{publisher_id}}"
    async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
</script>

{% comment %} Old Ads code
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "{{publisher_id}}",
    enable_page_level_ads: true
  });
</script>
-------------------------------------------------------------------------------- {% endcomment %}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
j1-template-2020.0.21 _includes/themes/j1/modules/connectors/ad/google-adsense.html
j1-template-2020.0.20 _includes/themes/j1/modules/connectors/ad/google-adsense.html
j1-template-2020.0.19 _includes/themes/j1/modules/connectors/ad/google-adsense.html
j1-template-2020.0.18 _includes/themes/j1/modules/connectors/ad/google-adsense.html
j1-template-2020.0.17 _includes/themes/j1/modules/connectors/ad/google-adsense.html
j1-template-2020.0.16 _includes/themes/j1/modules/connectors/ad/google-adsense.html
j1-template-2020.0.15 _includes/themes/j1/modules/connectors/ad/google-adsense.html
j1-template-2020.0.14 _includes/themes/j1/modules/connectors/ad/google-adsense.html
j1-template-2020.0.13 _includes/themes/j1/modules/connectors/ad/google-adsense.html
j1-template-2020.0.12 _includes/themes/j1/modules/connectors/ad/google-adsense.html