<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>视频 on 狗子28(中国)官方网站-相信品牌的力量，认准狗子28官网</title><link>https://zh-webs-dog28.com/tags/%E8%A7%86%E9%A2%91/</link><description>Recent content in 视频 on 狗子28(中国)官方网站-相信品牌的力量，认准狗子28官网</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Sat, 30 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://zh-webs-dog28.com/tags/%E8%A7%86%E9%A2%91/index.xml" rel="self" type="application/rss+xml"/><item><title>丰富内容呈现：图片、视频与嵌入式媒体</title><link>https://zh-webs-dog28.com/post/rich-content/</link><pubDate>Sat, 30 May 2026 00:00:00 +0000</pubDate><guid>https://zh-webs-dog28.com/post/rich-content/</guid><description>&lt;h2 id="让你的内容活起来多媒体元素的整合">让你的内容“活”起来：多媒体元素的整合&lt;/h2>
&lt;p>在现代数字内容创作中，仅仅依靠纯文本已经难以满足用户日益增长的阅读和信息获取需求。图片、视频、音频以及其他形式的富媒体内容，能够极大地增强信息的吸引力、易读性和传播力。Hugo作为一个强大的静态网站生成器，提供了灵活的方式来集成这些富媒体元素，让你的狗子28官网内容更加生动、丰富。&lt;/p>
&lt;h3 id="1-图片的使用">1. 图片的使用&lt;/h3>
&lt;p>图片是丰富内容最直接的方式。在Markdown中，你可以使用标准的Markdown语法来插入图片，或者利用Hugo提供的Image Processing功能。&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;strong>基础Markdown语法：&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-markdown" data-lang="markdown">&lt;span class="line">&lt;span class="cl">![&lt;span class="nt">图片描述&lt;/span>](&lt;span class="na">图片URL或相对路径 &amp;#34;图片标题&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>例如：&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-markdown" data-lang="markdown">&lt;span class="line">&lt;span class="cl">![&lt;span class="nt">狗子28品牌Logo&lt;/span>](&lt;span class="na">/uploads/content/8c4702f8af262e7b.png &amp;#34;狗子28官方Logo&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>这会在页面上显示狗子28的Logo。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Hugo图片处理（推荐）：&lt;/strong>
Hugo内置了强大的图片处理功能，允许你轻松地调整图片大小、裁剪、转换为WebP格式等，以优化加载速度和显示效果。这通常通过shortcodes来实现。&lt;/p>
&lt;p>一个典型的Hugo shortcode可能如下所示（具体取决于你的主题）：&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-go-html-template" data-lang="go-html-template">&lt;span class="line">&lt;span class="cl">&lt;span class="cm">{{/* 假设你有一个名为 &amp;#39;figure&amp;#39; 的shortcode */}}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;figure>&lt;img src="https://zh-webs-dog28.com/images/example.jpg"
alt="示例图片" width="50%">&lt;figcaption>
&lt;p>这张图展示了狗子28平台的功能。&lt;/p>
&lt;/figcaption>
&lt;/figure>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>这种方式更加灵活，并且可以集成响应式图片（&lt;code>srcset&lt;/code>）等高级特性。&lt;/p>
&lt;/li>
&lt;/ul>
&lt;h3 id="2-视频的嵌入">2. 视频的嵌入&lt;/h3>
&lt;p>视频能够以动态、直观的方式传达信息，非常适合产品演示、教程讲解或品牌&lt;/p></description></item></channel></rss>