matcornic / matcornic/hugo-theme-learn

Unable to disable the language picker

Open
#253 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
1.6k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

My site still shows the multi-lingual dropdown even after removing language config and language copies.

baseURL = "/"
languageCode = "en-US"
defaultContentLanguage = "en"

title = "Hugo Learn Documentation"
theme = "hugo-theme-learn-master"
metaDataFormat = "yaml"
defaultContentLanguageInSubdir = true


[params]
  editURL = "#"
  description = "my site"
  author = "me"
  showVisitedLinks = true
  disableBreadcrumb = false
  disableNextPrev = false
  disableLanguageSwitchingButton = true



[outputs]
home = [ "HTML", "RSS", "JSON"]

The footer has this setting
{{ if and .Site.IsMultiLingual (not .Site.Params.DisableLanguageSwitchingButton)}}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the footer template condition shown in the issue and compare it with the provided Hugo language configuration. Reproduce the site with language copies removed and disableLanguageSwitchingButton enabled; done means the multilingual dropdown no longer appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend, localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.