hexo new draft テストページ INFO Created: C:\....\<<サイト名>>\source\_drafts\テストページ.md
hexo server --draftでドラフトを表示して確認。
1 2 3
hexo server --draft INFO Start processing INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
hexo publishでドラフトをリリース。
1
hexo publish テストページ
hexo serverでリリースしたページを表示して確認。
1 2 3
hexo server INFO Start processing INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
ページ作成 - リリースのみ
ドラフトは作成せずリリースする場合、hexo newで作成。
1 2
hexo new テストページ INFO Created: C:\....\<<サイト名>>\source\_posts\テストページ.md
hexo serverでリリースしたページを表示して確認。
1 2 3
hexo server INFO Start processing INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
静的サイトの作成
hexo generateでサイト一式がpublishフォルダーに作成される。
1 2 3 4 5 6 7 8 9
hexo generate hexo generate INFO Start processing INFO Files loaded in9.24 s INFO Generated: post-sitemap.xml INFO Generated: atom.xml INFO Generated: sitemap.xml INFO Generated: sitemap.xsl INFO Generated: categories/テスト/index.html
hexo cleanでサイト一式クリアできる。
1 2 3
hexo clean INFO Deleted database. INFO Deleted public folder.
git clone https://github.com/LouisBarranqueiro/hexo-theme-tranquilpeak themes/tranquilpeak cd themes cd tranquilpeak npm install grunt build cd .. cd ..
# Writing new_post_name::title.md# File name of new posts default_layout:post titlecase:false# Transform title into titlecase external_link:true# Open external links in new tab filename_case:0 render_drafts:false #post_asset_folder: false post_asset_folder:true relative_link:false future:true highlight: enable:true line_number:true auto_detect:false tab_replace:
サイトに関する情報を設定
サイトに関する情報を設定する。 タイムゾーンはAsia/Tokyoにする。
1 2 3 4 5 6 7 8
# Site title:Hexo subtitle: description: keywords: author:JohnDoe language:ja timezone:Asia/Tokyo
# or in `source/assets/images/` if you can't or don't want to build the theme, # and use relative url : `your-image.png` cover_image:grey.jpg # Your favicon located in folder `source/_images/` (development) or in `source/assets/images/` (production) favicon:
# Define the behavior of the sidebar # 1: Display extra large sidebar on extra large screen, large sidebar on large screen, # medium sidebar on medium screen and header bar on small screen and # extra large sidebar is swiped on extra large screen and large sidebar on all lower screen (default) # 2: Display large sidebar on large screen, medium sidebar on medium screen and # header bar on small screen and large sidebar is swiped # 3: Display medium sidebar on large and medium screen and header bar on small screen and # medium sidebar is swiped # 4: Display header bar on all screens, extra large sidebar is swiped on extra large screen and # large sidebar is swiped on all lower screens # 5: Display header bar on all screens and large sidebar is swiped on large screen # 6: Display header bar on all screens and medium sidebar is swiped #sidebar_behavior: 1 sidebar_behavior:6 # Hide sidebar on all article page to let article take full width to improve reading, and
# Your Google analystics web property ID : UA-XXXXX-X google_analytics_id:UA-XXXXX-X # Your Baidu analystics web property ID : 9505a5af654a2478f93fd6c0ae4f687d baidu_analytics_id: # Your Gravatar email. Overwrite `author.picture` everywhere in the blog