/
index.html
179 lines (130 loc) · 9.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>hexoプラグインのご紹介 | Simple blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="hexo を使いはじめて、いくつか欲しい機能があったので @kazu69さんにお問い合わせしたところ、さくっと作っていただいたのでご紹介!">
<meta property="og:type" content="article">
<meta property="og:title" content="hexoプラグインのご紹介">
<meta property="og:url" content="http://atani.github.io/2015/06/hexoプラグインのご紹介/index.html">
<meta property="og:site_name" content="Simple blog">
<meta property="og:description" content="hexo を使いはじめて、いくつか欲しい機能があったので @kazu69さんにお問い合わせしたところ、さくっと作っていただいたのでご紹介!">
<meta property="og:updated_time" content="2015-06-30T04:56:32.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="hexoプラグインのご紹介">
<meta name="twitter:description" content="hexo を使いはじめて、いくつか欲しい機能があったので @kazu69さんにお問い合わせしたところ、さくっと作っていただいたのでご紹介!">
<meta name="twitter:creator" content="@atani">
<link rel="alternative" href="/atom.xml" title="Simple blog" type="application/atom+xml">
<link rel="icon" href="/favicon.png">
<link href="//fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/style.css" type="text/css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-49087490-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="container">
<div id="wrap">
<header id="header">
<div id="header-outer" class="outer">
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo">Simple blog</a>
</h1>
</div>
<div id="header-inner" class="inner">
<nav id="sub-nav">
<a id="nav-home-icon" class="nav-icon" href="/"></a>
<a id="nav-archives-icon" class="nav-icon" href="/archives"></a>
<a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
</nav>
</div>
</div>
</header>
<div class="outer">
<section id="main"><article id="post-hexoプラグインのご紹介" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<header class="article-header">
<h1 class="article-title" itemprop="name">
hexoプラグインのご紹介
</h1>
</header>
<time class="article-date" datetime="2015-06-30T04:50:27.000Z" itemprop="datePublished">06-30-2015</time>
</div>
<div class="article-inner">
<div class="article-entry" itemprop="articleBody">
<p>hexo を使いはじめて、いくつか欲しい機能があったので <a href="http://blog.kazu69.net/" target="_blank" rel="external">@kazu69</a>さんにお問い合わせしたところ、さくっと作っていただいたのでご紹介!</p>
<a id="more"></a>
<h2 id="hexo-filter-permalink-normalization"><a href="https://www.npmjs.com/package/hexo-filter-permalink-normalization" target="_blank" rel="external">hexo-filter-permalink-normalization</a></h2><p><a href="https://atani.github.io/2015/06/hexo%E3%81%A7%E6%97%A5%E6%9C%AC%E8%AA%9E%E3%81%AE%E3%83%91%E3%83%BC%E3%83%9E%E3%83%AA%E3%83%B3%E3%82%AF%E3%82%92%E8%A6%8B%E3%82%8C%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%81%97%E3%82%88%E3%81%86%EF%BC%81/">NFD問題(勝手に呼んでる)</a> について、hexo本体のスクリプトを修正していたが、hexoがアップデートされるたびに修正し直さないといけないという問題があった。<br>そこで、NFDをNFCに変換してくれるプラグイン。</p>
<p>設定はとても簡単。本プラグインをインストールして、 <code>_config.yml</code> に以下記述するだけ。</p>
<figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">permalink_normalization:</span><br><span class="line"> <span class="built_in">type</span>: nfc</span><br></pre></td></tr></table></figure>
<hr>
<h2 id="hexo-tag-hatenabookmark"><a href="https://www.npmjs.com/package/hexo-tag-hatenabookmark" target="_blank" rel="external">hexo-tag-hatenabookmark</a></h2><p>facebookや、twitterなどの海外でも広く利用されているソーシャルボタンを記事に貼り付けるプラグインは、たくさんあったが、和製の「はてなブックマーク」のボタンを貼り付けるプラグインがなかったので、作ってもらった。</p>
<p>こちらも設定は簡単。本プラグインをインストールして、以下2通りのどちらかで貼り付けることが出来る。</p>
<ol>
<li><p>テーマファイルの適所に以下のコードを貼り付ける</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><%- hatenabookmark(page.permalink, page.title, 'standard-balloon') %></span><br></pre></td></tr></table></figure>
</li>
<li><p>記事の中に以下のコードを貼り付ける。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">{% hatenabookmark permalink-your-post title-your-post standard-balloon %}</span><br></pre></td></tr></table></figure>
</li>
</ol>
<p>いくつかオプションも用意されている。詳細はプラグインのページで!</p>
<p>@kazu69さん、ありがとうございます!</p>
</div>
<footer class="article-footer">
<a data-url="http://atani.github.io/2015/06/hexoプラグインのご紹介/" data-id="cibiv0c09000fjcvusgmiucmk" class="article-share-link">Share</a>
<a href="http://atani.github.io/2015/06/hexoプラグインのご紹介/#disqus_thread" class="article-comment-link">Comments</a>
<a href="http://b.hatena.ne.jp/entry/atani.github.io/2015/06/hexoプラグインのご紹介/" class="hatena-bookmark-button" data-hatena-bookmark-title="hexoプラグインのご紹介" data-hatena-bookmark-layout="standard-balloon" data-hatena-bookmark-lang="ja" title="このエントリーをはてなブックマークに追加"><img src="https://b.st-hatena.com/images/entry-button/button-only@2x.png" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;"></a><script src="https://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/hexo/">hexo</a></li></ul>
</footer>
</div>
<nav id="article-nav">
<a href="/2015/06/firewalld-備忘録/" id="article-nav-older" class="article-nav-link-wrap">
<strong class="article-nav-caption">Older</strong>
<div class="article-nav-title">firewalld 備忘録</div>
</a>
</nav>
</article>
<section id="comments">
<div id="disqus_thread">
<noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</div>
</section>
</section>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2015 atani<br>
<a href="https://github.com/steven5538/hexo-theme-athena" target="_blank">Athena</a> by <a href="http://steven5538.tw" target="_blank">Steven5538</a> | Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
</div>
</div>
</footer>
</div>
<script>
var disqus_shortname = 'atani';
var disqus_url = 'http://atani.github.io/2015/06/hexoプラグインのご紹介/';
(function(){
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = '//go.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css" type="text/css">
<script src="/fancybox/jquery.fancybox.pack.js" type="text/javascript"></script>
<script src="/js/script.js" type="text/javascript"></script>
</div>
</body>
</html>