Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disableKinds with taxonomy should be recursive (also disable term) #8498

Closed
bep opened this issue May 3, 2021 · 3 comments · Fixed by #11894
Closed

disableKinds with taxonomy should be recursive (also disable term) #8498

bep opened this issue May 3, 2021 · 3 comments · Fixed by #11894
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented May 3, 2021

While doing some restructuring work, I have a failing test that is a little head-scratching.

I have disableKind = ["taxonomy"], yet I have an assertion about a term page that should exist.

I know changing this may potentially be breaking, but I suspect that I applied the above logic before we got the build options, which would allow you to disable rendering of, say, the categories list page, while still keep all the terms.

@bep bep added the Enhancement label May 3, 2021
@bep bep added this to the v0.84 milestone May 3, 2021
@bep bep self-assigned this May 3, 2021
bep added a commit to bep/hugo that referenced this issue May 3, 2021
bep added a commit to bep/hugo that referenced this issue May 4, 2021
bep added a commit to bep/hugo that referenced this issue May 4, 2021
bep added a commit to bep/hugo that referenced this issue May 6, 2021
@bep bep modified the milestones: v0.84, v0.85 Jun 18, 2021
@bep bep modified the milestones: v0.85, v0.86 Jul 5, 2021
@bep bep modified the milestones: v0.86, v0.87, v0.88 Jul 26, 2021
bep added a commit to bep/hugo that referenced this issue Aug 4, 2021
bep added a commit to bep/hugo that referenced this issue Aug 24, 2021
@bep bep modified the milestones: v0.88, v0.89 Sep 2, 2021
@bep bep modified the milestones: v0.89, v0.90 Nov 2, 2021
bep added a commit to bep/hugo that referenced this issue Nov 30, 2021
TODO(bep) improve commit message.

Hugo has always been a active user of in-memory caches, but before this commit we did nothing to control the memory usage.

One failing example would be loading lots of big JSON data files and unmarshal them via `transform.Unmarshal`.

This commit consolidates all these caches into one single LRU cache with an eviction strategy that also considers used vs. available memory.

Hugo will try to limit its memory usage to 1/4 or total system memory, but this can be controlled with the `HUGO_MEMORYLIMIT` environment variable (a float value representing Gigabytes).

A natural next step after this would be to use this cache for `.Content`.

Fixes gohugoio#8307
Fixes gohugoio#8498
Fixes gohugoio#8927
Fixes gohugoio#9192
Fixes gohugoio#9189
Fixes gohugoio#7425
Fixes gohugoio#7437
Fixes gohugoio#7436
Fixes gohugoio#7882
Updates gohugoio#7544
bep added a commit to bep/hugo that referenced this issue Dec 1, 2021
TODO(bep) improve commit message.

Hugo has always been a active user of in-memory caches, but before this commit we did nothing to control the memory usage.

One failing example would be loading lots of big JSON data files and unmarshal them via `transform.Unmarshal`.

This commit consolidates all these caches into one single LRU cache with an eviction strategy that also considers used vs. available memory.

Hugo will try to limit its memory usage to 1/4 or total system memory, but this can be controlled with the `HUGO_MEMORYLIMIT` environment variable (a float value representing Gigabytes).

A natural next step after this would be to use this cache for `.Content`.

Fixes gohugoio#8307
Fixes gohugoio#8498
Fixes gohugoio#8927
Fixes gohugoio#9192
Fixes gohugoio#9189
Fixes gohugoio#7425
Fixes gohugoio#7437
Fixes gohugoio#7436
Fixes gohugoio#7882
Updates gohugoio#7544
Fixes gohugoio#9224
bep added a commit to bep/hugo that referenced this issue Jan 12, 2024
bep added a commit to bep/hugo that referenced this issue Jan 12, 2024
bep added a commit to bep/hugo that referenced this issue Jan 12, 2024
bep added a commit to bep/hugo that referenced this issue Jan 13, 2024
bep added a commit to bep/hugo that referenced this issue Jan 14, 2024
bep added a commit to bep/hugo that referenced this issue Jan 14, 2024
bep added a commit to bep/hugo that referenced this issue Jan 14, 2024
bep added a commit to bep/hugo that referenced this issue Jan 14, 2024
bep added a commit to bep/hugo that referenced this issue Jan 15, 2024
bep added a commit to bep/hugo that referenced this issue Jan 15, 2024
bep added a commit to bep/hugo that referenced this issue Jan 15, 2024
bep added a commit to bep/hugo that referenced this issue Jan 15, 2024
bep added a commit to bep/hugo that referenced this issue Jan 16, 2024
bep added a commit to bep/hugo that referenced this issue Jan 16, 2024
bep added a commit to bep/hugo that referenced this issue Jan 17, 2024
bep added a commit that referenced this issue Jan 19, 2024
…, and some general spring cleaning

There are some breaking changes in this commit, see #11455.

Closes #11455
Closes #11549

Fixes #10104
Fixes #10380
Fixes #10694
Fixes #11439
Fixes #11453
Fixes #11457
Fixes #11466
Fixes #11540
Fixes #11551
Fixes #11556
Fixes #11654
Fixes #11661
Fixes #11663
Fixes #11664
Fixes #11669
Fixes #11671
Fixes #11807
Fixes #11808
Fixes #11809
Fixes #11815
Fixes #11840
Fixes #11860
Fixes #11883
Fixes #7425
Fixes #7436
Fixes #7437
Fixes #7544
Fixes #7882
Fixes #8307
Fixes #8498
Fixes #8927
Fixes #9192
Fixes #9324
Fixes #9343
bep added a commit that referenced this issue Jan 24, 2024
…, and some general spring cleaning

There are some breaking changes in this commit, see #11455.

Closes #11455
Closes #11549

Fixes #10104
Fixes #10380
Fixes #10694
Fixes #11439
Fixes #11453
Fixes #11457
Fixes #11466
Fixes #11540
Fixes #11551
Fixes #11556
Fixes #11654
Fixes #11661
Fixes #11663
Fixes #11664
Fixes #11669
Fixes #11671
Fixes #11807
Fixes #11808
Fixes #11809
Fixes #11815
Fixes #11840
Fixes #11860
Fixes #11883
Fixes #7425
Fixes #7436
Fixes #7437
Fixes #7544
Fixes #7882
Fixes #8307
Fixes #8498
Fixes #8927
Fixes #9192
Fixes #9324
Fixes #9343
bep added a commit that referenced this issue Jan 24, 2024
…, and some general spring cleaning

There are some breaking changes in this commit, see #11455.

Closes #11455
Closes #11549

Fixes #10104
Fixes #10380
Fixes #10694
Fixes #11439
Fixes #11453
Fixes #11457
Fixes #11466
Fixes #11540
Fixes #11551
Fixes #11556
Fixes #11654
Fixes #11661
Fixes #11663
Fixes #11664
Fixes #11669
Fixes #11671
Fixes #11807
Fixes #11808
Fixes #11809
Fixes #11815
Fixes #11840
Fixes #11860
Fixes #11883
Fixes #7425
Fixes #7436
Fixes #7437
Fixes #7544
Fixes #7882
Fixes #8307
Fixes #8498
Fixes #8927
Fixes #9192
Fixes #9324
Fixes #9343
bep added a commit that referenced this issue Jan 24, 2024
…d some general spring cleaning

There are some breaking changes in this commit, see #11455.

Closes #11455
Closes #11549

Fixes #10104
Fixes #10380
Fixes #10694
Fixes #11439
Fixes #11453
Fixes #11457
Fixes #11466
Fixes #11540
Fixes #11551
Fixes #11556
Fixes #11654
Fixes #11661
Fixes #11663
Fixes #11664
Fixes #11669
Fixes #11671
Fixes #11807
Fixes #11808
Fixes #11809
Fixes #11815
Fixes #11840
Fixes #11860
Fixes #11883
Fixes #7425
Fixes #7436
Fixes #7437
Fixes #7544
Fixes #7882
Fixes #8307
Fixes #8498
Fixes #8927
Fixes #9192
Fixes #9324
Fixes #9343
bep added a commit that referenced this issue Jan 25, 2024
…d some general spring cleaning

There are some breaking changes in this commit, see #11455.

Closes #11455
Closes #11549

Fixes #10104
Fixes #10380
Fixes #10694
Fixes #11439
Fixes #11453
Fixes #11457
Fixes #11466
Fixes #11540
Fixes #11551
Fixes #11556
Fixes #11654
Fixes #11661
Fixes #11663
Fixes #11664
Fixes #11669
Fixes #11671
Fixes #11807
Fixes #11808
Fixes #11809
Fixes #11815
Fixes #11840
Fixes #11860
Fixes #11883
Fixes #7425
Fixes #7436
Fixes #7437
Fixes #7544
Fixes #7882
Fixes #8307
Fixes #8498
Fixes #8927
Fixes #9192
Fixes #9324
Fixes #9343
@bep bep modified the milestones: v0.122.0, v0.123.0 Jan 27, 2024
@jmooring
Copy link
Member

This issue was inadvertently closed as completed in #11894. As desired, we continue to render term pages when taxonomy pages are disabled.

disableKinds = ['taxonomy']

Result:

public/
├── posts/
│   ├── post-1/
│   │   └── index.html
│   └── index.html
├── tags/
│   ├── tag-a/
│   │   └── index.html
│   └── tag-b/
│       └── index.html
└── index.html

Verified with hugo v0.123.0-DEV-60d954c7

@jmooring jmooring reopened this Jan 28, 2024
@jmooring jmooring closed this as not planned Won't fix, can't repro, duplicate, stale Jan 28, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.