Reputation: 4611
I found a jekyll theme I like which is hosted on github (theme page info here). The theme supports configuring my theme on github pages with the remote_theme
key in _config.yaml
, but I'm uncomfortable letting a third party's repository control the appearance and client-side code of my site.
Assuming there's a particular revision of theme files that I've audited and I'm satisfied with, how do I make sure that this revision gets used?
Some ideas:
remote_theme: myaccount/my-fork
.remote_theme
syntax support a particular revision hash?remote_theme
simply equivalent to copying all the theme data inside my repo _layout
and _style
folders?Upvotes: 3
Views: 964
Reputation: 24078
From the docs you can use an @GITREF
syntax to use a specific branch/tag/commit
You may also optionally specify a branch, tag, or commit to use by appending an @ and the Git ref (e.g., benbalter/[email protected] or benbalter/retlab@develop). If you don't specify a Git ref, the master branch will be used
Upvotes: 7