Skip to content

Latest commit

 

History

History
104 lines (78 loc) · 2.55 KB

3.1-initializr-variables.md

File metadata and controls

104 lines (78 loc) · 2.55 KB

Base initializr template

Example config

# app/config/config.yml
opwoco_bootstrap:
    initializr:
        meta:
            title:        "YYY"
            description:  "This is test site"
            keywords:     "keyword1,keyword 2"
            author_name:  "this is me"
            author_url:   "/human.txt"
            nofollow:     false
            noindex:      false
        dns_prefetch:
              - '//ajax.googleapis.com'
        google:
            wt: 'xxx'
            analytics: 'UA-xxxxxxx-xx'
	    extendedanalytics: false
        diagnostic_mode: true

Variables

  • meta_description

    default value: empty string parent block: head

  • meta_keywords

    default value: empty string parent block: head

  • meta_author_name

    default value: empty string parent block: head

  • meta_author_url

    default value: empty string parent block: head examples:

  • meta_nofollow

    default value: false parent block: head comment: set true to disable robots from following links

  • meta_noindex

    default value: false parent block: head comment: set true to disable robots from indexing page

  • google_wt

    default value: empty string parent block: head comment: set Google Webmaster Tools veryfication code

  • google_analytics

    default value: empty string parent block: foot_scripts comment: set Google Analytics UA page code

  • diagnostic_mode

    default value: false parent block: head comment: set this to true to check your CSS for implementation errors read more about used diagnostic file on: http://meyerweb.com/eric/tools/css/diagnostics/

Blocks

  • html_tag
  • head
    • dns_prefetch
    • head_style
    • head_scripts
  • body_tag
  • body_start
  • body
    • navbar
    • content
    • footer
    • foot_scripts

<< Bootstrap Extras (Initializr) | Support for other bundles >>