githubでホームページを簡単に公開出来ます

githubへ「ユーザー名.github.io」のリポジトリを作成

themeを選んでhexoでホームページをローカルで作成

theme、icarusの場合https://github.com/ppoffice/hexo-theme-icarus

icarus themeのデフォルト設定だと空の広告が表示される

hexo icarusで検索すると、空の広告が表示されたまま使用されているHPを結構見受ける

以下コンフィグ_config.icarus.ymlの#donates:や#google adsenseを最初は全てコメントアウトすると良い

#donates:
# "Afdian.net" donate button configurations
# -
# type: afdian
# # URL to the "Afdian.net" personal page
# url: ''
# Alipay donate button configurations
# -
# type: alipay
# Alipay qrcode image URL
# qrcode: ''
# "Buy me a coffee" donate button configurations
# -
# type: buymeacoffee
# # URL to the "Buy me a coffee" page
# url: ''
# Patreon donate button configurations
# -
# type: patreon
# # URL to the Patreon page
# url: ''
# Paypal donate button configurations
# -
# type: paypal
# Paypal business ID or email address
# business: ''
# Currency code
# currency_code: USD
# Wechat donate button configurations
# -
# type: wechat
# Wechat qrcode image URL
# qrcode: ''

ローカルフォルダでhexo server、ブラウザでhttp://localhost:4000/確認する

hexo generateでpublicフォルダにホームページが作成される

これをgithubへpushでユーザー名.github.ioへ簡単にホームページが公開出来ます

https://kujiranodanna.github.io/

Follow me!