Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overwrite default setup.md #364

Open
CallumWalley opened this issue Jul 15, 2021 · 1 comment
Open

Overwrite default setup.md #364

CallumWalley opened this issue Jul 15, 2021 · 1 comment

Comments

@CallumWalley
Copy link

Hey all,

There are quite a few knacks to getting onto our platform, which has led to me completely replacing 'setup.md' with a site specific version.
Being able to nominate a replacement 'setup.md' in the yaml file would be useful.
Thoughts?

@tkphd
Copy link
Contributor

tkphd commented Jul 15, 2021

Interesting -- should be straight-forward. I would probably:

  • move the contents of setup.md into _includes/snippets_library/setup.snip, then
  • put {% include {{ site.setup %}} as the content of setup.md, and
  • write setup = "/snippets_library/setup.snip" into the top-level _config.yml.
  • To customize, move your setup.md into _includes/snippets_library/institution_cluster/setup.snip and
  • set the corresponding path in _includes/snippets_library/institution_cluster/_config_options.yml.
  • Build the site with make --always-make site HPC_JEKYLL_CONFIG=_includes/snippets_library/institution_cluster/_config_options.yml.

Should work, I think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants