A quicker, cleaner way to get started blogging with Hydejack.
Clone or download
Pull request Compare This branch is 13 commits ahead of qwtel:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_data
_featured_categories
_includes
_plugins
_posts
_sass
assets/icons
.gitignore
404.md
Gemfile
Gemfile.lock
README.md
_config.yml
aboutme.md
atom.xml
index.html

README.md

Hydejack Starter Kit

https://github.com/qwtel/hydejack-starter-kit

files

$ mkdir _nojekyll
$ mv docs.md about.md index.html _featured_categories/example.md assets/img/ example/ _nojekyll/

$ git status
# On branch master
# Changes not staged for commit:
#   (use "git add/rm <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   .gitignore
#       modified:   README.md
#       modified:   _config.yml
#       modified:   _data/authors.yml
#       modified:   _data/strings.yml
#       deleted:    _featured_categories/example.md
#       modified:   _sass/my-inline.scss
#       deleted:    about.md
#       deleted:    assets/img/hydejack-8.jpg
#       deleted:    assets/img/hydejack-8@0,25x.jpg
#       deleted:    assets/img/hydejack-8@0,5x.jpg
#       deleted:    docs.md
#       deleted:    example/_posts/2017-11-23-example-content-ii.md
#       deleted:    example/_posts/2018-06-01-example-content-iii.md
#       modified:   index.html
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       _featured_categories/category.md
#       _featured_categories/tag.md
#       _posts/
#       aboutme.md
#       assets/icons/
#       atom.xml
no changes added to commit (use "git add" and/or "git commit -a")

$ tail .gitignore

# delete from upstream example files
_featured_categories/example.md
_nojekyll/*
assets/img/*
example/*
about.md
docs.md

$ find .|egrep -v '.git|_nojekyll'
.
./_config.yml
./_includes
./_includes/my-body.html
./_includes/my-head.html
./_plugins
./_plugins/jekyll-replace-imgs
./_plugins/jekyll-replace-imgs/jekyll-replace-imgs.rb
./_plugins/README.md
./atom.xml
./Gemfile.lock
./index.html
./_featured_categories
./_featured_categories/category.md
./_featured_categories/tag.md
./_sass
./_sass/my-style.scss
./_sass/my-inline.scss
./aboutme.md
./assets
./assets/icons
./assets/icons/favicon.ico
./Gemfile
./_posts
./_posts/2018-08-31-openssh-7.8p1-broken-pipe-under-vmware-vm-with-nat-port-forward.md
./_data
./_data/social.yml
./_data/authors.yml
./_data/strings.yml
./README.md
./404.md

update

git remote add upstream https://github.com/qwtel/hydejack-starter-kit.git
git fetch upstream
git status
git pull upstream master ( git rebase/merge | git merge upstream/master )

Fork 的分支从源分支更新的方法

gitlab 或 github 下 fork 后如何同步源的新更新内容?

jekyll

var

https://jekyllrb.com/docs/variables/

https://stackoverflow.com/questions/6366188/jekyll-select-current-page-url-and-change-its-class

{{ site.url }}
{{ page.url | remove:'index.html' }}
{{ page.relative_path }}
{{ page.relative_path | replace:'index.html', '' | remove: '_blocks/' | prepend: site.baseurl }}