Configuration

You can configure your site to edit config.php file. You must set site information(other configurations are optional).

Site information

site_title

Set site title.

site_subtitle

Set site subtitle or null. Mainly for Atom Syndication format.

site_url

Set site url.

site_author

Set name of site author.

site_description

Set site description.

site_author_twitter

Set Twitter account of site author(without @).

If you want to use tweet control, place this include statement in your template where you want to render:


If you want to use tweet timeline, place this include statement in your template where you want to render:


Environment

lang

Set language string or null(to use system default).
See List of ISO 639-1 codes to confirm specifiable strings.

timezone

Set timezone string or null(to use system default).
See List of Supported Timezones to confirm specifiable strings.

Rendering setting

site_image_path

Set default site representation image path(to use Open Graph protocol).

contents_per_page

Set contents count per page(default: 5).

theme

Set view theme directory name.

default_template

Set default template file name to translate.

default_support_contents

Set default support contents target.

  • recent-publish
  • recent-update
  • descendants
  • all
  • unused

excerpt_letter_limit_length

Set excerpt letter limit length.

format_datetime

Set date and time format(see Supported Date and Time Formats).

max_related_contents_count

Set max related contents count(default: 5).

common_contents_structured_data_types

Set structured data type array to render every contents(only 'BlogPosting' can be set).

If you want to set other type, please create a corresponding template file named StructredData-{type}.json in the theme directory.

Site metadata

site_rfc4151_id

Set 'tag' URI Scheme(RFC 4151) style id. This value is used in Atom syndication format.

sitemap_changefreq

Set sitemap change frequency. See <changefreq> of Sitemaps XML format.

  • always
  • hourly
  • daily
  • weekly
  • monthly
  • yearly
  • never

Service information

google_analytics_tracking_id

Set your Google Analytics tracking id if you want to use Google Analytics.

google_custom_search_engine_id

Set your Google custom search engine id if you want to use Google custom search engine.

You also have to place this include statement in your template where you want both of the search box and the search results to render:


google_adsense_publisher_id

Set your Google AdSense publisher id if you want to show Google AdSense automatic ads.

Twig setting

twig_enable_cache

Set true to enable twig template translation result cache(need write permission to the cache directory).

twig_enable_debug

Set true to debug twig.

Publish: / Update:
<< | >>

Related contents