GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.35k stars 419 forks source link

[Feature Request]: utilize server side includes (SSI) #1326

Closed atomGit closed 9 months ago

atomGit commented 9 months ago

Feature Description

SSI could greatly reduce the number of file transfers when syncing with a remote server, as well as save some storage space, the cost of which is still at a premium for hosting companies

currently, when updating a global page component such as a menu or a footer, every post/page is re-uploaded to the server, whereas with SSI the pages would be split into 3 or more sections -- menu, post, footer -- each of which would exist as a single, separate file which is then included by the http server in each page

potential caveats...

dziudek commented 9 months ago

Due lack of global compatibility and big complexity of implementation in themes (needs to support both ways of rendering theme what requires changes in all existing themes) and potential issues with parts like menu (it is impossible to mark current item in this approach on html level) we won't make this as a part of Publii core