Git Product home page Git Product logo

sereinxm.github.io's Introduction

draft # Creates a new draft post with the given NAME post # Creates a new post with the given NAME publish # Moves a draft into the _posts directory and sets the date unpublish # Moves a post back into the _drafts directory page # Creates a new page with the given NAME rename # Moves a draft to a given NAME and sets the title compose # Creates a new file with the given NAME 使用以下方法创建新页面:

$ bundle exec jekyll page "My New Page"

使用以下方法创建新帖子:

$ bundle exec jekyll post "My New Post"
# or specify a custom format for the date attribute in the yaml front matter
$ bundle exec jekyll post "My New Post" --timestamp-format "%Y-%m-%d %H:%M:%S %z"
# or by using the compose command
$ bundle exec jekyll compose "My New Post"
# or by using the compose command with post specified
$ bundle exec jekyll compose "My New Post" --post
# or by using the compose command with the posts collection specified
$ bundle exec jekyll compose "My New Post" --collection "posts"

使用以下方法创建新草稿:

$ bundle exec jekyll draft "My new draft"
# or by using the compose command with draft specified
$ bundle exec jekyll compose "My new draft" --draft
# or by using the compose command with the drafts collection specified
$ bundle exec jekyll compose "My new draft" --collection "drafts"

使用以下方法重命名草稿:

$ bundle exec jekyll rename _drafts/my-new-draft.md "My Renamed Draft"

or rename it back

$ bundle exec jekyll rename _drafts/my-renamed-draft.md "My new draft" 使用以下方法发布草稿:

$ bundle exec jekyll publish _drafts/my-new-draft.md
# or specify a specific date on which to publish it
$ bundle exec jekyll publish _drafts/my-new-draft.md --date 2014-01-24
# or specify a custom format for the date attribute in the yaml front matter
$ bundle exec jekyll publish _drafts/my-new-draft.md --timestamp-format "%Y-%m-%d %H:%M:%S %z"

使用以下方法重命名您的帖子:

$ bundle exec jekyll rename _posts/2014-01-24-my-new-draft.md "My New Post"

or specify a specific date

$ bundle exec jekyll rename _posts/2014-01-24-my-new-post.md "My Old Post" --date "2012-03-04"

or specify the current date

$ bundle exec jekyll rename _posts/2012-03-04-my-old-post.md "My New Post" --now 使用以下方法取消发布帖子:

$ bundle exec jekyll unpublish _posts/2014-01-24-my-new-draft.md

使用以下方法在集合中创建新文件:

$ bundle exec jekyll compose "My New Thing" --collection "things"

sereinxm.github.io's People

Contributors

sereinxm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.