<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tkancf</author_name>
  <author_url>https://blog.hatena.ne.jp/tkancf/</author_url>
  <blog_title>ggdG:wq</blog_title>
  <blog_url>https://tkancf.hateblo.jp/</blog_url>
  <categories>
    <anon>Hugo</anon>
    <anon>tech</anon>
  </categories>
  <description>Hugoの記事内でTwitterの埋め込みなどをしたくなったとき、生のHTMLを使ってほしい時があったので対応方法を調べて導入した。 参考: 【HUGO】マークダウンの中にHTMLコードを書いて表示する方法 HugoのThemeに {{ .Innner }} というショートコードを導入する必要があるらしい。 利用しているThemeをcloneして &quot;layouts&quot; フォルダ内に &quot;rawhtml.html&quot; というファイルを作成。 ファイルに {{ .Inner }} とだけ記載すると↓のように書くことで生HTMLが記事内で使えるようになった 🎉🎉 {{&lt; rawhtml &gt;}} &lt;code…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftkancf.hateblo.jp%2Fblog%2Fhugo-raw-html&quot; title=&quot;Hugo で生HTMLを書く方法 - ggdG:wq&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-08-21 18:16:52</published>
  <title>Hugo で生HTMLを書く方法</title>
  <type>rich</type>
  <url>https://tkancf.hateblo.jp/blog/hugo-raw-html</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
