Created
April 22, 2012 22:49
-
-
Save mattintosh4/2467379 to your computer and use it in GitHub Desktop.
So-net ブログ用 各種テンプレート
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title> | |
<%- if:extra_title %> | |
<%- extra_title | dismiss_pictograms | html %> | |
<%- if:page_name eq 'category' %>カテゴリの記事 | |
<%- /if # page_name eq 'category' %> | |
<%- if:page_name eq 'tag' %>に関する記事 | |
<%- /if # tag %>| | |
<%- /if # extra_title %> | |
<%- if:page_name eq 'archive' %>アーカイブ| | |
<%- /if # page_name eq 'archive' %> | |
<%- blog.title | dismiss_pictograms | html %></title> | |
<meta name="description" content=" | |
<%- if:extra_title %> | |
<%- extra_title | dismiss_pictograms | html %> | |
<%- if:page_name eq 'article' %>。 | |
<%- article.body | text_summary(512) | tag_strip | oneline | html %> | |
<%- else %>| | |
<%- blog.description | nl2br | tag_strip %> | |
<%- /if # page_name eq 'article' %> | |
<%- else %> | |
<%- blog.description | nl2br | tag_strip %> | |
<%- /if # extra_title %>" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
var img = $('.articleBody a[href^="https://picasaweb.google.com"]:has("img[src*="googleusercontent.com"]")'); | |
for(i=0,l=img.length;i<l;i++){ | |
var a = $(img).eq(i).children('img').attr('src').split('/'); | |
var regExp = /^[cdhpsw](\d+)?(-[cp])?(-r\d+)?$/; | |
if(regExp.test(a[7])==1){ | |
a.splice(7,1,"s960"); | |
var u = a.join("/"); | |
$(img).eq(i).attr({ | |
title :$(img).eq(i).attr('href'), | |
href :u, | |
rel :'group', | |
class :'fancybox' | |
}) | |
} | |
} | |
}); | |
$(function(){ | |
$('.fancybox').fancybox({ | |
openEffect :'fade', | |
closeEffect :'fade', | |
nextEffect :'fade', | |
prevEffect :'fade', | |
helpers:{ | |
title:{ | |
type:'inside' | |
}, | |
overlay:{ | |
speedIn : 500, | |
opacity : 0.8 | |
} | |
}, | |
beforeLoad:function(){ | |
this.title='☛ <a href="'+$(this.element).attr('title')+'" target="_new">show details</a>'; | |
} | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html | |
itemscope itemtype="http://schema.org/ | |
<%- if:page_name eq 'article' %>Article | |
<%- else %>Blog | |
<%- /if # page_name eq 'article' %>"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta itemprop="name" content=" | |
<%- if:page_name eq 'article' %> | |
<%- if:extra_title %> | |
<%- extra_title | dismiss_pictograms | html %> | |
<%- /if # extra_title %> | |
<%- else %> | |
<%- blog.title | dismiss_pictograms | html %> | |
<%- /if # page_name eq 'article' %>" /> | |
<meta itemprop="description" content=" | |
<%- if:page_name eq 'article' %> | |
<%- article.body | text_summary(512) | tag_strip | oneline | html %> | |
<%- else %> | |
<%- blog.description | nl2br | tag_strip %> | |
<%- /if # page_name eq 'article' %>" /> | |
<meta itemprop="image" content="<%- blog.page_url_profile_image('m') %>?<% blog.timestamp | break_sp %>" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta property="fb:admins" content="<% blog.facebook_user_id | html %>" /> | |
<meta property="og:description" content=" | |
<%- if:page_name eq 'article' %> | |
<%- article.body | text_summary(240) | tag_strip | oneline | html %> | |
<%- else %> | |
<%- blog.description | nl2br | tag_strip %> | |
<%- /if # page_name eq 'article' %>" /> | |
<meta property="og:image" content="<% blog.page_url_profile_image('m') %>?<% blog.timestamp | break_sp %>" /> | |
<meta property="og:site_name" content="<% blog.title | dismiss_pictograms | html %>" /> | |
<meta property="og:title" content=" | |
<%- if:page_name eq 'article' %> | |
<%- if:extra_title %> | |
<%- extra_title | dismiss_pictograms | html %> | |
<%- /if # extra_title %> | |
<%- else %> | |
<%- blog.title | dismiss_pictograms | html %> | |
<%- /if # page_name eq 'article' %>" /> | |
<meta property="og:type" content=" | |
<%- if:page_name eq 'article' %>article | |
<%- else %>blog | |
<%- /if # page_name eq 'article' %>" /> | |
<meta property="og:url" content=" | |
<%- if:page_name eq 'article' %> | |
<%- article.page_url | html %> | |
<%- else %> | |
<%- blog.page_url %> | |
<%- /if # page_name eq 'article' %>" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta property="fb:admins" content="000000000000000" /> | |
<meta property="og:description" content="記事の概要" /> | |
<meta property="og:image" content="画像URL" /> | |
<meta property="og:site_name" content="ブログ名" /> | |
<meta property="og:title" content="記事タイトル" /> | |
<meta property="og:type" content="article" /> | |
<meta property="og:url" content="記事URL" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta property="fb:admins" content="000000000000000" /> | |
<meta property="og:description" content="ブログの説明" /> | |
<meta property="og:image" content="画像URL" /> | |
<meta property="og:site_name" content="ブログ名" /> | |
<meta property="og:title" content="ブログ名" /> | |
<meta property="og:type" content="blog" /> | |
<meta property="og:url" content="ブログURL" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment