]
end
end
@@ -168,7 +168,7 @@
# define DOCTYPE
#
def doctype
- %Q[]
+ %Q[]
end
#
@@ -177,8 +177,8 @@
add_header_proc do
calc_links
<<-HEADER
-
-
+
+
#{last_modified_header}
#{content_script_type}
#{author_name_tag}
@@ -252,6 +252,15 @@
end
end
+def content_type
+ if /application\/xhtml\+xml/ =~ ENV['HTTP_ACCEPT']
+ 'application/xhtml+xml'
+ else
+ 'text/html'
+ end
+ 'text/html'
+end
+
def charset
if @conf.mobile_agent? then
@conf.mobile_encoding
@@ -262,19 +271,19 @@
def last_modified_header
if @last_modified then
- %Q||
+ %Q||
else
''
end
end
def content_script_type
- %Q[]
+ %Q[]
end
def author_name_tag
if @author_name and not(@author_name.empty?) then
- %Q[]
+ %Q[]
else
''
end
@@ -282,7 +291,7 @@
def author_mail_tag
if @author_mail and not(@author_mail.empty?) then
- %Q[]
+ %Q[]
else
''
end
@@ -291,25 +300,25 @@
def index_page_tag
result = ''
if @index_page and @index_page.size > 0 then
- result << %Q[\n\t]
+ result << %Q[\n\t]
end
if @prev_day then
case @mode
when 'day'
- result << %Q[\n\t]
+ result << %Q[\n\t]
when 'nyear'
- result << %Q[\n\t]
+ result << %Q[\n\t]
end
end
if @next_day then
case @mode
when 'day'
- result << %Q[\n\t]
+ result << %Q[\n\t]
when 'nyear'
- result << %Q[\n\t]
+ result << %Q[\n\t]
end
end
- result << %Q[\n\t]
+ result << %Q[\n\t]
result.chop.chop
end
@@ -321,15 +330,15 @@
if @mode == 'day' then
uri += anchor( @date.strftime( '%Y%m%d' ) )
end
- %Q[]
+ %Q[]
end
def icon_tag
if @conf.icon and not(@conf.icon.empty?) then
if /\.ico$/ =~ @conf.icon then
- %Q[]
+ %Q[]
else
- %Q[]
+ %Q[]
end
else
''
@@ -338,7 +347,7 @@
def description_tag
if @conf.description and not(@conf.description.empty?) then
- %Q[]
+ %Q[]
else
''
end
@@ -356,15 +365,15 @@
end
title = File::basename( css, '.css' )
<<-CSS
-
-
-
+
+
+
CSS
end
def robot_control
if /^form|edit|preview|showcomment$/ =~ @mode then
- ''
+ ''
else
''
end
@@ -456,7 +465,7 @@
else
if date then
r << "#{@conf.section_anchor} ]
end
@@ -523,24 +532,24 @@
FORM
if @diaries[@date.strftime('%Y%m%d')].count_comments( true ) >= @conf.comment_limit_per_day then
r << <<-FORM
-