feat: ブログ記事末尾に Google AdSense 広告を追加#29
Merged
Merged
Conversation
- static/ads.txt を追加(Google AdSense 認証用) - hugo.toml に adsensePublisher / adsenseSlot パラメータを追加 - layouts/partials/head/extensions.html で AdSense スクリプトを注入 - layouts/partials/posts/adsense.html で記事末尾に広告ユニットを表示 - adsenseSlot が未設定の場合は広告を非表示にする Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes #28
変更内容
static/ads.txt— Google AdSense 認証用ファイルを追加hugo.toml—adsensePublisher/adsenseSlotパラメータを追加layouts/partials/head/extensions.html—<head>に AdSense スクリプトを注入layouts/partials/posts/adsense.html— 記事末尾に in-article 形式の広告ユニットを追加layouts/posts/single.html— 本文直後に広告 partial を挿入確認事項
https://daruyanagi.jp/ads.txtにアクセスして内容が返ること🤖 Generated with Claude Code