root/platform/tdiary/plugin/title_anchor/title_anchor.rb @ 3219

Revision 3219, 292 bytes (checked in by hsbt, 7 years ago)

platform/tdiary/plugin/*: import from my repos.

Line 
1#
2# title_anchor.rb:
3#
4# Copyright (C) 2007 by SHIBATA Hiroshi <h-sbt@nifty.com>
5# Distributed under GPL2.
6#
7
8def title_anchor
9        r = ''
10        if /^latest$/ =~ @mode
11                r << %Q|<h1>#{h @conf.html_title}</h1>|
12        else
13                r << %Q|<h1><a href="#{h @conf.index}">#{h @conf.html_title}</a></h1>|
14        end
15        r
16end
Note: See TracBrowser for help on using the browser.