Disable Twitter references (cards?)

Hello, an absolute beginner here. (Hugo beginner, I mean - I’m a developer and I’ve been using Pelican until now). I followed the Quick Start document here:

So I generated the one-post site, opened it in my browser (I actually have one, heh) and of course, as almost the first thing, I did a View Source. And what do I see:

<meta itemprop="description" content=""><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="My Slow Learning of Hugo"/>
<meta name="twitter:description" content=""/>

I really don’t what any of the social stuff on my site. Really, even if it does nothing, even if it is commented out, I want no twitter, facebook, anything of the sort. How should I disable it? Does it depend on the theme? I tried to grep “twitter” in the theme files (ananke) but I can’t figure out which of the hits is responsible for bringing this in. Assuming it’s not in fact hardcoded into Hugo, that would be a showstopper.

It is the theme via this line:

The theme is using the internal Hugo twitter card template.

Newbie too. Above does not tell me how to really remove twitter tags. So before rsyncing the public directory, I just do

grep -rl twitter: public | xargs -n 1 rpl twitter: no_xtwitter_here:

Copy the theme’s baseof.html to your layouts directory (see Hugo’s Template Lookup Order documentation about that) and modify this copy according to your needs. That approach is a lot cleaner than fixing the generated HTML, and it needs to be done only once.

There is a lot of other things in that file - if the theme (ananke) updates that, I do not get the change. BTW, my rpl command is of course part of a script which uploads to the server, so I only have to care once.

Maybe better is to directly remove the code and commit that change in my git submodule of ananke, I always use

git pull --rebase

anyway. Actually I do not understand anymore what I did a few days ago, removing that line in baseof.hmtl had no effect. I must have done something wrong. Today this works.

Sorry for the noise!