Skip to content

Instantly share code, notes, and snippets.

@scaomath
Last active June 17, 2021 19:49
Show Gist options
  • Save scaomath/1ba4546a2ae8b57a9ce89cfedfa674fb to your computer and use it in GitHub Desktop.
Save scaomath/1ba4546a2ae8b57a9ce89cfedfa674fb to your computer and use it in GitHub Desktop.

Revisions

  1. scaomath revised this gist Jun 17, 2021. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions jekyll_custom.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    # Workflow
    # 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
    ## 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.
  2. scaomath revised this gist Jun 17, 2021. 1 changed file with 3 additions and 6 deletions.
    9 changes: 3 additions & 6 deletions jekyll_custom.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Workflow
    Mainly following Alexandre Rademaker's guide[^1].
    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

    # Reference:
    [^1]: https://arademaker.github.io/blog/2011/12/01/github-pages-jekyll-plugins.html
    - https://www.drewsilcock.co.uk/custom-jekyll-plugins
    # 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.
  3. scaomath revised this gist Jun 17, 2021. 1 changed file with 16 additions and 3 deletions.
    19 changes: 16 additions & 3 deletions jekyll_custom.md
    Original 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:
    - https://arademaker.github.io/blog/2011/12/01/github-pages-jekyll-plugins.html
    [^1]: https://arademaker.github.io/blog/2011/12/01/github-pages-jekyll-plugins.html
    - https://www.drewsilcock.co.uk/custom-jekyll-plugins
  4. scaomath created this gist Jun 17, 2021.
    13 changes: 13 additions & 0 deletions jekyll_custom.md
    Original 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