fix: deprecation warnings for recent Hugo versions (#511)
* fix: deprecation warnings for Twitter, Google Analytics and Disqus
* chore: bump hugo version on Netlify
| | |
| | | FROM mcr.microsoft.com/devcontainers/javascript-node:${NODE_VERSION} |
| | | |
| | | # VARIANT can be either 'hugo' for the standard version or 'hugo_extended' for the extended version. |
| | | ARG VARIANT=hugo |
| | | ARG VARIANT=hugo_extended |
| | | # VERSION can be either 'latest' or a specific version number |
| | | ARG VERSION=latest |
| | | |
| | |
| | | enableEmoji = true |
| | | enableRobotsTXT = true |
| | | |
| | | # Enable Disqus |
| | | #disqusShortname = "" |
| | | |
| | | # Google Analytics |
| | | #googleAnalytics = "UA-123-45" |
| | | |
| | | # Syntax highlighting |
| | | pygmentsUseClasses = true |
| | |
| | | [[related.indices]] |
| | | name = 'tags' |
| | | weight = 80 |
| | | |
| | | [services] |
| | | # Enable Disqus.Disqus.Shortname |
| | | [services.disqus] |
| | | #shortname = 'your-disqus-shortname' |
| | | # Google Analytics |
| | | [services.googleAnalytics] |
| | | #ID = 'G-MEASUREMENT_ID' |
| | |
| | | |
| | | ## Twitter Simple Shortcode |
| | | |
| | | {{< twitter_simple 1085870671291310081 >}} |
| | | {{< twitter user="SanDiegoZoo" id="1453110110599868418" >}} |
| | | |
| | | <br> |
| | | |
| | |
| | | </div> |
| | | |
| | | {{ if and (or (eq .Type "post") (eq .Type .Site.Params.postSectionName)) (ne .Page.Params.disableComments true) }} |
| | | {{- if .Site.DisqusShortname -}} |
| | | {{- if .Site.Config.Services.Disqus.Shortname -}} |
| | | <div id="comment"> |
| | | <h2>{{ i18n "comments" }}</h2> |
| | | {{ template "_internal/disqus.html" . }} |
| | |
| | | </footer> |
| | | {{- partial "medium-zoom.html" .context -}} |
| | | {{- partial "math.html" .context -}} |
| | | {{- if (hasPrefix .context.Site.GoogleAnalytics "G-") -}} |
| | | {{- if (hasPrefix .context.Site.Config.Services.GoogleAnalytics.ID "G-") -}} |
| | | {{- template "_internal/google_analytics.html" .context -}} |
| | | {{- end -}} |
| | | {{- if and (hugo.IsProduction) (.context.Site.Params.gtagId) -}} |
| | |
| | | command = "cd exampleSite && hugo --gc --minify --themesDir ../.." |
| | | |
| | | [build.environment] |
| | | HUGO_VERSION = "0.69.0" |
| | | HUGO_VERSION = "0.128.0" |
| | | HUGO_ENV = "production" |
| | | HUGO_THEME = "repo" |
| | | HUGO_BASEURL = "https://anatole-demo.netlify.app" |