<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NeoEar &#187; WordPress</title>
	<atom:link href="http://neoear.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://neoear.com</link>
	<description>Wearing my headphones, the world has nothing to me</description>
	<lastBuildDate>Sun, 13 May 2012 03:11:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>为 WP Kit CN 中文工具箱的 Read more 加上 nofollow</title>
		<link>http://neoear.com/2010/11/add-nofollow-to-read-more-link-on-wp-kit-cn/</link>
		<comments>http://neoear.com/2010/11/add-nofollow-to-read-more-link-on-wp-kit-cn/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 12:24:35 +0000</pubDate>
		<dc:creator>neoear</dc:creator>
				<category><![CDATA[technology-sharing]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://neoear.com/?p=678</guid>
		<description><![CDATA[<p>　　想给评论链接和 Read more 添加 nofollow ，按照 <a rel="nofollow" href="http://www.neoease.com/add-nofollow-to-comment-link-on-wordpress/">为 WordPress 的评论链接加上 nofollow</a> 和 <a rel="nofollow" href="http://www.neoease.com/add-nofollow-to-read-more-link-on-wordpress/">为 WordPress 的 Read more 加上 nofoll[......]</a></p><p class='read-more'><a href='http://neoear.com/2010/11/add-nofollow-to-read-more-link-on-wp-kit-cn/'>Read More »</a></p>]]></description>
			<content:encoded><![CDATA[<p>　　想给评论链接和 Read more 添加 nofollow ，按照 <a rel="nofollow" href="http://www.neoease.com/add-nofollow-to-comment-link-on-wordpress/">为 WordPress 的评论链接加上 nofollow</a> 和 <a rel="nofollow" href="http://www.neoease.com/add-nofollow-to-read-more-link-on-wordpress/">为 WordPress 的 Read more 加上 nofollow</a> 方法来做。前者成功，后者失败。</p>
<p>　　仔细检查，上面的方法适合 wordpress 自带的 Read more ，即编辑文章时手动添加的 more 标签。于是另按 <a rel="nofollow" href="http://zww.me/archives/25181">简单的文章截断方法, 支持 Read more 加上 nofollow</a> ，效果达到了，但也把正用的WP插件 WP Kit CN中文工具箱的截断功能覆盖掉了，丢失了文本格式，这不是我想要的结果。 WP Kit CN中文工具箱的截断效果一般是在首页文末留下“阅读全文：共XXX字”或者“Read More: XXX Words Totally”。于是，就想这应该是插件实现的，和其他什么没有太大关系。果然搞定！</p>
<p>　　<strong>方法</strong><br />
　　1. 打开<strong>wp-content/plugins/wp-kit-cn/php</strong>，找到并打开<strong>wp-kit-cn.class.php</strong>文件<br />
　　2. 在文末中找到以下代码</p>
<blockquote><div style="font-family: &quot;Tahoma&quot;,&quot;Lucida Console&quot;,&quot;Courier New&quot;,&quot;monospace&quot;; color: rgb(0, 0, 0); background-color: rgb(249, 249, 249);" class="source"> <span style="color: rgb(0, 0, 0);">$output .= &#39;&lt;span class=&quot;readmore&quot;&gt;&lt;a href="&#39; . get_permalink() . '" title="' . strip_tags(get_the_title()) . '"&gt;';</span></div>
</blockquote>
<p>　　<strong>替换为</strong></p>
<blockquote><div style="font-family: &quot;Tahoma&quot;,&quot;Lucida Console&quot;,&quot;Courier New&quot;,&quot;monospace&quot;; color: rgb(0, 0, 0); background-color: rgb(249, 249, 249);" class="source"> <span style="color: rgb(0, 0, 0);">$output .= &#39;&lt;span class=&quot;readmore&quot;&gt;&lt;a href="&#39; . get_permalink() . '" title="' . strip_tags(get_the_title()) . '" rel="nofollow"&gt;';</span></div>
</blockquote>
<p>　　其实就是添加一小段代码 <strong>rel="nofollow"</strong> 而已，方法粗暴却简单好用。加完后可以用Firebug或者查看首页源代码有没有效果。</p>
<p>　　顺便说下，WP Kit CN中文工具箱虽是老插件，但依然好用，当初刚接触WordPress时，觉得这个插件简直是神一样的插件，呵呵</p>
<h4  class="related_post_title">Related Posts</h4><ul class="related_post"><li><a href="http://neoear.com/2010/11/gray-style-for-elegant-box-411/" title="分享主题 Elegant Box 的灰色风格">分享主题 Elegant Box 的灰色风格</a><br /><small>简介
为 Elegant Box 做了个灰色风格（gray style），参考 mg12 的私有主题...</small></li><li><a href="http://neoear.com/2010/09/the-first-anniversary-of-wordpress-blog/" title="WordPress博客一周年">WordPress博客一周年</a><br /><small>　　从去年9月初开始买域名和空间搭WP博客，已经走过一周年了。

　　如果不讨论写博平台，只说写博...</small></li><li><a href="http://neoear.com/2009/11/baidu-sitemap-generator/" title="百度站点地图插件：Baidu Sitemap Generator">百度站点地图插件：Baidu Sitemap Generator</a><br /><small>　　之前用了Google XML Sitemaps 插件，Google收录结果理想。看了下百度收录结果...</small></li><li><a href="http://neoear.com/2009/10/wordpress-indent/" title="WordPress的三种首行缩进方法">WordPress的三种首行缩进方法</a><br /><small>我们中国人写东西都有段首空两个汉字（俗称“低2格”）的习惯，不缩进也不影响阅读，看个人喜好。我来谈谈W...</small></li><li><a href="http://neoear.com/2009/10/resume-writing-blog/" title="恢复写博">恢复写博</a><br /><small>毕业后写博断断续续，内容匮乏，多数是影视评论，越写越水，再加上原先的博客托管商的一些动作，让人很不舒服...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://neoear.com/2010/11/add-nofollow-to-read-more-link-on-wp-kit-cn/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>分享主题 Elegant Box 的灰色风格</title>
		<link>http://neoear.com/2010/11/gray-style-for-elegant-box-411/</link>
		<comments>http://neoear.com/2010/11/gray-style-for-elegant-box-411/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 10:54:27 +0000</pubDate>
		<dc:creator>neoear</dc:creator>
				<category><![CDATA[technology-sharing]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://neoear.com/?p=674</guid>
		<description><![CDATA[<p><strong>简介</strong>
为 <a rel="nofollow" href="http://wordpress.org/extend/themes/elegant-box">Elegant Box</a> 做了个灰色风格（gray style），参考 <a rel="nofollow" href="http://www.neoease.com/">mg12</a> 的私有主题 Paled 色彩，基于紫色风格（purple style）修改，兼容 Elegant Box 4.[......]</p><p class='read-more'><a href='http://neoear.com/2010/11/gray-style-for-elegant-box-411/'>Read More »</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>简介</strong><br />
为 <a rel="nofollow" href="http://wordpress.org/extend/themes/elegant-box">Elegant Box</a> 做了个灰色风格（gray style），参考 <a rel="nofollow" href="http://www.neoease.com/">mg12</a> 的私有主题 Paled 色彩，基于紫色风格（purple style）修改，兼容 Elegant Box 4.1.1，更低版本未做兼容测试。</p>
<p><strong>截图</strong><br />
<a href="http://neoear.com/wp-content/uploads/Gray-Style-for-Elegant-Box-4.1.1-20101121.png" class="highslide-image" onclick="return hs.expand(this);" onclick="return hs.expand(this);" class="highslide-image"><img alt="主题Elegant Box的灰色风格" src="http://neoear.com/wp-content/uploads/Gray-Style-for-Elegant-Box-4.1.1-20101121.png"  width="400" height="137"/></a></p>
<p><strong>安装</strong><br />
1. 下载文件 gray_for_elegantbox_4.1.1.zip<br />
2. 并将目录 gray 解压到 wp-content/themes/elegantbox/styles/<br />
3. 刷新页面，ok</p>
<p><strong>下载</strong><br />
<a href="http://neoear.com/wp-content/uploads/gray_for_elegantbox_4.1.1.zip">gray_for_elegantbox_4.1.1.zip</a></p>
<p><strong>制作</strong><br />
如果对制作方法感兴趣，可以参考 <a rel="nofollow" href="http://www.neoease.com/create-a-new-style-for-elegantbox/">制作 Elegant Box 主题风格</a> 和 <a rel="nofollow" href="http://www.neoease.com/purple-style-for-elegant-box-14/">Purple Style for Elegant Box 1.4</a>，也希望做出其它风格的朋友，分享一下。</p>
<p><strong>其他</strong><br />
如果无法下载，请留下Email，我会给你发过去。请不要在留言框里留下Email，那样容易成为垃圾邮件群发器的目标，在Email一栏中填写即可。</p>
<h4  class="related_post_title">Related Posts</h4><ul class="related_post"><li><a href="http://neoear.com/2010/11/add-nofollow-to-read-more-link-on-wp-kit-cn/" title="为 WP Kit CN 中文工具箱的 Read more 加上 nofollow">为 WP Kit CN 中文工具箱的 Read more 加上 nofollow</a><br /><small>　　想给评论链接和 Read more 添加 nofollow ，按照 为 WordPress 的评论...</small></li><li><a href="http://neoear.com/2010/09/the-first-anniversary-of-wordpress-blog/" title="WordPress博客一周年">WordPress博客一周年</a><br /><small>　　从去年9月初开始买域名和空间搭WP博客，已经走过一周年了。

　　如果不讨论写博平台，只说写博...</small></li><li><a href="http://neoear.com/2009/11/baidu-sitemap-generator/" title="百度站点地图插件：Baidu Sitemap Generator">百度站点地图插件：Baidu Sitemap Generator</a><br /><small>　　之前用了Google XML Sitemaps 插件，Google收录结果理想。看了下百度收录结果...</small></li><li><a href="http://neoear.com/2009/10/wordpress-indent/" title="WordPress的三种首行缩进方法">WordPress的三种首行缩进方法</a><br /><small>我们中国人写东西都有段首空两个汉字（俗称“低2格”）的习惯，不缩进也不影响阅读，看个人喜好。我来谈谈W...</small></li><li><a href="http://neoear.com/2009/10/resume-writing-blog/" title="恢复写博">恢复写博</a><br /><small>毕业后写博断断续续，内容匮乏，多数是影视评论，越写越水，再加上原先的博客托管商的一些动作，让人很不舒服...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://neoear.com/2010/11/gray-style-for-elegant-box-411/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>WordPress博客一周年</title>
		<link>http://neoear.com/2010/09/the-first-anniversary-of-wordpress-blog/</link>
		<comments>http://neoear.com/2010/09/the-first-anniversary-of-wordpress-blog/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 12:42:43 +0000</pubDate>
		<dc:creator>neoear</dc:creator>
				<category><![CDATA[technology-sharing]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://neoear.com/?p=666</guid>
		<description><![CDATA[<p>　　从去年9月初开始买域名和空间搭WP博客，已经走过一周年了。</p>
<p>　　如果不讨论写博平台，只说写博时间，那应该是五周年。搬到WP平台后，突然觉得这才是我想要的博客，完全自己做主的博客。所以标题就那样写了[......]</p><p class='read-more'><a href='http://neoear.com/2010/09/the-first-anniversary-of-wordpress-blog/'>Read More »</a></p>]]></description>
			<content:encoded><![CDATA[<p>　　从去年9月初开始买域名和空间搭WP博客，已经走过一周年了。</p>
<p>　　如果不讨论写博平台，只说写博时间，那应该是五周年。搬到WP平台后，突然觉得这才是我想要的博客，完全自己做主的博客。所以标题就那样写了。</p>
<p><img alt="BLOG" src="http://neoear.com/wp-content/uploads/the-first-anniversary-of-wordpress-blog-20100916-01.jpg"  width="550" height="366" class="aligncenter"/></a></p>
<p>　　<strong>贵在坚持</strong></p>
<p>　　博客生涯五年，WP写博一年，这样的成绩，虽谈不上元老级博主，但也不算是新手级别。至少让我明白持之以恒是一件很不容易的事。开博容易，人人都可以开；坚持写博，放弃的也不在少数。</p>
<p>　　期间还差点放弃写博，在不写博的日子里总觉得缺少了什么的，心中不安，于是换个地方，重拾键盘，继续我的博客生涯。</p>
<p>　　<strong>博客乐趣</strong></p>
<p>　　博客，为谁而博？这个答案往往决定博客的生命力。我以前边写边想，决定为自己写博。有事写事，无事不写，轻松自在，不为任何读者负责任，毫无压力，做一名潇洒的博主。</p>
<p>　　虽然为自己写博，在盈利方面几乎为零。但这不影响我写博的热情，只是这份热情不如当年那么炽烈，变成细水长流，反而更容易坚持下去。</p>
<p>　　有句话说的好：写的不是博客，是寂寞。随着时光流逝，星转斗移，物是人非，身边写博的人变幻着，只剩自己坚持写博时，那种滋味不太好受。挺怀念那时新浪博客、博客大巴上的朋友们，虽然他们不再写博很久很久了。</p>
<p>　　我不敢确定自己以后是否还会坚持写博，毕竟，生活和工作比写博更重要，未来会发什么事谁都不知道。也许，哪一天我会没和大家打招呼就凭空消失。所以，能更新的，就会去更新，努力留下自己的成长轨迹。</p>
<p>　　<strong>博客平台</strong></p>
<p>　　在遇上WordPress博客程序前，我相当长时间没写博，处于放弃边缘中。一次偶然的机会，碰上WordPress，被它那强大、简单、自由的功能所吸引，重新唤起我博客生涯的第二春。感兴趣的朋友可以看另外一篇：<a href="http://neoear.com/2009/10/resume-writing-blog/">恢复写博</a>。</p>
<p>　　不得不说，这是一个相当需要折腾的博客程序，但那种前台后台自己彻底做主的感受，很让人陶醉。</p>
<p>　　1、主题</p>
<p>　　用过两款主题，均出自<a rel="nofollow" href="http://www.neoease.com/">mg12</a>之手：<a rel="nofollow" href="http://wordpress.org/extend/themes/inove">iNove</a>和<a rel="nofollow" href="http://wordpress.org/extend/themes/elegant-box">Elegant Box</a>。iNove极其优秀，上手容易，功能强大，用的人很多，推荐新手用此款。Elegant Box，本博正在用，简洁就是美。</p>
<p><a href="http://neoear.com/wp-content/uploads/the-first-anniversary-of-wordpress-blog-20100916-02.png" class="highslide-image" onclick="return hs.expand(this);" onclick="return hs.expand(this);" class="highslide-image"><img alt="博客主题" src="http://neoear.com/wp-content/uploads/the-first-anniversary-of-wordpress-blog-20100916-02.png"  width="550" height="459" class="aligncenter"/></a></p>
<p>　　2、插件</p>
<p>　　这个是WP平台的精华所在，就像FireFox浏览器的扩展一样。只要你想要什么样的功能，找个相关插件给它装上就OK。当然，高手完全可以提取插件的代码，放入主题中，然后摒弃插件，使博客读取快一些。</p>
<p>　　我自己用了12个插件，之前装了不少，后来按需减少，到现在的12个。</p>
<p>　　<strong>博客数据</strong></p>
<p>　　1、日志</p>
<p>　　搬到WP后，日志也写的不多，不过能细水长流还算不错的。以后仍然保持这种更新频率，约一月两三篇吧。截图中的日记和评论数量，均包括以前的，还是很少，呵呵。</p>
<p>　　2、评论</p>
<p>　　由于本人比较懒，不怎么相互串门，再加上一些垃圾评论被删除，所以评论不多。不过有人意外地来评论，那种感觉很棒。当然，再少的评论，我也会尽量去回复。</p>
<p><img alt="博客概况" src="http://neoear.com/wp-content/uploads/the-first-anniversary-of-wordpress-blog-20100916-03.png"  width="396" height="299" class="aligncenter"/></a></p>
<p>　　3、订阅</p>
<p>　　囧。。。说来惭愧，我不关注这个，也没采用第三方feed来统计，一直采用自带的feed，它能很好地满足我的要求，所以不知道有多少人来订阅本博啦。</p>
<p>　　<strong>最后感谢</strong></p>
<p>　　感谢<a rel="nofollow" href="http://wordpress.org/">WordPress</a>提供的博客程序，感谢<a rel="nofollow" href="http://www.neoease.com/">mg12</a>提供的博客主题，感谢各位插件制作者，感谢相关技术文档编写者，当然，还要感谢访问本博的朋友们！</p>
<h4  class="related_post_title">Related Posts</h4><ul class="related_post"><li><a href="http://neoear.com/2010/11/add-nofollow-to-read-more-link-on-wp-kit-cn/" title="为 WP Kit CN 中文工具箱的 Read more 加上 nofollow">为 WP Kit CN 中文工具箱的 Read more 加上 nofollow</a><br /><small>　　想给评论链接和 Read more 添加 nofollow ，按照 为 WordPress 的评论...</small></li><li><a href="http://neoear.com/2010/11/gray-style-for-elegant-box-411/" title="分享主题 Elegant Box 的灰色风格">分享主题 Elegant Box 的灰色风格</a><br /><small>简介
为 Elegant Box 做了个灰色风格（gray style），参考 mg12 的私有主题...</small></li><li><a href="http://neoear.com/2009/11/baidu-sitemap-generator/" title="百度站点地图插件：Baidu Sitemap Generator">百度站点地图插件：Baidu Sitemap Generator</a><br /><small>　　之前用了Google XML Sitemaps 插件，Google收录结果理想。看了下百度收录结果...</small></li><li><a href="http://neoear.com/2009/10/wordpress-indent/" title="WordPress的三种首行缩进方法">WordPress的三种首行缩进方法</a><br /><small>我们中国人写东西都有段首空两个汉字（俗称“低2格”）的习惯，不缩进也不影响阅读，看个人喜好。我来谈谈W...</small></li><li><a href="http://neoear.com/2009/10/resume-writing-blog/" title="恢复写博">恢复写博</a><br /><small>毕业后写博断断续续，内容匮乏，多数是影视评论，越写越水，再加上原先的博客托管商的一些动作，让人很不舒服...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://neoear.com/2010/09/the-first-anniversary-of-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>百度站点地图插件：Baidu Sitemap Generator</title>
		<link>http://neoear.com/2009/11/baidu-sitemap-generator/</link>
		<comments>http://neoear.com/2009/11/baidu-sitemap-generator/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 12:04:08 +0000</pubDate>
		<dc:creator>neoear</dc:creator>
				<category><![CDATA[technology-sharing]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://neoear.com/2009/11/baidu-sitemap-generator/</guid>
		<description><![CDATA[<p>　　之前用了<a rel="nofollow" href="http://wordpress.org/extend/plugins/google-sitemap-generator/">Google XML Sitemaps</a> 插件，Google收录结果理想。看了下百度收录结果，仍然为无。果然，百度的口味与众不同，这么符合国际标准的sitemap.xml 文件都不鸟。 </p>
<p>　[......]</p><p class='read-more'><a href='http://neoear.com/2009/11/baidu-sitemap-generator/'>Read More »</a></p>]]></description>
			<content:encoded><![CDATA[<p>　　之前用了<a rel="nofollow" href="http://wordpress.org/extend/plugins/google-sitemap-generator/">Google XML Sitemaps</a> 插件，Google收录结果理想。看了下百度收录结果，仍然为无。果然，百度的口味与众不同，这么符合国际标准的sitemap.xml 文件都不鸟。 </p>
<p>　　于是下Baidu Sitemap Generator插件（<a rel="nofollow" href="http://liucheng.name/883/">主页</a>|<a rel="nofollow" href="http://downloads.wordpress.org/plugin/baidu-sitemap-generator.zip">下载</a>|<a rel="nofollow" href="http://liucheng.name/884/">FAQ</a>）安装并观察。经过这几天的观察，发现它只用两天就让百度顺利收录，的确有效。</p>
<p>　　虽然百度口碑不怎么样，但在国内，它还是中文搜索引擎的老大，不讨好它不行呢。（如果你是反百度联盟的狂热分子，可以无视）</p>
<p>　　<strong>另：</strong>除了Baidu Sitemap Generator插件，还有一款插件，由国内知名博客我爱水煮鱼开发的百度 Sitemap 插件（<a rel="nofollow" href="http://fairyfish.net/2009/10/20/baidu-sitemap/">主页</a>|<a rel="nofollow" href="http://wpcn.googlecode.com/files/baidu-sitemap.zip">下载</a>）。</p>
<p>　　此款插件neoear没使用，但作者说和Baidu Sitemap Generator本质上没区别，实现方法大同小异。</p>
<p>　　非要说区别的话，<strong>Baidu Sitemap Generator有后台选项，操作方便直观；百度 Sitemap 插件没有后台选项，修改的话只有直接修改baidu_sitemap.php文件</strong>。</p>
<h4  class="related_post_title">Related Posts</h4><ul class="related_post"><li><a href="http://neoear.com/2010/11/add-nofollow-to-read-more-link-on-wp-kit-cn/" title="为 WP Kit CN 中文工具箱的 Read more 加上 nofollow">为 WP Kit CN 中文工具箱的 Read more 加上 nofollow</a><br /><small>　　想给评论链接和 Read more 添加 nofollow ，按照 为 WordPress 的评论...</small></li><li><a href="http://neoear.com/2010/11/gray-style-for-elegant-box-411/" title="分享主题 Elegant Box 的灰色风格">分享主题 Elegant Box 的灰色风格</a><br /><small>简介
为 Elegant Box 做了个灰色风格（gray style），参考 mg12 的私有主题...</small></li><li><a href="http://neoear.com/2010/09/the-first-anniversary-of-wordpress-blog/" title="WordPress博客一周年">WordPress博客一周年</a><br /><small>　　从去年9月初开始买域名和空间搭WP博客，已经走过一周年了。

　　如果不讨论写博平台，只说写博...</small></li><li><a href="http://neoear.com/2009/10/wordpress-indent/" title="WordPress的三种首行缩进方法">WordPress的三种首行缩进方法</a><br /><small>我们中国人写东西都有段首空两个汉字（俗称“低2格”）的习惯，不缩进也不影响阅读，看个人喜好。我来谈谈W...</small></li><li><a href="http://neoear.com/2009/10/resume-writing-blog/" title="恢复写博">恢复写博</a><br /><small>毕业后写博断断续续，内容匮乏，多数是影视评论，越写越水，再加上原先的博客托管商的一些动作，让人很不舒服...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://neoear.com/2009/11/baidu-sitemap-generator/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>WordPress的三种首行缩进方法</title>
		<link>http://neoear.com/2009/10/wordpress-indent/</link>
		<comments>http://neoear.com/2009/10/wordpress-indent/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 12:45:18 +0000</pubDate>
		<dc:creator>neoear</dc:creator>
				<category><![CDATA[technology-sharing]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://neoear.com/2009/10/wordpress-indent/</guid>
		<description><![CDATA[<p>我们中国人写东西都有段首空两个汉字（俗称“低2格”）的习惯，不缩进也不影响阅读，看个人喜好。我来谈谈<strong>WordPress的三种首行缩进方法，并分析它们的优劣</strong>，算是一个小小的总结。</p>
<p>以下三种方法均在<strong>Fir[......]</strong></p><p class='read-more'><a href='http://neoear.com/2009/10/wordpress-indent/'>Read More »</a></p>]]></description>
			<content:encoded><![CDATA[<p>我们中国人写东西都有段首空两个汉字（俗称“低2格”）的习惯，不缩进也不影响阅读，看个人喜好。我来谈谈<strong>WordPress的三种首行缩进方法，并分析它们的优劣</strong>，算是一个小小的总结。</p>
<p>以下三种方法均在<strong>FireFox3.5.3浏览器+WordPress2.8.5后台HTML编辑模式</strong>下测试。</p>
<h4>1、修改WordPress的quicktags.js 文件</h4>
<p>找到wp-includes/js/quicktags.js并打开（推荐用<strong>notepad++</strong>、<strong>Editplus</strong>等记事本打开），找到</p>
<blockquote><div style="font-family: &quot;Tahoma&quot;,&quot;Lucida Console&quot;,&quot;monospace&quot;; color: rgb(0, 0, 0);" class="source"> <span style="color: rgb(0, 0, 128); font-weight: bold;">edButtons</span><span style="color: rgb(0, 0, 0);">[</span><span style="color: rgb(0, 0, 128); font-weight: bold;">edButtons</span><span style="color: rgb(0, 0, 0);">.length</span><span style="color: rgb(0, 0, 0);">]=</span><span style="color: rgb(0, 0, 128); font-weight: bold;">new</span> <span style="color: rgb(0, 0, 128); font-weight: bold;">edButton</span>(<span style="color: rgb(0, 0, 255);">&quot;ed_more&quot;</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 255);">&quot;more&quot;</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 255);">&quot;&lt;!--more--&gt;&quot;</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 255);">&quot;&quot;</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 255);">&quot;t&quot;</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 128); font-weight: bold;">-1</span>);</div>
</blockquote>
<p>在后边添加：</p>
<blockquote><div style="font-family: &quot;Tahoma&quot;,&quot;Lucida Console&quot;,&quot;Courier New&quot;,&quot;monospace&quot;; color: rgb(0, 0, 0);" class="source"> <span style="color: rgb(0, 0, 0);">edButtons</span><span style="color: rgb(0, 0, 0);">[</span><span style="color: rgb(0, 0, 0);">edButtons</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">length</span><span style="color: rgb(0, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 128); font-weight: bold;">new</span> <span style="color: rgb(0, 0, 0);">edButton</span>(<span style="color: rgb(0, 0, 255);">&#39;ed_para2em&#39;</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 255);">&#39;para2em&#39;</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 255);">&#39;&lt;p style=&quot;text-indent: 2em&quot;&gt;&#39;</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 255);">&#39;&lt;/p&gt;&#39;</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 255);">&#39;pa&#39;</span>);</div>
</blockquote>
<p>在后台HTML编辑模式下，刷新后就可以看到para2em首行缩进的标签。<br />
<img class="alignnone size-full wp-image-628" src="http://neoear.com/wp-content/uploads/WordPress-Indent-20091030-01.png" alt="para2em首行缩进的标签" width="507" height="132" /></p>
<p>在需要缩进的某一段，先在段头按一下 "para2em" ，然后在段尾按一下"/para2em"。<br />
<img class="alignnone size-full wp-image-629" src="http://neoear.com/wp-content/uploads/WordPress-Indent-20091030-02.png" alt="para2em空格效果" width="454" height="106" /></p>
<p><strong>优点：</strong>可控性强，想哪段首行缩进就定义哪个<br />
<strong>缺点：</strong>①操作繁琐。如果段落很多的话，需要重复动作<br />
　　　②强制性空行。后台段落之间并没有空行，但前台会显示空行<br />
　　　③如果WordPress在线升级，新文件覆盖旧文件，会失效，需重新加载代码</p>
<h4>2、修改主题style.css 文件</h4>
<p>不同主题的style.css可能有不同，这次以inove主题为例。</p>
<p>在WordPress的后台，选择"外观"——"编辑"，打开样式表（style.css），找到如下的代码：</p>
<blockquote><div style="font-family: &quot;Tahoma&quot;,&quot;Lucida Console&quot;,&quot;Courier New&quot;,&quot;monospace&quot;; color: rgb(0, 0, 0);" class="source"> <span style="color: rgb(0, 0, 0);">.post</span> <span style="color: rgb(0, 0, 0);">.content</span> p <span style="color: rgb(0, 0, 0);">{</span><br /> <span style="color: rgb(0, 0, 128); font-weight: bold;">margin-bottom</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 255);">10px</span>;<br /> <span style="color: rgb(0, 0, 0);">}</span></div>
</blockquote>
<p>修改为</p>
<blockquote><div style="font-family: &quot;Tahoma&quot;,&quot;Lucida Console&quot;,&quot;Courier New&quot;,&quot;monospace&quot;; color: rgb(0, 0, 0);" class="source"> <span style="color: rgb(0, 0, 0);">.post</span> <span style="color: rgb(0, 0, 0);">.content</span> p <span style="color: rgb(0, 0, 0);">{</span><br /> <span style="color: rgb(0, 0, 128); font-weight: bold;">margin-bottom</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 255);">10px</span>;<br /> <span style="color: rgb(0, 0, 128); font-weight: bold;">text-indent</span><span style="color: rgb(0, 0, 0);">:</span> <span style="color: rgb(0, 0, 255);">2em</span>;<br /> <span style="color: rgb(0, 0, 0);">}</span></div>
</blockquote>
<p>给需要缩进的段落加上&lt;p&gt;标签，见下图<br />
<img class="alignnone size-full wp-image-630" src="http://neoear.com/wp-content/uploads/WordPress-Indent-20091030-03.png" alt="
<p>标签空格效果" width="560" height="110" /></p>
<p><strong>优点：</strong>可控性强，如果每个段落都加上&lt;P&gt;标签，显示效果不错<br />
<strong>缺点：</strong>①操作繁琐。段落很多的话，需要重复动作<br />
　　　②强制性空行。后台段落之间并没有空行，但前台会显示空行<br />
　　　③如果没给各个段落加上&lt;p&gt;标签，段落极其混乱，并在首段中自作聪明地缩进。</p>
<h4>3、全角空格实现缩进</h4>
<p>把输入法切换到全角模式，在需要缩进的段首按两下空格键<br />
<img class="alignnone size-full wp-image-631" src="http://neoear.com/wp-content/uploads/WordPress-Indent-20091030-04.png" alt="全角空格效果" width="222" height="108" /></p>
<p><strong>优点：</strong>①操作简单，不用修改任何文件就实现<br />
　　　②该缩进空行的地方就缩进空行，不该缩进空行的地方就不缩进空行，前后台显示效果完全一致，一目了然<br />
<strong>缺点：</strong>如果在HTML编辑模式下用全角空格，然后切换到可视化编辑模式，再回到HTML编辑模式，会失效。FireFox和Google Chrome下均如此。(此问题是在测试网友 lj 反映的问题中发现的)</p>
<p>说了这么多，本文没采用缩进，为什么？懒，如此而已。</p>
<p>-----------------<br />
<strong>参考资料：</strong><br />
[1]<a rel="nofollow" href="http://wangbaoming.com/wordpress-p-text-indent.html">WordPress中段落&lt; P &gt;标签首行缩进</a><br />
[2]<a rel="nofollow" href="http://blog.bluesky.cn/archives/369/wordpress-editor-to-add-the-first-line-indent-tag.html">给WordPress编辑器添加首行缩进标签</a><br />
[3]<a rel="nofollow" href="http://www.jacse.com/755.html">WordPress编辑实现段落首行空格缩进</a></p>
<h4  class="related_post_title">Related Posts</h4><ul class="related_post"><li><a href="http://neoear.com/2010/11/add-nofollow-to-read-more-link-on-wp-kit-cn/" title="为 WP Kit CN 中文工具箱的 Read more 加上 nofollow">为 WP Kit CN 中文工具箱的 Read more 加上 nofollow</a><br /><small>　　想给评论链接和 Read more 添加 nofollow ，按照 为 WordPress 的评论...</small></li><li><a href="http://neoear.com/2010/11/gray-style-for-elegant-box-411/" title="分享主题 Elegant Box 的灰色风格">分享主题 Elegant Box 的灰色风格</a><br /><small>简介
为 Elegant Box 做了个灰色风格（gray style），参考 mg12 的私有主题...</small></li><li><a href="http://neoear.com/2010/09/the-first-anniversary-of-wordpress-blog/" title="WordPress博客一周年">WordPress博客一周年</a><br /><small>　　从去年9月初开始买域名和空间搭WP博客，已经走过一周年了。

　　如果不讨论写博平台，只说写博...</small></li><li><a href="http://neoear.com/2009/11/baidu-sitemap-generator/" title="百度站点地图插件：Baidu Sitemap Generator">百度站点地图插件：Baidu Sitemap Generator</a><br /><small>　　之前用了Google XML Sitemaps 插件，Google收录结果理想。看了下百度收录结果...</small></li><li><a href="http://neoear.com/2009/10/resume-writing-blog/" title="恢复写博">恢复写博</a><br /><small>毕业后写博断断续续，内容匮乏，多数是影视评论，越写越水，再加上原先的博客托管商的一些动作，让人很不舒服...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://neoear.com/2009/10/wordpress-indent/feed/</wfw:commentRss>
		<slash:comments>52</slash:comments>
		</item>
		<item>
		<title>恢复写博</title>
		<link>http://neoear.com/2009/10/resume-writing-blog/</link>
		<comments>http://neoear.com/2009/10/resume-writing-blog/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 05:30:29 +0000</pubDate>
		<dc:creator>neoear</dc:creator>
				<category><![CDATA[technology-sharing]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://neoear.com/2009/10/resume-writing-blog/</guid>
		<description><![CDATA[<p style="text-indent:2em">毕业后写博断断续续，内容匮乏，多数是影视评论，越写越水，再加上原先的博客托管商的一些动作，让人很不舒服，但也无可奈何，曾有过停博并删除旧文的想法。但看着以前写下的篇篇文章，好像一个又一个可爱的孩子，陪[......]</p><p class='read-more'><a href='http://neoear.com/2009/10/resume-writing-blog/'>Read More »</a></p>]]></description>
			<content:encoded><![CDATA[<p style="text-indent:2em">毕业后写博断断续续，内容匮乏，多数是影视评论，越写越水，再加上原先的博客托管商的一些动作，让人很不舒服，但也无可奈何，曾有过停博并删除旧文的想法。但看着以前写下的篇篇文章，好像一个又一个可爱的孩子，陪伴我度过不少时光，不忍心下手。只好暂时不关心博客一段时间。后来，一次偶然的机会，认识到强大的wordpress平台。上网查阅不少关于它的资料，深深被它的强大和自由所吸引，重新燃起写博的激情。</p>
<p style="text-indent:2em">于是在本地搞个wordpress平台来测试，选主题，弄插件，反复折腾，折腾的差不多，该给它办户口（域名）和买房子（空间）。这方面知识之前没接触过，不得不折腾一阵子，总算定下域名和空间。其中域名比较难定，因为后缀为com的好域名不好定，往往想半天，查询一下，都被人注册，搞的心烦意乱，后来上一个网站（<a href="http://www.robobunny.com/cgi-bin/dislexicon">Dislexicon</a>——可为关键字自动添加前后缀，创造出一个新的单词，也许有时候会产生非常酷的域名），输入关键字，返回的结果还不错哟，一连记下好几个，反复筛选，最后定下现在的域名。</p>
<p style="text-indent:2em">买域名和空间后，由于前面在本地安装过虚拟博客，有经验，这次弄起来并不难，基本上按教程一步一步来就弄好。但发现装完主题和相关插件后，还有不少工作要做，什么.htaccess文件、robot.txt文件、防盗链技术、SEO技术、博客安全等等乱七八糟的内容，一时把我搞晕，没办法，只好耐下心去学习。本人头脑不太灵活，学习东西比较慢，只有死磕硬啃，一块一块地慢慢拖下来。</p>
<p style="text-indent:2em">好了，一切都弄的差不多，是时候把旧博内的旧文全搬过来吧。在搞wordpress过程中，搬旧文最耗时，为什么？因为我完全是一篇一篇地手工搬过来，原来的格式乱，错字多，再加上正好熟悉一下后台编辑器的功能，就一边搬一边修正，幸好文章不多，这四年中博文总共才100多篇（有点少），还删除不少个人认为废话连篇的文章。就这样，搬家断断续续，还好搬的比较顺利。回头再看看新博，很美观，很亲切，至少前台后台、空间域名自己做主，再也不用看博客托管商的脸色，当然，更重要的是无形中学到不少有关wordpress的知识。</p>
<p style="text-indent:2em">有人说过写博史就是搬家史，此话不假啊，wordpress平台是我的第三个平台，第一个是新浪博客（当初看中它能无限上传图片、视频，后来它莫名其妙丢失保存的图片，速度越来越慢，操作不人性化），第二个是博客大巴（看中它能自主修改主题，后来它自动隐藏几篇博文让我不满）。既然来到wordpress世界并安家，就把新浪博客和博客大巴的博文全隐藏吧，不打算删除，毕竟那儿有属于自己的文字（我心太软，难怪有人说我办不了大事）。</p>
<p style="text-indent:2em">折腾，这就是最大的感受！当然，这腾折的值！</p>
<h4  class="related_post_title">Related Posts</h4><ul class="related_post"><li><a href="http://neoear.com/2010/11/add-nofollow-to-read-more-link-on-wp-kit-cn/" title="为 WP Kit CN 中文工具箱的 Read more 加上 nofollow">为 WP Kit CN 中文工具箱的 Read more 加上 nofollow</a><br /><small>　　想给评论链接和 Read more 添加 nofollow ，按照 为 WordPress 的评论...</small></li><li><a href="http://neoear.com/2010/11/gray-style-for-elegant-box-411/" title="分享主题 Elegant Box 的灰色风格">分享主题 Elegant Box 的灰色风格</a><br /><small>简介
为 Elegant Box 做了个灰色风格（gray style），参考 mg12 的私有主题...</small></li><li><a href="http://neoear.com/2010/09/the-first-anniversary-of-wordpress-blog/" title="WordPress博客一周年">WordPress博客一周年</a><br /><small>　　从去年9月初开始买域名和空间搭WP博客，已经走过一周年了。

　　如果不讨论写博平台，只说写博...</small></li><li><a href="http://neoear.com/2009/11/baidu-sitemap-generator/" title="百度站点地图插件：Baidu Sitemap Generator">百度站点地图插件：Baidu Sitemap Generator</a><br /><small>　　之前用了Google XML Sitemaps 插件，Google收录结果理想。看了下百度收录结果...</small></li><li><a href="http://neoear.com/2009/10/wordpress-indent/" title="WordPress的三种首行缩进方法">WordPress的三种首行缩进方法</a><br /><small>我们中国人写东西都有段首空两个汉字（俗称“低2格”）的习惯，不缩进也不影响阅读，看个人喜好。我来谈谈W...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://neoear.com/2009/10/resume-writing-blog/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

