# # tDiary configuration file $Revision: 1.18 $ # #------- # The items which you can't configure with browser #------- # Language setting # If you use tDiary in English mode, you have to set @lang to 'en'. # Or 'zh' for Traditional-Chinese. @lang = 'en' # @lang = 'zh' # The directory where the diary's data are stored.(must) # tDiary stores your diary's data in this directory. You usually # assign this item to the directory which can't be accessed through WWW. # This directory's permission is set so that WWW server can # write files in it. @data_path = 'data' # The format of the diary(optional) # If you change the format of the diary from the default, # you must add some items to your configuration file. # In default, tDiary uses tDiary2 format. # What you must configure depends on the format of diary. # Please see the document of the program which enable tDiary to # use other format. # If "#" of the two lines below are removed, tDiary uses tDiary1 format. #require 'tdiary/pstoreio' #@io_class = TDiary::PStoreIO # Script names for reading or updating your diary(optional) # You can set @index and @update to the script filenames for # reading or updating your diary. Normally, these variables have # the default value("./" and "update.rb"). But, if you specify these # variables, you can use tDiary in case that you can't use "DirectoryIndex" # or you want to use frame. #@index = './' #@update = 'update.rb' # Multi-user mode(optional) # You use @multi_user when your diary is written by plural persons. # If you set this variable to "true", the multi-user mode is enabled and # tDiary change its behavior. In the beginning of the sub-title, writer's name # is inserted. The style is like "[user name] sub-title". # The editing in multi-uses mode is dangerous. If plural persons # write diary at the same time, the change which is saved precedently # is ignored. You must be careful when you use multi-user mode. # The words, "user name", is the name which is used when you login with browser. # Don't forget to add necessary user names to "Require User" of .htaccess. @multi_user = false # path of plugins. (optional) # In default, plugins are find from "plugin" directory under install # path. But, when @plugin_path is set, tDiary will load plugins # from it. #@plugin_path = 'path of plugins' # path of cache files. (optional) # tDiary makes some cache files under @data_path/cache. You may specify # any directory for cache files by this variable. #@cache_path = 'path of cache files' # options for plugins. (optional) # Some plugins can receive options from tdiary.conf. # ex: a option "foo" of plugin "sample". # @options[sample.foo] = 'foobar' # apply plugins after 1st applyeds plugin (true/false) @options['apply_plugin'] = true # User-Agent list that is considered as bot. @options['bot'] = [ '^(Naverbot|Cowbot)-', '^BlogLines/', '^blogmap', '^FAST-WebCrawler/', '^Hatena Antenna/', 'MI[CK]AN/', '^msnbot/', '^NG/', '^Openbot/', '^samidare', '^TAMATEBAKO/', '^TomSoftAntenna' ] # Control Links saving [true or false] (optional) # Specify which saving only day mode (default). It means reducing 'referer # noise' by access from 'Link page'. If this value to false, Today's Link # begin to save links to top page of your diary. @referer_day_only = true #------- # Items which you can configure with browser # # If necessary, you change these items. # Once you do setting with browser, # these items' value is not reflected even if you edit "tdiary.conf" directly. #------- # your name and mail address # you set @author_name to your name and @author_mail to your mail # address. These values are embedded in the HTML header of your diary. @author_name = 'Your name' @author_mail = 'foo@example.net' # your top-page # if your website has contents other than diary, you # set @index_page to URL of your other website page, for example, # the front page of your diary or the top-page of your website. # This is embedded in the HTML header and at the beginning of # your diary page. @index_page = 'http://www.example.net/~foo/' # The title # This is the title of your diary. # This must not have the HTML tag. @html_title = 'foobar diary' # Diary header # You specify sentences which are embedded at the beginning # of your diary. Please change sentences enclosed by "HEADER". # Because this value is embedded as it is, you can use HTML tag. You # can also use eRuby tag. You feel inconvenient if "%calendar" and "%navi" # are not in the diary header. # # <%=calendar%> # This is replaced with a calendar. This calendar has the links to # other monthly page. # <%=navi%> # This is replaced with menus through which you can update your diary, # do setting and so on. # @header = <

Foo's diary

<%=calendar%> HEADER # Diary footer # Like the diary header, you can set @footer to sentences which # are inserted into the end of your diary page. # Please change sentences enclosed by "FOOTER". @footer = <