Start to learn Jekyll
It’s the second week of this semester and a logic time to start building my personal blog. Now I’m begining with github pages and jekyll. This post is about tech issues of learning jekyll.
for(int i=1; i<5; i++){
new chuck();
}
//use raw to escape liquid syntax
{{site.time}}
//use global variable site.time to output time
2019-11-18 03:10:30 +0000
// use for loop to output all page.path in site.pages
- 404.html
- about.md
- category.md
- contact.md
- index.md
- assets/css/main.scss
- assets/main.scss
- feed.xml
Man chuck;
chuck = new Man();
highlight code
1
2
3
4
5
6
7
def show
@widget = Widget(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @widget }
end
end
test: read data from member.yml in _data
//_data folder –> membe file
- Fa : 16
- Li : 18
- Zhang : 20