Skip to content

g-kari/0g0-blog

Repository files navigation

0g0-blog

Deploy Status

概要

このプロジェクトはHugoを使用して構築された静的ウェブサイトです。GitHub-styleテーマを使用し、Cloudflare Pagesでホストされています。

機能

  • GitHub-styleテーマによるモダンなデザイン
  • Gitalkによるコメント機能
  • GoogleAnalytics(GA4)によるアクセス解析
  • 記事の検索機能
  • GitHub Issuesとの連携による記事管理
  • 日本語URLのサポート
  • RSSフィード対応

必要条件

  • Hugo Extended v0.140.2以上
  • Go 1.18以上
  • Git

プロジェクト構造

.
├── .devcontainer/    # 開発コンテナの設定
├── .github/          # GitHub Actions設定
│   └── workflows/    # 自動化ワークフロー
├── archetypes/       # コンテンツのテンプレート
├── content/          # ブログコンテンツ
│   ├── posts/        # 記事
│   └── about/        # 固定ページ
├── public/           # ビルドされたサイトの出力先
├── scripts/          # ユーティリティスクリプト
├── static/          # 静的ファイル
│   └── images/      # 画像ファイル
├── themes/          # テーマファイル(GitHub-style)
├── hugo.toml        # サイトの設定ファイル
└── wrangler.toml    # Cloudflare Pages設定

設定情報

  • ベースURL: https://0g0.xyz/
  • 言語: ja-JP
  • サイトタイトル: g-kariのブログ
  • テーマ: GitHub-style

デプロイ

サイトはCloudflare Pagesで自動的にデプロイされます:

  1. mainブランチへのプッシュで自動デプロイ
  2. プルリクエストでプレビューデプロイ

記事の作成方法

  1. GitHub Issuesで新規Issue作成
  2. blog-postラベルを付ける
  3. 自動的に記事として変換・公開

または直接作成:

hugo new posts/my-new-post.md

ローカル開発

# 開発サーバーの起動
hugo server -D

# 本番用ビルド
hugo --minify

環境変数

  • HUGO_ENV: 環境設定(production/preview)
  • GITALK_SECRET: Gitalkの認証情報
  • HUGO_VERSION: Hugoのバージョン指定

ライセンス

MIT License

Copyright (c) 2024 g-kari

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •