Static assets (libraries/plugins/web-fonts) required by the Chirpy based website to run. It provides the opportunity to choose self-host assets in production or development mode.
-
If you want to use these assets only in local development:
Go to the root of your site and clone the assets as follows:
$ git submodule init $ git submodule update
And then set your site configuration options:
# _config.yml assets: self_host: enabled: true env: development
-
If you expect the assets to be self-hosted when your website is published:
Keep the
_config.yml
options as follows:# _config.yml assets: self_host: enabled: true
And then update the GitHub Actions workflow in
.github/workflows/pages-deploy.yml
:steps: - name: Checkout uses: actions/checkout@v2 with: + submodules: true