Home How to write a post
Post
Cancel

How to write a post

How to write a post

Steps:
  1. Create post(s) with .md format at zenbro.github.io/_posts
  2. Run the bash
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    
     #! /bin/bash
        
     echo inputCommitMessage
     read commit
        
     git clone https://github.com/YuchaoZheng88/zenbro.github.io.git
     cd zenbro.github.io
     git submodule init
     git submodule update
     cd YuchaoZheng88.github.io/
     git checkout main
     cd ..
     bundle update
     jekyll build -d YuchaoZheng88.github.io
     cd YuchaoZheng88.github.io/
        
     git add .
     git commit -m "$commit"
     git push
     cd ..
     git add .
     git commit -m "$commit"
     git push
        
    
  3. push YuchaoZheng88.github.io, then push main zenbro.github.io
This post is licensed under CC BY 4.0 by the author.