Skip to content

Commit

Permalink
Remove the use of .Site.DisqusShortname
Browse files Browse the repository at this point in the history
In version 0.132.0, this now leads to an error:

> ERROR deprecated: .Site.DisqusShortname was deprecated in Hugo v0.120.0 and will be removed in Hugo 0.133.0. Use .Site.Config.Services.Disqus.Shortname instead.
  • Loading branch information
xuhdev committed Aug 12, 2024
1 parent bd5ebaa commit 1359509
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
{{ errorf "Please use Hugo version 0.120.0 or higher!" }}
{{ end }}

{{ if not (eq .Site.DisqusShortname "") }}
{{ errorf "Your use of disqusShortname is deprecated by Hugo; Please reference the README.md for further instructions. This error message will be removed in the future because we are also using .Site.DisqusShortname for checking this." }}
{{ end }}

<!DOCTYPE html>
<html lang="{{ .Lang }}" itemscope itemtype="http://schema.org/WebPage">
<head>
Expand Down

0 comments on commit 1359509

Please sign in to comment.