When I first published my repo, I noticed multiple meta descriptions. On top of that the homepage did not render the logo. In addition, it seems as if basic-seo.html generates meta description automatically. So i configured the index.html file and added {{ if .IsHome }}
<meta property=“og:image” content=“{{ “/img/logo.png” | absURL }}”> which works. However, I was wondering if theres anyway to place all of the code in the head. Heres the link to my repo.
When I build your site with the latest version (v0.133.0) I get the following warning and error:
WARN Google Analytics 4 (GA4) replaced Google Universal Analytics (UA) effective 1 July 2023. See https://support.google.com/analytics/answer/11583528. Create a GA4 property and data stream, then replace the Google Analytics ID in your site configuration with the new value.
ERROR deprecated: .Site.DisqusShortname was deprecated in Hugo v0.120.0 and will be removed in Hugo 0.134.0. Use .Site.Config.Services.Disqus.Shortname instead.
Built in 1790 ms
Error: error building site: logged 1 error(s)
Fix those first, then we can revisit the rest.
Ok I removed Disqus and Analytics.
When I build your site with hugo server
and look at the published HTML for the home page, I only see one meta
element where the name
attribute is description
.
When I build your site with hugo server
I see the logo on the home page:
It seems like you are already doing that with layouts/partials/head.html.