<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<title>红山口野人のblog - 代码</title>
<link>https://blog.fx7l.cn/index.php/tag/%E4%BB%A3%E7%A0%81/</link>
<atom:link href="https://blog.fx7l.cn/index.php/feed/tag/%E4%BB%A3%E7%A0%81/" rel="self" type="application/rss+xml" />
<language>zh-CN</language>
<description></description>
<lastBuildDate>Wed, 08 Jun 2022 22:46:00 +0800</lastBuildDate>
<pubDate>Wed, 08 Jun 2022 22:46:00 +0800</pubDate>
<item>
<title>markdown 在 typecho 中的用法</title>
<link>https://blog.fx7l.cn/index.php/archives/196/</link>
<guid>https://blog.fx7l.cn/index.php/archives/196/</guid>
<pubDate>Wed, 08 Jun 2022 22:46:00 +0800</pubDate>
<dc:creator>红山口野人</dc:creator>
<description><![CDATA[markdown 编辑器在 typecho 程序中的用法。markdown 编辑器每个平台都大同小异，也有魔改的，这里只讨论在 typecho 博客程序中所用到的东西。除了 Kico Style...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p><font size ="3">markdown 编辑器在 typecho 程序中的用法。</p><p>markdown 编辑器每个平台都大同小异，也有魔改的，这里只讨论在 typecho 博客程序中所用到的东西。除了 Kico Style 外其他部分应该是通用的。</font></p><h2>字体</h2><p><kbd>Ctrl + S</kbd> | <mark>加亮文字</mark> | <cite>引用文字</cite> | <abbr title="提示功能">提示文字</abbr> | <del>删除线文字</del> | <a href="#">链接文字</a> | <small>较小文字</small> | <b>加粗文字</b> | <i>斜体文字</i></p><pre><code>&lt;kbd&gt;Ctrl + S&lt;/kbd&gt; | &lt;mark&gt;加亮文字&lt;/mark&gt; | &lt;cite&gt;引用文字&lt;/cite&gt; | &lt;abbr title=&quot;提示功能&quot;&gt;提示文字&lt;/abbr&gt; | &lt;del&gt;删除线文字&lt;/del&gt; | &lt;a href=&quot;#&quot;&gt;链接文字&lt;/a&gt; | &lt;small&gt;较小文字&lt;/small&gt; | &lt;b&gt;加粗文字&lt;/b&gt; | &lt;i&gt;斜体文字&lt;/i&gt;
</code></pre><h2>折叠代码</h2><p><details><br><summary>折叠代码</summary></p><pre><code>
我是被折叠的代码
</code></pre><p></details><br><br></p><pre><code>&lt;details&gt;
&lt;summary&gt;折叠代码&lt;/summary&gt;
&lt;pre&gt;&lt;code&gt;
我是被折叠的代码
&lt;/code&gt;&lt;/pre&gt;
&lt;/details&gt;
</code></pre><h2>开头空两个字</h2><p>在段落的开头输入<code>&amp;ensp;&amp;ensp;&amp;ensp;&amp;ensp;</code>，就会空两个字啦，<code>&amp;ensp;&amp;ensp;</code>的话就是空一个字。</p><h2>字号大小</h2><pre><code>size为1：&lt;font size =&quot;1&quot;&gt;Markdown&lt;/font&gt;
size为5：&lt;font size = &quot;5&quot;&gt;Markdown&lt;/font&gt;
size为10：&lt;font size =&quot;10&quot;&gt;Markdown&lt;/font&gt;

</code></pre>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://blog.fx7l.cn/index.php/archives/196/#comments</comments>
<wfw:commentRss>https://blog.fx7l.cn/index.php/feed/tag/%E4%BB%A3%E7%A0%81/</wfw:commentRss>
</item>
<item>
<title>给博客网站添加Hitokoto - 一言经典语句功能</title>
<link>https://blog.fx7l.cn/index.php/archives/70/</link>
<guid>https://blog.fx7l.cn/index.php/archives/70/</guid>
<pubDate>Wed, 18 May 2022 23:02:00 +0800</pubDate>
<dc:creator>红山口野人</dc:creator>
<description><![CDATA[一言网(Hitokoto.cn)创立于2016年，隶属于萌创Team，目前网站主要提供一句话服务。动漫也好、小说也好、网络也好，不论在哪里，我们总会看到有那么一两个句子能穿透你的心。我们把这些句...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>一言网(Hitokoto.cn)创立于2016年，隶属于萌创Team，目前网站主要提供一句话服务。</p><p>动漫也好、小说也好、网络也好，不论在哪里，我们总会看到有那么一两个句子能穿透你的心。我们把这些句子汇聚起来，形成一言网络，以传递更多的感动。如果可以，我们希望我们没有停止服务的那一天。</p><p>简单来说，一言指的就是一句话，可以是动漫中的台词，也可以是网络上的各种小段子。<br>或是感动，或是开心，有或是单纯的回忆。来到这里，留下你所喜欢的那一句句话，与大家分享，这就是一言存在的目的。<br>安装</p><p>1、部署接口<br>在网站根目录新建hitokoto文件夹，然后在文件夹里新建index.php文件，并编辑，代码如下：</p><pre><code>&lt;?php
$path = dirname(__FILE__);
$file = file($path.&quot;/hitokoto.txt&quot;);
$arr  = mt_rand( 0, count( $file ) - 1 );
$content  = trim($file[$arr]);
if (isset($_GET[&#039;charset&#039;]) &amp;&amp; !empty($_GET[&#039;charset&#039;])) {
$charset = $_GET[&#039;charset&#039;];
if (strcasecmp($charset,&quot;gbk&quot;) == 0 ) {
    $content = mb_convert_encoding($content,&#039;gbk&#039;, &#039;utf-8&#039;);
}
} else {
$charset = &#039;utf-8&#039;;
}
header(&quot;Content-Type: text/html; charset=$charset&quot;);
if ($_GET[&#039;format&#039;] === &#039;js&#039;) {
echo &quot;function hitokoto(){document.write(&#039;&quot; . $content .&quot;&#039;);}&quot;;
} else {
echo $content;
}
</code></pre><p>之后在文件夹内再新建并编辑<a href="https://blog.fx7l.cn/usr/uploads/2022/05/4151812573.txt">hitokoto.txt</a>文件，添加你喜欢的句子，也就是一言语句，记得一行一句话。</p><p>这时候用浏览器访问<a href="https://blog.fx7l.cn/hitokoto/">https://blog.fx7l.cn/hitokoto/</a>就可以看到输出内容了，接下来我们开始部署到博客上。</p><p>2、部署到博客<br>其实部署很简单，将下面两行代码添加到博客主题文件你想显示一言的位置即可：</p><pre><code>&lt;script type=&quot;text/javascript&quot; src=&quot;https://yourdomain.com/hitokoto/?format=js&amp;charset=utf-8&quot;&gt;&lt;/script&gt;
&lt;div id=&quot;hitokoto&quot;&gt;&lt;script&gt;hitokoto()&lt;/script&gt;&lt;/div&gt;
</code></pre><p>部署完成之后，前台刷新应该就可以看到效果了，每次刷新都会随机展示一言经典句子。</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://blog.fx7l.cn/index.php/archives/70/#comments</comments>
<wfw:commentRss>https://blog.fx7l.cn/index.php/feed/tag/%E4%BB%A3%E7%A0%81/</wfw:commentRss>
</item>
<item>
<title>收集全网优秀开源个人网站主页代码</title>
<link>https://blog.fx7l.cn/index.php/archives/67/</link>
<guid>https://blog.fx7l.cn/index.php/archives/67/</guid>
<pubDate>Wed, 18 May 2022 20:39:00 +0800</pubDate>
<dc:creator>红山口野人</dc:creator>
<description><![CDATA[楠格开源：https://github.com/XOS/Nange演示：https://i.nan.ge开源免费，风格简约，动态背景图片，如果你希望展示很多社交账号或者项目可以选择这个，上传后即...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<blockquote>楠格</blockquote><p>开源：<a href="https://github.com/XOS/Nange">https://github.com/XOS/Nange</a></p><p>演示：<a href="https://i.nan.ge">https://i.nan.ge</a></p><p>开源免费，风格简约，动态背景图片，如果你希望展示很多社交账号或者项目可以选择这个，上传后即可使用<br><img src="https://i2.100024.xyz/2022/05/18/y0bp16.webp" alt="DF32DCEC-5FAE-4F9A-B167-27D8B480CF9F" /></p><blockquote>NutssssIndex i</blockquote><p>开源：<a href="https://gitee.com/nutssss/NutssssIndex">https://gitee.com/nutssss/NutssssIndex</a></p><p>演示：<a href="https://nutssss.gitee.io/nutssssindex/">https://nutssss.gitee.io/nutssssindex/</a></p><p>开源免费，支持添加文字介绍同时也可以添加自己的社交账号和网址链接，上传后即可使用<br><a href="https://imgtu.com/i/O7PrFI"><img src="https://s1.ax1x.com/2022/05/18/O7PrFI.png" alt="O7PrFI.png" border="0"></a></p><blockquote>Tomotoes / HomePage</blockquote><p>开源：<a href="https://github.com/Tomotoes/HomePage">https://github.com/Tomotoes/HomePage</a></p><p>演示：<a href="https://tomotoes.com">https://tomotoes.com</a></p><p>开源免费，在进入展示页面之前有炫酷的动态效果，部署稍微要麻烦一点点，不过是值得的，喜欢的朋友可以打赏支持原作者<br><a href="https://imgtu.com/i/O7PweH"><img src="https://s1.ax1x.com/2022/05/18/O7PweH.png" alt="O7PweH.png" border="0"></a></p><blockquote>Dmego Home</blockquote><p>开源：dmego/home.github.io</p><p>演示：<a href="https://i.dmego.me">https://i.dmego.me</a></p><p>开源免费，背景图片和中间的文字段落是随机显示的，小编目前用的就是这个，个人觉得简单够用，上传即可使用<br><a href="https://imgtu.com/i/O7PyfP"><img src="https://s1.ax1x.com/2022/05/18/O7PyfP.png" alt="O7PyfP.png" border="0"></a></p><blockquote>EsunR Index</blockquote><p>开源：<a href="https://github.com/EsunR/Blog-Index">https://github.com/EsunR/Blog-Index</a></p><p>演示：<a href="https://www.esunr.xyz/#/home">https://www.esunr.xyz/#/home</a></p><p>开源免费，点击页面底部可以弹出一个窗口，如下图所示，里面可以分类存放自己的项目和网站，以及文字介绍，上传即可使用<br><a href="https://imgtu.com/i/O7PBTA"><img src="https://s1.ax1x.com/2022/05/18/O7PBTA.png" alt="O7PBTA.png" border="0"></a></p><blockquote>CyC2018</blockquote><p>开源：CyC2018/CyC2018.github.io</p><p>演示：<a href="https://cyc2018.github.io">https://cyc2018.github.io</a></p><p>开源，一个别致的个人介绍主页，适合个人项目展示，上传即可使用<br><a href="https://imgtu.com/i/O7P0wd"><img src="https://s1.ax1x.com/2022/05/18/O7P0wd.png" alt="O7P0wd.png" border="0"></a></p><blockquote>kaygb</blockquote><p>开源：<a href="https://github.com/kaygb/kaygb">https://github.com/kaygb/kaygb</a></p><p>演示：<a href="https://www.170601.xyz/demos/kaygb-v3/">https://www.170601.xyz/demos/kaygb-v3/</a></p><p>开源，有点二次元风格的个人主页，上传即可使用<br><a href="https://imgtu.com/i/O7PHpV"><img src="https://s1.ax1x.com/2022/05/18/O7PHpV.md.png" alt="O7PHpV.png" border="0" /></a></p><blockquote>iissnan</blockquote><p>开源：<a href="https://github.com/iissnan/iissnan.github.com">https://github.com/iissnan/iissnan.github.com</a></p><p>演示：<a href="https://iissnan.com">https://iissnan.com</a></p><p>开源、暗黑风格个人主页，小编也有在用这个，修改后上传即可使用<br><a href="https://imgtu.com/i/O7PsYt"><img src="https://s1.ax1x.com/2022/05/18/O7PsYt.png" alt="O7PsYt.png" border="0"></a><br>总结 作者：软件小编 <a href="https://www.bilibili.com/read/cv8799075/">https://www.bilibili.com/read/cv8799075/</a> 出处：bilibili</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://blog.fx7l.cn/index.php/archives/67/#comments</comments>
<wfw:commentRss>https://blog.fx7l.cn/index.php/feed/tag/%E4%BB%A3%E7%A0%81/</wfw:commentRss>
</item>
<item>
<title>Dplayer for typecho使用</title>
<link>https://blog.fx7l.cn/index.php/archives/59/</link>
<guid>https://blog.fx7l.cn/index.php/archives/59/</guid>
<pubDate>Tue, 17 May 2022 23:33:00 +0800</pubDate>
<dc:creator>红山口野人</dc:creator>
<description><![CDATA[//代码复制的方法下面所有例子最开始的[换成了(，到时候使用的时候，将开头的(换成[，即被[]包住即可。#关闭弹幕{dplayer url=&quot;http://xxx.com/xxx.mp...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<pre><code>//代码复制的方法
</code></pre><p>下面所有例子最开始的[换成了(，到时候使用的时候，将开头的(换成[，即被[]包住即可。</p><p>#关闭弹幕</p><pre><code>{dplayer url=&quot;http://xxx.com/xxx.mp4&quot; pic=&quot;http://xxx.com/xxx.jpg&quot;/]
</code></pre><p>#开启自动播放</p><pre><code>(dplayer url=&quot;http://xxx.com/xxx.mp4&quot; pic=&quot;http://xxx.com/xxx.jpg&quot; danmu=&quot;false&quot;/]
</code></pre><h1>添加额外弹幕源l</h1><pre><code>(dplayer url=&quot;http://xxx.com/xxx.mp4&quot; pic=&quot;http://xxx.com/xxx.jpg&quot; autoplay=&quot;true&quot;/]

</code></pre>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://blog.fx7l.cn/index.php/archives/59/#comments</comments>
<wfw:commentRss>https://blog.fx7l.cn/index.php/feed/tag/%E4%BB%A3%E7%A0%81/</wfw:commentRss>
</item>
</channel>
</rss>