add Ads to docs
This commit is contained in:
		@@ -20,11 +20,25 @@
 | 
			
		||||
<main class="main">
 | 
			
		||||
	<div class="drawer">
 | 
			
		||||
		{{ partial "drawer" . }}
 | 
			
		||||
	</div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
	<article class="article">
 | 
			
		||||
		<div class="wrapper">
 | 
			
		||||
			<h1>{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}</h1>
 | 
			
		||||
 | 
			
		||||
            <!-- ------------------------------------------------------------------------- -->
 | 
			
		||||
            <!-- Google Ads -->
 | 
			
		||||
            <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
 | 
			
		||||
            <!-- Laradock Horizontal -->
 | 
			
		||||
            <ins class="adsbygoogle"
 | 
			
		||||
                 style="display:inline-block;width:890px;height:100px"
 | 
			
		||||
                 data-ad-client="ca-pub-9826129398689742"
 | 
			
		||||
                 data-ad-slot="2340256024"></ins>
 | 
			
		||||
            <script>
 | 
			
		||||
                (adsbygoogle = window.adsbygoogle || []).push({});
 | 
			
		||||
            </script>
 | 
			
		||||
            <!-- ------------------------------------------------------------------------- -->
 | 
			
		||||
 | 
			
		||||
            <h1>{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}</h1>
 | 
			
		||||
 | 
			
		||||
			{{ .Content }}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -24,6 +24,20 @@
 | 
			
		||||
 | 
			
		||||
	<article class="article">
 | 
			
		||||
		<div class="wrapper">
 | 
			
		||||
 | 
			
		||||
            <!-- ------------------------------------------------------------------------- -->
 | 
			
		||||
            <!-- Google Ads -->
 | 
			
		||||
            <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
 | 
			
		||||
            <!-- Laradock Horizontal -->
 | 
			
		||||
            <ins class="adsbygoogle"
 | 
			
		||||
                 style="display:inline-block;width:890px;height:100px"
 | 
			
		||||
                 data-ad-client="ca-pub-9826129398689742"
 | 
			
		||||
                 data-ad-slot="2340256024"></ins>
 | 
			
		||||
            <script>
 | 
			
		||||
                (adsbygoogle = window.adsbygoogle || []).push({});
 | 
			
		||||
            </script>
 | 
			
		||||
            <!-- ------------------------------------------------------------------------- -->
 | 
			
		||||
 | 
			
		||||
			{{ range where .Site.Pages "Type" "index" }}
 | 
			
		||||
				<h1>{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}</h1>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -42,18 +42,39 @@
 | 
			
		||||
        </ul>
 | 
			
		||||
        {{ end }}
 | 
			
		||||
 | 
			
		||||
        {{ if isset .Site.Params "author" }}
 | 
			
		||||
 | 
			
		||||
        <br>
 | 
			
		||||
        <br>
 | 
			
		||||
          <div>
 | 
			
		||||
            <!-- ------------------------------------------------------------------------- -->
 | 
			
		||||
            <!-- Google Ads -->
 | 
			
		||||
            <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
 | 
			
		||||
            <!-- Laradock Vertical -->
 | 
			
		||||
            <ins class="adsbygoogle"
 | 
			
		||||
               style="display:inline-block;width:237px;height:600px"
 | 
			
		||||
               data-ad-client="ca-pub-9826129398689742"
 | 
			
		||||
               data-ad-slot="9891442983"></ins>
 | 
			
		||||
            <script>
 | 
			
		||||
              (adsbygoogle = window.adsbygoogle || []).push({});
 | 
			
		||||
            </script>
 | 
			
		||||
            <!-- ------------------------------------------------------------------------- -->
 | 
			
		||||
          </div>
 | 
			
		||||
          <br>
 | 
			
		||||
          <br>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
          <!--{{ if isset .Site.Params "author" }}-->
 | 
			
		||||
        <!--<hr>-->
 | 
			
		||||
        <!--<span class="section">The author</span>-->
 | 
			
		||||
        
 | 
			
		||||
        <ul>
 | 
			
		||||
          {{ with .Site.Social.twitter }}
 | 
			
		||||
          <li>
 | 
			
		||||
            <a href="https://twitter.com/{{ . }}" target="_blank" title="@{{ . }} on Twitter">
 | 
			
		||||
              @{{ . }} on Twitter
 | 
			
		||||
            </a>
 | 
			
		||||
          </li>
 | 
			
		||||
          {{ end }}
 | 
			
		||||
        <!---->
 | 
			
		||||
        <!--<ul>-->
 | 
			
		||||
          <!--{{ with .Site.Social.twitter }}-->
 | 
			
		||||
          <!--<li>-->
 | 
			
		||||
            <!--<a href="https://twitter.com/{{ . }}" target="_blank" title="@{{ . }} on Twitter">-->
 | 
			
		||||
              <!--@{{ . }} on Twitter-->
 | 
			
		||||
            <!--</a>-->
 | 
			
		||||
          <!--</li>-->
 | 
			
		||||
          <!--{{ end }}-->
 | 
			
		||||
 | 
			
		||||
          <!--{{ with .Site.Social.github }}-->
 | 
			
		||||
          <!--<li>-->
 | 
			
		||||
@@ -63,16 +84,17 @@
 | 
			
		||||
          <!--</li>-->
 | 
			
		||||
          <!--{{ end }}-->
 | 
			
		||||
 | 
			
		||||
          {{ with .Site.Social.email }}
 | 
			
		||||
          <li>
 | 
			
		||||
            <a href="mailto:{{ . }}" title="Email of {{ . }}">
 | 
			
		||||
              Contact via email
 | 
			
		||||
            </a>
 | 
			
		||||
          </li>
 | 
			
		||||
          {{ end }}
 | 
			
		||||
        </ul>
 | 
			
		||||
        {{ end }}
 | 
			
		||||
          <!--{{ with .Site.Social.email }}-->
 | 
			
		||||
          <!--<li>-->
 | 
			
		||||
            <!--<a href="mailto:{{ . }}" title="Email of {{ . }}">-->
 | 
			
		||||
              <!--Contact via email-->
 | 
			
		||||
            <!--</a>-->
 | 
			
		||||
          <!--</li>-->
 | 
			
		||||
          <!--{{ end }}-->
 | 
			
		||||
        <!--</ul>-->
 | 
			
		||||
        <!--{{ end }}-->
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</nav>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user