Replies: 2 comments 2 replies
-
I'm pretty careful to recommend a strategy for this scenario. In theory, it would be possible to structure the content directory like this:
This way it would be possible to add e.g. basic auth to example.com/private while keeping example.com/public accessible for everyone. BUT there is a potential to leak sensitive information by the search index that can't be separated for private/public pages or the main navigation that might contain page titles of sensitive themes as well. You might want to take a look at #95 as well, but we really can't guarantee any content leak this way. My personal recommendation is to create two standalone hugo sites, one for public and one for private usage. |
Beta Was this translation helpful? Give feedback.
-
I truly appreciate the transparency. i’ll chew on the idea some more and see if i can identify a pattern that includes less enduring toil and complication. it seems like the most common suggestion is to patch themes’ templates to handle a new attr in topmatter to toggle an exclude clause in various searches. it kinda feels like a behavior that might be easier to consistently encourage with something like a droplist or an exclusory context in hugo… if flag is on i could see the option to just redirect any access to that file’s content with a configurable error page’s content or masking the file’s existence entirely based on some configurable context… thanks again for your effort and energy. I appreciate your consideration. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to have a 'supersite site' which has all documents/assets/etc.... IE: the "behind the firewall / employee version"
and one-or-more 'subset' site(s), which contains non-sensitive/customerfacing/externally focused pages...
In researching patterns for managing multiple sites with hugo, I've seen a few options proposed.... is there a pattern that aligns particularly well for this with geekdocs/geekblog in mind?
Beta Was this translation helpful? Give feedback.
All reactions