diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-10-12 03:30:21 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-10-12 03:30:21 -0400 |
commit | 4ac8d40f9d18474ad60b98e7ab3f6ff4c1c9b7e2 (patch) | |
tree | a7d2e7977e457046ae9902e7e21dce4383958582 | |
parent | 67517bc1cfc4e0d0b4f787312fa6d7121f92e9f0 (diff) | |
download | edwinmattiacci.com-4ac8d40f9d18474ad60b98e7ab3f6ff4c1c9b7e2.tar.gz edwinmattiacci.com-4ac8d40f9d18474ad60b98e7ab3f6ff4c1c9b7e2.tar.bz2 edwinmattiacci.com-4ac8d40f9d18474ad60b98e7ab3f6ff4c1c9b7e2.zip |
hugo/layouts/_default/single.html: Avoid document.write() method here
-rw-r--r-- | generators/hugo/themes/edwin/layouts/_default/single.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generators/hugo/themes/edwin/layouts/_default/single.html b/generators/hugo/themes/edwin/layouts/_default/single.html index ae9fe12..329c543 100644 --- a/generators/hugo/themes/edwin/layouts/_default/single.html +++ b/generators/hugo/themes/edwin/layouts/_default/single.html @@ -25,8 +25,13 @@ {{ partial "related" . }} </article> +<noscript> + <style> + .comments { display: none; } + </style> +</noscript> -<script>document.write('<h4 class="text-3xl mt-2 mb-4 text-red-500 font-bold">Comments</h4>');</script> +<h4 class="text-3xl mt-2 mb-4 text-red-500 font-bold comments">Comments</h4> <script type="text/javascript" src="/comments"></script> |