<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>見出し on Awesome360</title>
    <link>https://www.awesome-360.com/tags/%E8%A6%8B%E5%87%BA%E3%81%97/</link>
    <description>Recent content in 見出し on Awesome360</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja-jp</language>
    <lastBuildDate>Sat, 17 Jul 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://www.awesome-360.com/tags/%E8%A6%8B%E5%87%BA%E3%81%97/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>HugoのテーマでCSSを編集して、見出しデザインを変更する方法</title>
      <link>https://www.awesome-360.com/post/2021/07/how_to_edit_css_for_heading/</link>
      <pubDate>Sat, 17 Jul 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.awesome-360.com/post/2021/07/how_to_edit_css_for_heading/</guid>
      <description>今回は「私のブログ見出しがものすごく見辛いな」と思っていたので、CSS等カスタマイズしたので、その方法を紹介します。
目次  CSSを新規作成 HTMLの編集 TOMLファイルの修正 CSSの編集 参考サイト  1. CSSを新規作成 まずはカスタムCSSファイルを作成します。
今回は見出しの編集をしたかったので、static&amp;gt;css&amp;gt;の直下にcustom_heading.cssを作成しました。
配置場所は以下のようなイメージです。
ご自身のブログ-|-aechetypes |-content |-data |-layouts |-public |-static-|-css-|-custom_heading.css 2. HTMLの編集 次にHTMLファイルを編集します。
今回は、single.htmlを編集していきます。
まずテーマの中にあるsingle.htmlをlayoutsにコピーします。
私は_defaultとpostの直下にあるsingle.htmlを編集したかったので、以下のような配置になりました。
ご自身のブログ-|-aechetypes |-content |-data |-layouts-|-_default-|-single.html |-post-|-single.html |-public |-static どちらのsingle.htmlもdiv要素のidがcontentがあったので、以下のように追加しました。
&amp;lt;div id=&amp;#34;content&amp;#34;&amp;gt; {{ range .Site.Params.customCSS }} &amp;lt;link rel=&amp;#34;stylesheet&amp;#34; href=&amp;#34;{{ . | absURL}}&amp;#34;&amp;gt; {{ end }} &amp;lt;/div&amp;gt; ここまでできたら、一旦tomlファイルを編集していきます。
3. TOMLファイルの編集 config.tomlを編集します。
[params]にcustomCSSを配置して、先ほど作成したCSSファイルを有効にします。
大体のテーマではcustomCSSは元々あると思います。
customCSSに&amp;quot;/css/custom_heading.css&amp;quot;を追加します。
私の場合は以下のようになりました。
[params] customCSS= [&amp;#34;default&amp;#34;, &amp;#34;/css/custom_heading.css&amp;#34;] 4. CSSの編集 有効になったところで、新規に作成したcustom_heading.cssを編集していきます。
今回は初心者に優しいサイトである サルワカさん が提供してくれているコードを使用します。
とっても便利なので是非使って下さい。
＜参考サイト＞ ・CSSのコピペだけ！おしゃれな見出しのデザイン例まとめ68選( https://saruwakakun.</description>
    </item>
    
  </channel>
</rss>
