Browse Source

[theme] Fix a few things for hugo upgrade

Colin Powell 1 month ago
parent
commit
a16483e89d

+ 0 - 2
config.toml

@@ -4,8 +4,6 @@ enableRobotsTXT = true
 enableEmoji = true
 theme = "paper"
 
-paginate = 100
-
 # Highlight options. See https://gohugo.io/content-management/syntax-highlighting/
 PygmentsCodeFences = true # Enable syntax highlighting with GitHub flavoured code fences
 PygmentsUseClasses = true # Use CSS classes to format highlighted code

+ 0 - 20
themes/paper/layouts/_default/single.html

@@ -20,26 +20,6 @@
     </ul>
   </footer>
   {{ end }}
-  <!-- Comments area start -->
-  {{ if not (eq .Params.comments false) }}
-  {{ if .Site.DisqusShortname }}
-  <div id="disqus_thread"></div>
-  <script>
-    var disqus_shortname = '{{ .Site.DisqusShortname }}';
-    (function() {
-      var d = document, s = d.createElement('script');
-      s.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
-      s.setAttribute('data-timestamp', +new Date());
-      (d.head || d.body).appendChild(s);
-    })();
-  </script>
-  <noscript>
-    Please enable JavaScript to view the
-    <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
-  </noscript>
-  <!-- Comments area end -->
-  {{ end }}
-  {{ end }}
 </article>
 
 {{ partial "footer.html" . }}

+ 0 - 2
themes/paper/layouts/partials/header.html

@@ -33,8 +33,6 @@
     <link rel="alternate" type="application/atom+xml" href="{{ "index.xml" | absURL }}" title="{{ .Site.Title }}">
     <!-- Misc -->
     {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
-    {{ template "_internal/google_analytics_async.html" . }}
-    {{ template "_internal/opengraph.html" . }}
     {{ end }}
     <!-- Script -->
     <script>