Is it possible to enhance the static site generator? #125
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
Can you explain the issues with Yellow as static site generator? Something not working on your server? |
Beta Was this translation helpful? Give feedback.
-
Not a issue, I just want the static site works without a |
Beta Was this translation helpful? Give feedback.
-
Datenstrom Yellow is a flat file CMS and a static site generator. Let's walk trough the current way of working: One of the design goals was to make websites and it shouldn't matter if you serve them dynamically or statically. Basically, the website you see in the CMS is a website that you can also generate statically, upload to a webserver and use without CMS. Makes things super fast and safe. There are a few limitations though, for example a static site generator can't provide online editing or text search. Keep in mind that Yellow can operate in both ways, dynamically and statically. I don't know about many web publishing systems that work in both ways. This might explain a few things that are done differently. If Yellow is used as a flat file CMS then web pages will be generated on-the-fly. The web server will redirect (many) requests to the CMS, which converts files and sends them back to the browser. On the Apache webserver the If Yellow is used as a static site generator then web pages will be served as they are. The web server will send files directly from the file system back to the browser. On the Apache webserver the
Hope this explains what is happening. Yellow doesn't have to work this way, suggestions are welcome and everything that makes things easier for people is welcome. |
Beta Was this translation helpful? Give feedback.
-
Of course I understand the basic principle of YellowCMS how it woks, I'm afraid you have misunderstood my point. After the day's exploration and debugging , I think I know how to achieve what i mentioned above(a little modify to the Appreciate your patient explanation again Mark. Have a nice day. ;) |
Beta Was this translation helpful? Give feedback.
-
Sorry, if I have misunderstood you. Please let me know how I can help. :) |
Beta Was this translation helpful? Give feedback.
-
A summary of what we have discussed via email:
Let's see if users report any problems. Please comment if something is wrong or missing. |
Beta Was this translation helpful? Give feedback.
-
Which character do you suggest for windows file systems as separator? Maybe one could use multiple character too? Okay, this depends on the general encoding rules of the file names and the normal http rules. What about sequences like a double hyphen or anything similiar? |
Beta Was this translation helpful? Give feedback.
-
My suggestion is to not support Windows file system for the moment. Instead fail fast with a clear error message: Static website not supported on Windows file system. In the future we could use a different separator, one alternative could be using |
Beta Was this translation helpful? Give feedback.
-
I updated server configuration and commandline based on feedback from @hysonlee. |
Beta Was this translation helpful? Give feedback.
-
I have tried with the latest Yellow repository, both the
To define a 404 page for Yellow static site , just create a |
Beta Was this translation helpful? Give feedback.
-
Good to hear that it works, thanks for your help Hyson! |
Beta Was this translation helpful? Give feedback.
A summary of what we have discussed via email:
Let's see if users report any problems. Please comment if something is wr…