Last active
June 17, 2021 19:49
-
-
Save scaomath/1ba4546a2ae8b57a9ce89cfedfa674fb to your computer and use it in GitHub Desktop.
Revisions
-
scaomath revised this gist
Jun 17, 2021 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ # Jekyll simple workflow to use custom a plugin on Github pages ## Workflow Mainly following [Alexandre Rademaker's guide](https://arademaker.github.io/blog/2011/12/01/github-pages-jekyll-plugins.html). - Checkout to `source` branch, where we write things with a custom plugin. @@ -19,5 +21,5 @@ git commit git push --all origin ``` ## Note In [another guide by Drew Silcock](https://www.drewsilcock.co.uk/custom-jekyll-plugins), the `_site` folder itself is linked the remote `origin/master`, however, as of right now, `--set-upstream` is not workin in `git` anymore. -
scaomath revised this gist
Jun 17, 2021 . 1 changed file with 3 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ # Workflow Mainly following [Alexandre Rademaker's guide](https://arademaker.github.io/blog/2011/12/01/github-pages-jekyll-plugins.html). - Checkout to `source` branch, where we write things with a custom plugin. ```bash @@ -19,8 +19,5 @@ git commit git push --all origin ``` # Note In [another guide by Drew Silcock](https://www.drewsilcock.co.uk/custom-jekyll-plugins), the `_site` folder itself is linked the remote `origin/master`, however, as of right now, `--set-upstream` is not workin in `git` anymore. -
scaomath revised this gist
Jun 17, 2021 . 1 changed file with 16 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,26 @@ # Workflow Mainly following Alexandre Rademaker's guide[^1]. - Checkout to `source` branch, where we write things with a custom plugin. ```bash git checkout source ``` - Writing things, `commit` and `push` the changes - Build site into `_site` folder, `_site` folder should be in the `.gitignore` of the `source` branch ``` bundle exec jekyll serve ``` - Change to `master` branch, add `.nojekyll` as one `include` in the `_config.yml` ``` git checkout master cp -r _site/* . && rm -rf _site/ && touch .nojekyll git add . git commit git push --all origin ``` ## Note # Reference: [^1]: https://arademaker.github.io/blog/2011/12/01/github-pages-jekyll-plugins.html - https://www.drewsilcock.co.uk/custom-jekyll-plugins -
scaomath created this gist
Jun 17, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ # Workflow - Checkout to `source` branch, where we write things with a custom plugin. ```bash git checkout source ``` - # Reference: - https://arademaker.github.io/blog/2011/12/01/github-pages-jekyll-plugins.html - https://www.drewsilcock.co.uk/custom-jekyll-plugins