last edited: Sun, 23 Apr 2017 14:41:38 +0200
@Andrew Manning I import https://github.com/anaqreon/hubzilla-website/blob/master/hubzilla-website.zip here https://dev.hubzilla.org/ and get a wrong website layout https://dev.hubzilla.org/page/flegno/hubzilla-project . May be any ideas how we repare the layout?
- siteinfo - https://dev.hubzilla.org/siteinfo ~ version 2.3.4
I think the broken page is related to changes in the dev branch that dev.hubzilla.org is running. @Mario Vavti has been working on updating Bootstrap, and perhaps something broke because of that. I'm still investigating.
I refactored the page to simplify things. Now there is only a layout and a single page, containing all the content. The assets must be served from a publicly accessible place. This version is running live on hubzilla.org now.
https://github.com/anaqreon/hubzilla-website/tree/v5
There is a browser-based problem, which is that if you serve the assets from a remote location, the browser blocks them. On dev.hubzilla.org I'm getting these errors loading the page after importing v5:
https://github.com/anaqreon/hubzilla-website/tree/v5
There is a browser-based problem, which is that if you serve the assets from a remote location, the browser blocks them. On dev.hubzilla.org I'm getting these errors loading the page after importing v5:
Content Security Policy: The page’s settings blocked the loading of a resource at https://project.hubzilla.org/cloud/hubzilla/hubzilla-project-website/vendor/bootstrap/css/bootstrap.min.css (“style-src https://dev.hubzilla.org 'unsafe-inline'”).
The more I work with this the more I'm starting to think we should really improve the import system to include assets sooner than later. We should choose a convention for where to store these assets (e.g.
https://hub.freecommunication.org/cloud//webpages/imported_page_name/assets/
) or provide a user-configurable location and automatically copy the assets into that location. In addition, we will need a markup for the baseurl in the page source code that will be replaced by the import tool to match the hub address (something like {{$baseurl}}
to be consistent with the Hubzilla page template system). I will start working on this.