$ ssh -i mykey.pem ubuntu@XXX.XXX.XXX.XXX The authenticity of host 'XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX)' can't be established. ECDSA key fingerprint is SHA256:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'XXX.XXX.XXX.XXX' (ECDSA) to the list of known hosts. Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-1052-aws x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon May 4 04:22:37 UTC 2020 System load: 0.0 Processes: 88 Usage of /: 19.0% of 7.69GB Users logged in: 0 Memory usage: 18% IP address for eth0: 172.31.38.166 Swap usage: 0% 0 packages can be updated. 0 updates are security updates. *** System restart required *** The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@ip-172-31-38-166:~$
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