Integrations

Icy has one built-in comment system, Ecoku, and one analytics service, Plausible. Both can be self-hosted. To use another service, override a template: see Customization.

Comments

Ecoku is a self-hosted comment service. Comments appear at the end of every regular page once you configure it:

hugo.toml
[params.comments]
  provider = 'ecoku'
  [params.comments.ecoku]
    serverURL = 'https://comments.example.com'
    siteId = 'example.com'
ParameterDefaultDescription
provider''ecoku, or empty for no comments.
ecoku.serverURL—Required. Base URL of your Ecoku server.
ecoku.siteId—Required. The site’s id on that server.
ecoku.scriptURL<serverURL>/client/ecoku-loader.jsThe loader script.
ecoku.cssURLnonenone uses the theme’s styles. Set a URL to use Ecoku’s own stylesheet.
ecoku.pageSize10Comments per page, 1 to 100.
ecoku.themeautoauto follows the page’s color scheme. light or dark fixes it.
  • A page turns comments off with comments = false in its front matter.
  • Comments are stored by page path, such as /posts/my-post/, so keep URLs stable.
  • Nothing loads until the reader scrolls near the comments, or opens the page at #comments.

Analytics

Plausible Community Edition is the self-hosted Plausible. The same settings work with the hosted plausible.io.

hugo.toml
[params.analytics]
  provider = 'plausible'
  [params.analytics.plausible]
    scriptURL = 'https://plausible.example.com/js/pa-XXXX.js'
ParameterDefaultDescription
provider''plausible, or empty for no analytics.
plausible.scriptURL—Required. The script from the snippet Plausible shows for your site.
plausible.endpoint—Event endpoint, for a proxied setup.

The script is added to every page in every environment. Plausible ignores visits from localhost, so hugo server doesn’t count. A page opts out with analytics = false in its front matter.

Search engines and social previews

Every page gets a title, a description, a canonical link, hreflang links to its translations, Open Graph and Twitter card tags, and JSON-LD. You don’t need to configure anything.

The description is the front matter description, or else the start of the page, or else params.description. Posts in the main sections are Open Graph articles; every other page is a website.

Social preview image

The first match wins:

  1. The first entry of front matter images.
  2. A bundle image whose name contains cover, feature or thumbnail.
  3. The first entry of params.images, the site default.

Local images wider than 1200px are scaled down, and WebP, TIFF and BMP become JPEG so every crawler can read them. Protected posts never have one.

hugo.toml
[params]
  images = ['og.png']
  [params.schema]
    twitterSite = '@handle'

Indexing

  • Outside production, as in hugo server, every page is marked noindex, nofollow.
  • robotsNoIndex = true in a page’s front matter does the same in production and leaves the page out of the sitemap.

Site verification

Each token becomes a <meta> tag on every page.

hugo.toml
[params.verification]
  google = 'token'
  bing = 'token'
  yandex = 'token'
  baidu = 'token'
  naver = 'token'

Structured data

PageJSON-LD type
HomeWebSite
Post in a main sectionBlogPosting
Other regular pageWebPage, or the front matter schemaType: AboutPage, ContactPage, ProfilePage or FAQPage
Section, taxonomy or termCollectionPage
Search pageSearchResultsPage

Every page except the home page also gets a breadcrumb trail. All of them name the same publisher:

hugo.toml
[params.schema]
  publisherType = 'Person'
  sameAs = ['https://github.com/you', 'https://mastodon.social/@you']
ParameterDefaultDescription
publisherTypePersonPerson uses params.author.name. Organization uses the site title.
sameAshttp(s) links in params.socialThe publisher’s profile URLs.

Sitemap

sitemap.xml leaves out pages with robotsNoIndex = true or sitemap.disable = true, protected posts, and tags without a public post. List pages take the date of their newest post. changefreq and priority come from Hugo’s sitemap settings.

robots.txt

hugo.toml
enableRobotsTXT = true

[params.robots]
  blockAI = true

A production build allows every path; any other environment disallows everything. The file links to the sitemap.

blockAI = true adds a record that blocks known AI crawlers, such as GPTBot, ClaudeBot and CCBot. Search engines are not affected. To change the list, copy layouts/_partials/func/ai-crawlers.html into your site and edit it.

RSS

Hugo writes a feed for the home page, each section and each term. The home feed at /index.xml holds only posts from the main sections.

hugo.toml
[params.rss]
  fullText = true

[services.rss]
  limit = 20
ParameterDefaultDescription
params.rss.fullTextfalsetrue puts the full content in each item.
services.rss.limitUnlimitedItems per feed. A Hugo setting.
  • Protected posts and pages with hiddenInRss = true are left out.
  • Each tag becomes a category. The channel image is the brand icon, or else the first params.images entry.
  • Full-text items drop buttons and player controls, and make links absolute so they work in feed readers.

With full text, links in your posts reach the feeds: never link to a protected post.