Skip to content

Commit

Permalink
remove mobile link discovery tag because it is obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
tdtds committed May 8, 2014
1 parent 43b9512 commit 9b989a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
2014-05-08 TADA Tadashi <t@tdtds.jp>
* fix error on image when edit mode #412
* remove mobile link discovery tag because it is obsolete.

2014-02-21 TADA Tadashi <t@tdtds.jp>
* add theme_online plugin #291
Expand Down
12 changes: 0 additions & 12 deletions plugin/00default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ def doctype
#{author_name_tag}
#{author_mail_tag}
#{index_page_tag}
#{mobile_link_discovery}
#{icon_tag}
#{default_ogp}
#{description_tag}
Expand Down Expand Up @@ -322,17 +321,6 @@ def index_page_tag
result.chop.chop
end

def mobile_link_discovery
return '' unless /^(latest|day)$/ =~ @mode
uri = @conf.index.dup
uri[0, 0] = base_url if %r|^https?://|i !~ @conf.index
uri.gsub!( %r|/\./|, '/' )
if @mode == 'day' then
uri += anchor( @date.strftime( '%Y%m%d' ) )
end
%Q[<link rel="alternate" media="handheld" type="text/html" href="#{h uri}">]
end

def icon_tag
if @conf.icon and not(@conf.icon.empty?) then
if /\.ico$/ =~ @conf.icon then
Expand Down

0 comments on commit 9b989a2

Please sign in to comment.