1
I’m developing an application that will use Jekyll with its themes as the basis of the site, however, I need to create a Jekyll layout <jekyll_root>/_layout/angular.html
which will be uploaded to the pages using Angular in accordance with the respective directive.
So it is necessary that instead of Angular when building the application (ng build) generates the file index.html
according to the standard and the files js
, it generates a file in the folder <jekyll_root>/_layout
with the name angular.html
, Javascript (js) files must be saved to the folder <jekyll_root>/assets/js/angular
.
Other files should be copied to respective folders, such as "images" to <jekyll_root>/asset/images
, "css" for folder <jekyll_root>/asset/css
, etc..
What settings should be made in Angular for this behavior?
The project and its code is being published on github on https:/github.com/Streetpet, the project is opensource and openhardware.
– Delfino
Do you need to REALLY use Jekyll and Angular? One of the problems you will face is that the two use keys in the templates, so Jekyll will remove things like
{{exemplo}}
. In order for the 2 to work together it will be necessary to change all angular tags to differentiate them from Jekyll tags.– tvdias
Really this may be a problem, but at the stage I am at, I can only generate a new layout for Jekyll, that is to save the html in the folder
_layout
and the scripts in the folderjs/angular
according to the app project, since each app will generate a layout.– Delfino
At the moment I’m copying everything to a folder inside
_site
and deploying on the server,– Delfino