README.md in tramway-landing-1.8.3.3 vs README.md in tramway-landing-2.0
- old
+ new
@@ -72,13 +72,10 @@
# ...
```
*app/views/web/welcome/index.html.haml*
```haml
-= content_for :head_content do
- -# your content for <head>
-
= content_for :title do
-# your content for <title>
= content_for :application_tagline do
-# tagline in the header type block
@@ -100,9 +97,36 @@
= content_for :longtitude do
-# longtitude for contacts block type map
-# everything you want on the main page
+```
+
+## Head Content
+
+### Tramway::Landing 2.x
+
+It will push this content to `<head>` tag in every landing page. Including public page in `tramway-event`, `tramway-sport_school`, `tramway-conference`, `tramway-news`, `tramway-page` gems.
+
+*config/initializers/tramway.rb*
+
+```ruby
+::Tramway::Landing.head_content = lambda do
+ concat javascript_include_tag :application
+ concat stylesheet_link_tag :application
+ # don't forget to use `concat` method here
+end
+```
+
+### Tramway::Landing 1.x
+
+It will push this content to `<head>` tag only on main page. You aren't able to manage head tag in other gems and pages.
+
+*app/views/web/welcome/index.html.haml*
+
+```haml
+= content_for :head_content do
+ -# your content for <head>
```
Then all your showing blocks will be on the main page.
## Blocks