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

While running hugo server, if new taxonomy values gets added to content post, create also its list page #10901

Closed
ralexrdz opened this issue Apr 17, 2023 · 5 comments

Comments

@ralexrdz
Copy link

Steps to reproduce

  1. Create new hugo site
hugo new site my-hugo-site
cd my-hugo-site
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke themes/ananke
echo "theme = 'ananke'" >> config.toml
  1. Run huge server and visit the localhost:1313/tags, which should be empty

  2. Using text/code editor add some tags to the front matter of the post: content/posts/my-first post.md

---
title: "My First Post"
date: 2023-04-16T09:31:16-06:00
draft: false
tags: ["foo", "bar"]
---
  1. visit again localhost:1313/tags and voila! automagically, there is are "foo" and "bar" categories, and under them my first post (expected behavior)

  2. Click the link of one of the tag titles and will redirect to localhost:1313/tags/foo

Expected behavior: I would see the list page of the tag foo

Real behavior: 404 page not found

  1. stop hugo server command using ctrl + c and restart it

The page localhost:1313/tags/foo now shows its list page showing my-first-post as expected

I think there is a missing feature when new content get added, beacouse terms page for tags get updated automatically, but no list page is created. You depend on rerunning hugo server to see it working.

I need this because I have a simple CMS for my site using File Browser and running my site with hugo server to avoid rebuilding or restarting when new files gets added or are updated

@jmooring
Copy link
Member

It looks like this worked as expected prior to v0.103.0.

@ralexrdz Do not use hugo server for your production site. It is a development server with optimizations and limitations that make it unsuitable for production.

@jmooring jmooring added Bug and removed Proposal labels Apr 17, 2023
@nikumbgo12345
Copy link

I am new to this repo and would like to take this issue please assign this to me

@tveyben
Copy link

tveyben commented Jan 14, 2024

Issue reproduced on the current build [1] as well
I came here after wondering what I did wrong when trying to generate my first Hugo based site, not a good start ;-)

Seems like this might be a duplicate of #9533

[1]
hugo v0.121.2-6d5b44305eaa9d0a157946492a6f319da38de154 linux/amd64 BuildDate=2024-01-05T12:21:15Z VendorInfo=gohugoio

@jmooring
Copy link
Member

jmooring commented Feb 14, 2024

Duplicate of #9533

@jmooring jmooring marked this as a duplicate of #9533 Feb 14, 2024
Copy link

github-actions bot commented Mar 7, 2024

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 Mar 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants