File: config.yaml

package info (click to toggle)
td2planet 0.1.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 204 kB
  • ctags: 247
  • sloc: ruby: 1,620; makefile: 2
file content (56 lines) | stat: -rw-r--r-- 1,467 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
## general config
title: TD2Planet Sample
base_uri: http://planet.example.jp/

## feed URIs
uri:
  - http://sho.tdiary.net/index.rdf
  - http://www.tdiary.net/index.rdf
  - http://www.tdiary.org/index.rdf

## feeds cache into cache_dir
cache_dir: cache

## generated files into output_dir
output_dir: output
output_html: planet.html

## themes
#tdiary_theme_path: http://localhost/tdiary/theme
tdiary_theme_path: /var/www/tdiary/theme
tdiary_theme: light-blue

## parts of templates
#author: Your name
#made: mailto:webmaster@example.jp
#favicon: /favicon.ico
#logo_html: <img src="http://planet.example.jp/images/logo.png" width="168" height="150" alt="">
date_strftime_format: '%Y-%m-%d'
sanchor_strftime_format: '%H:%M:%S'

## templates search path
#templates_path:
#  - /path/to/override/templates
#  - /path/to/other/override/templates

## formatter
formatter: default_formatter
#formatter: sample_formatter
#formatter: your_formatter

## spam filter (default_formatter feature)
## (filtered if last value is true, output if false)
filter: |
    if (/ツッコミ/ =~ k(item.title) &&
        (
          (k(item.content_encoded).scan(/http:/).size >= 5) ||
          (k(item.description).scan(/http:/).size >= 5) ||
          (/\[\/url\]/ =~ k(item.content_encoded)) ||
          (/\[\/url\]/ =~ k(item.description)) ||
          (/★/ =~ k(item.dc_creator)) ||
          /@google\.com/ =~ k(item.dc_creator)
        ))
      true
    else
      false
    end