I apologize in advance if this is described somewhere or under a different name/concept. I did some searching of course but I did not see anything. So that is why I am posting here now.
I basically would like to create a site and then only have a part of it update â a partial update if you will.
The idea is that I would build the entire site for major data updates, and then partially update portions of it when minor updates with certain content.
To give a little more context with an arbitrary example, letâs say that I have three types of content on my site:
Posts
Articles
Authors
Currently, Hugo updates all three on a full sweep. However, for the next 6 months of time, I am only going to be updating Posts.
So, to save time, I would like to update my site so that when I run Hugo, only Posts gets updated, and Articles and Authors do not. They, in turn, would get updated at the end of the 6 months when a major content push gets made.
Again, these are all arbitrary examples but I hope my intent is clear here. Is this possible with Hugo? Or is the only way to update is to update the entire site at a time?
I realize that Hugo is fast (and it is!) so this seems a bit pointless⌠but I am also aiming to make it faster if possible.
Thank you for any assistance you can provide,
Michael
I canât see why you would need to do this, unless youâve got a massive amount of content.
But, you could make multiple sites and publish them in /, /posts, /articles etc by changing the baseurl of the sites to each respective sub-url, and publishing separately, while keeping the design the same so it looks seamless.
More trouble than itâs worth if you donât have to, in my opinion.
Indeed @RickCogley you are the echo in my head. Thatâs the danger of learning new things, you start to get crazy ideas. I am primarily wanting to make sure that I am not overlooking anything, and have a solid understanding of current capabilities and expectations. I think the sub-site/url idea is sufficient. Thank you for your assistance!
So I think Iâm of a similar mindset. I just uploaded my site for the first time. It does have a decent amount of content because itâs a port from Wordpress. Anyway, it all works fine.
But it seems bizarre that when I run âhugoâ and then I go to my SFTP client and hit âsynchronizeâ it needs to update loads and loads of pages when only a few actually changed.
I feel like I must be missing something. If itâs creating a static pages then the ones I didnât touch really shouldnât change, no? What am I missing?
SFTP just looks at the file timestamps, i am new to Hugo but i worked around this by using GIT. The files do not update unless there is a change, and SFTP is happy cause the old files do not change.
I am not sure if there is a simpler way to do this. Curious know know