locomotivecms_wagon 3.0.0 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/bin/wagon +64 -3
  4. data/bin/wagon_dev +11 -0
  5. data/generators/.DS_Store +0 -0
  6. data/generators/blank/Gemfile.tt +6 -2
  7. data/generators/blank/app/assets/stylesheets/app.scss +2 -0
  8. data/generators/blank/app/assets/stylesheets/sections/.empty_directory +1 -0
  9. data/generators/blank/app/views/pages/404.liquid +1 -1
  10. data/generators/blank/app/views/pages/index.liquid +1 -1
  11. data/generators/section/%type%.scss.tt +3 -0
  12. data/generators/section/template.liquid.tt +139 -80
  13. data/generators/webpack/app/assets/javascripts/.DS_Store +0 -0
  14. data/lib/locomotive/wagon.rb +15 -1
  15. data/lib/locomotive/wagon/cli.rb +11 -11
  16. data/lib/locomotive/wagon/commands/generate_command.rb +2 -7
  17. data/lib/locomotive/wagon/commands/push_command.rb +4 -8
  18. data/lib/locomotive/wagon/commands/serve_command.rb +5 -5
  19. data/lib/locomotive/wagon/generators/section.rb +121 -17
  20. data/lib/locomotive/wagon/generators/site/base.rb +0 -23
  21. data/lib/locomotive/wagon/version.rb +1 -1
  22. data/locomotivecms_wagon.gemspec +7 -4
  23. metadata +14 -233
  24. data/.gitignore +0 -36
  25. data/.rspec +0 -1
  26. data/.travis.yml +0 -11
  27. data/Gemfile +0 -30
  28. data/Rakefile +0 -32
  29. data/spec/fixtures/blog/app/content_types/comments.yml +0 -20
  30. data/spec/fixtures/blog/app/content_types/posts.yml +0 -19
  31. data/spec/fixtures/blog/app/views/pages/404.liquid +0 -11
  32. data/spec/fixtures/blog/app/views/pages/about-us.liquid.haml +0 -29
  33. data/spec/fixtures/blog/app/views/pages/index.liquid +0 -25
  34. data/spec/fixtures/blog/app/views/pages/posts.fr.liquid +0 -13
  35. data/spec/fixtures/blog/app/views/pages/posts.liquid +0 -13
  36. data/spec/fixtures/blog/app/views/pages/posts/content_type_template.fr.liquid +0 -14
  37. data/spec/fixtures/blog/app/views/pages/posts/content_type_template.liquid +0 -15
  38. data/spec/fixtures/blog/config/deploy.yml +0 -4
  39. data/spec/fixtures/blog/config/site.yml +0 -16
  40. data/spec/fixtures/blog/data/comments.yml +0 -16
  41. data/spec/fixtures/blog/data/posts.yml +0 -7
  42. data/spec/fixtures/cassettes/authenticate.yml +0 -236
  43. data/spec/fixtures/cassettes/delete.yml +0 -1255
  44. data/spec/fixtures/cassettes/push.yml +0 -9946
  45. data/spec/fixtures/cassettes/sync.yml +0 -11462
  46. data/spec/fixtures/default/README +0 -0
  47. data/spec/fixtures/default/app/content_types/bands.yml +0 -21
  48. data/spec/fixtures/default/app/content_types/events.yml +0 -25
  49. data/spec/fixtures/default/app/content_types/messages.yml +0 -17
  50. data/spec/fixtures/default/app/content_types/songs.yml +0 -25
  51. data/spec/fixtures/default/app/content_types/updates.yml +0 -33
  52. data/spec/fixtures/default/app/views/pages/404.liquid.haml +0 -10
  53. data/spec/fixtures/default/app/views/pages/about_us.fr.liquid.haml +0 -7
  54. data/spec/fixtures/default/app/views/pages/about_us.liquid.haml +0 -21
  55. data/spec/fixtures/default/app/views/pages/about_us.nb.liquid.haml +0 -4
  56. data/spec/fixtures/default/app/views/pages/about_us/jane_doe.liquid.haml +0 -4
  57. data/spec/fixtures/default/app/views/pages/about_us/john_doe.fr.liquid.haml +0 -5
  58. data/spec/fixtures/default/app/views/pages/about_us/john_doe.liquid.haml +0 -6
  59. data/spec/fixtures/default/app/views/pages/all.liquid.haml +0 -16
  60. data/spec/fixtures/default/app/views/pages/archives/news.liquid.haml +0 -10
  61. data/spec/fixtures/default/app/views/pages/contact.liquid.haml +0 -54
  62. data/spec/fixtures/default/app/views/pages/contest.liquid.haml +0 -18
  63. data/spec/fixtures/default/app/views/pages/events.liquid.haml +0 -64
  64. data/spec/fixtures/default/app/views/pages/filtered.liquid.haml +0 -20
  65. data/spec/fixtures/default/app/views/pages/grunge_bands.liquid.haml +0 -8
  66. data/spec/fixtures/default/app/views/pages/index.fr.liquid.haml +0 -3
  67. data/spec/fixtures/default/app/views/pages/index.liquid.haml +0 -101
  68. data/spec/fixtures/default/app/views/pages/layouts/simple.liquid.haml +0 -13
  69. data/spec/fixtures/default/app/views/pages/music.fr.liquid.haml +0 -4
  70. data/spec/fixtures/default/app/views/pages/music.liquid.haml +0 -42
  71. data/spec/fixtures/default/app/views/pages/songs/template.fr.liquid.haml +0 -16
  72. data/spec/fixtures/default/app/views/pages/songs/template.liquid.haml +0 -18
  73. data/spec/fixtures/default/app/views/pages/songs/template/band.liquid.haml +0 -16
  74. data/spec/fixtures/default/app/views/pages/store.fr.liquid.haml +0 -5
  75. data/spec/fixtures/default/app/views/pages/store.liquid +0 -5
  76. data/spec/fixtures/default/app/views/pages/tags/nav.liquid.haml +0 -6
  77. data/spec/fixtures/default/app/views/pages/tags/nav_in_deep.liquid.haml +0 -6
  78. data/spec/fixtures/default/app/views/pages/unlisted_pages.liquid.haml +0 -9
  79. data/spec/fixtures/default/app/views/snippets/A_Complicated-one.liquid.haml +0 -1
  80. data/spec/fixtures/default/app/views/snippets/footer.liquid.haml +0 -6
  81. data/spec/fixtures/default/app/views/snippets/header.liquid.haml +0 -1
  82. data/spec/fixtures/default/app/views/snippets/song.fr.liquid.haml +0 -8
  83. data/spec/fixtures/default/app/views/snippets/song.liquid +0 -12
  84. data/spec/fixtures/default/config/autoprefixer.yml +0 -2
  85. data/spec/fixtures/default/config/deploy.yml +0 -12
  86. data/spec/fixtures/default/config/deploy_example.yml +0 -12
  87. data/spec/fixtures/default/config/site.yml +0 -13
  88. data/spec/fixtures/default/config/translations.yml +0 -3
  89. data/spec/fixtures/default/data/bands.yml +0 -13
  90. data/spec/fixtures/default/data/events.yml +0 -54
  91. data/spec/fixtures/default/data/songs.yml +0 -46
  92. data/spec/fixtures/default/data/updates.yml +0 -48
  93. data/spec/fixtures/default/icon.png +0 -0
  94. data/spec/fixtures/default/public/fonts/chunkfive-webfont.eot +0 -0
  95. data/spec/fixtures/default/public/fonts/chunkfive-webfont.svg +0 -213
  96. data/spec/fixtures/default/public/fonts/chunkfive-webfont.ttf +0 -0
  97. data/spec/fixtures/default/public/fonts/chunkfive-webfont.woff +0 -0
  98. data/spec/fixtures/default/public/fonts/chunkfive.css +0 -8
  99. data/spec/fixtures/default/public/fonts/chunkfive.otf +0 -0
  100. data/spec/fixtures/default/public/images/nav_on.png +0 -0
  101. data/spec/fixtures/default/public/images/photo_frame.png +0 -0
  102. data/spec/fixtures/default/public/images/sep.png +0 -0
  103. data/spec/fixtures/default/public/images/top.jpg +0 -0
  104. data/spec/fixtures/default/public/javascripts/application.js.coffee +0 -2
  105. data/spec/fixtures/default/public/javascripts/common.js +0 -1
  106. data/spec/fixtures/default/public/samples/asset_collections/cover.jpg +0 -0
  107. data/spec/fixtures/default/public/samples/photo.jpg +0 -0
  108. data/spec/fixtures/default/public/samples/photo_2.jpg +0 -0
  109. data/spec/fixtures/default/public/stylesheets/application.css +0 -64
  110. data/spec/fixtures/default/public/stylesheets/other/extra.css.less +0 -8
  111. data/spec/fixtures/default/public/stylesheets/other/style.css.scss +0 -13
  112. data/spec/fixtures/default/public/stylesheets/reboot.css +0 -77
  113. data/spec/integration/cli_spec.rb +0 -17
  114. data/spec/integration/commands/authenticate_command_spec.rb +0 -60
  115. data/spec/integration/commands/delete_command_spec.rb +0 -147
  116. data/spec/integration/commands/push_command_spec.rb +0 -86
  117. data/spec/integration/commands/sync_command_spec.rb +0 -60
  118. data/spec/integration/generators/page_spec.rb +0 -87
  119. data/spec/integration/generators/relationship_spec.rb +0 -102
  120. data/spec/integration/integration_helper.rb +0 -15
  121. data/spec/spec_helper.rb +0 -19
  122. data/spec/support/api_settings.rb +0 -5
  123. data/spec/support/chronic.rb +0 -6
  124. data/spec/support/helpers.rb +0 -39
  125. data/spec/support/matchers.rb +0 -5
  126. data/spec/support/pry.rb +0 -4
  127. data/spec/support/thor.rb +0 -12
  128. data/spec/support/vcr.rb +0 -27
  129. data/spec/unit/commands/pull_sub_commands/concerns/assets_concern_spec.rb +0 -48
  130. data/spec/unit/commands/pull_sub_commands/pull_content_types_command_spec.rb +0 -41
  131. data/spec/unit/commands/push_sub_commands/push_pages_command_spec.rb +0 -125
  132. data/spec/unit/commands/push_sub_commands/push_theme_assets_command_spec.rb +0 -42
  133. data/spec/unit/decorators/content_entry_decorator_spec.rb +0 -104
  134. data/spec/unit/decorators/page_decorator_spec.rb +0 -35
  135. data/spec/unit/decorators/site_decorator_spec.rb +0 -62
  136. data/spec/unit/decorators/theme_asset_decorator_spec.rb +0 -89
  137. data/spec/unit/tools/glob_spec.rb +0 -26
  138. data/spec/unit/tools/yaml_ext_spec.rb +0 -46
File without changes
@@ -1,21 +0,0 @@
1
- name: Bands
2
- description: List of bands
3
- slug: bands
4
- order_by: name
5
- fields:
6
- - name:
7
- hint: Name of the band
8
- - leader:
9
- type: string
10
- label: Fullname of the leader
11
- - kind:
12
- type: select
13
- label: "Music kind (grunge, rock, pop, country)"
14
- select_options: ['grunge', 'rock', 'country']
15
- - songs:
16
- type: has_many
17
- class_name: songs
18
- inverse_of: band
19
- ui_enabled: true
20
- - featured:
21
- type: boolean
@@ -1,25 +0,0 @@
1
- name: Events
2
- description: List of upcoming events
3
- slug: events
4
- order_by: created_at
5
- label_field_name: place
6
- fields:
7
- - place:
8
- hint: Name of the place
9
- - date:
10
- type: date
11
- hint: Date of the event
12
- - city:
13
- type: string
14
- label: City of the event
15
- - state:
16
- type: string
17
- label: State of the event
18
- - notes:
19
- type: text
20
- - tags:
21
- type: tags
22
- label: List of tags
23
- - price:
24
- type: Float
25
- label: Price of the event
@@ -1,17 +0,0 @@
1
- name: Messages
2
- description: Messages posted by new potential customers
3
- slug: messages
4
- label_field_name: name
5
- public_submission_enabled: true
6
- order_by: created_at
7
- fields:
8
- - name:
9
- hint: Full name
10
- required: true
11
- - email:
12
- hint: Email
13
- required: true
14
- - message:
15
- hint: Customer message
16
- type: text
17
- required: true
@@ -1,25 +0,0 @@
1
- name: Songs
2
- label_field_name: title
3
- order_by: _position
4
- slug: songs
5
- fields:
6
- - title:
7
- type: string
8
- required: true
9
- hint: Title of your song
10
- - band:
11
- label: Band
12
- type: belongs_to
13
- target: bands
14
- - cover:
15
- label: Cover
16
- type: file
17
- required: true
18
- - short_description:
19
- type: text
20
- text_formatting: html
21
- - audio_url:
22
- type: string
23
- hint: Url to a service like Blip for instance
24
- - duration:
25
- hint: "format like: mm:ss"
@@ -1,33 +0,0 @@
1
- name: Updates
2
- description: List of updates
3
- slug: updates
4
- order_by: date
5
- label_field_name: title
6
- public_submission_enabled: false
7
- fields:
8
- - title:
9
- hint: Not displayed in the website
10
- localized: true
11
- - text:
12
- type: text
13
- hint: Text displayed in the home page
14
- localized: true
15
- text_formatting: html
16
- - category:
17
- type: select
18
- hint: Pick a category
19
- localized: true
20
- # select_options:
21
- # en: ['General', 'Gigs', 'Bands']
22
- # fr: ['Général', 'Concerts', 'Groupes']
23
- select_options:
24
- - en: General
25
- fr: Général
26
- - en: Gigs
27
- fr: Concerts
28
- - en: Bands
29
- fr: Groupes
30
- - Albums
31
- - date:
32
- type: date
33
- hint: Date of the update
@@ -1,10 +0,0 @@
1
- ---
2
- title: Page not found
3
- ---
4
- {% extends index %}
5
-
6
- {% block content %}
7
-
8
- %p.error page not found
9
-
10
- {% endblock %}
@@ -1,7 +0,0 @@
1
- ---
2
- title: A notre sujet
3
- slug: a-notre-sujet
4
- editable_elements:
5
- 'banner/page_image': "/samples/photo.jpg"
6
- 'banner/pitch': "<h2>A notre sujet</h2><p>Lorem ipsum...(FR)</p>"
7
- ---
@@ -1,21 +0,0 @@
1
- ---
2
- title: About Us
3
- listed: true
4
- position: 1
5
- handle: about-us
6
- editable_elements:
7
- 'banner/page_image': "/samples/photo_2.jpg"
8
- 'banner/pitch': "<h2>About us</h2><p>Lorem ipsum...</p>"
9
- ---
10
- {% extends parent %}
11
-
12
- {% block content %}
13
-
14
- {% editable_long_text 'content' %}
15
-
16
- %p
17
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vitae tincidunt urna. Nunc felis purus, ultricies et venenatis bibendum, fringilla eu lectus. Sed cursus, sem at blandit mattis, libero quam egestas tortor, eget cursus dolor tellus id nunc. Quisque mauris diam, tincidunt in commodo sed, feugiat eu nibh. Nulla erat nunc, dapibus vel eleifend et, egestas sed quam. Vestibulum mollis eros at dolor vulputate vel sollicitudin enim convallis. Etiam velit nisi, rutrum vel sagittis facilisis, pretium id lorem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque mauris nisl, consequat sed tincidunt nec, lacinia in odio. In hac habitasse platea dictumst. Nam semper libero aliquam turpis gravida vel varius erat vulputate. Integer consequat ipsum vitae augue porttitor ullamcorper. Nam vulputate aliquet ante at gravida. Vestibulum luctus urna et dui hendrerit eu suscipit velit varius. Sed ornare eleifend sem, vitae pharetra dolor sodales egestas. Mauris lobortis hendrerit odio, vitae porttitor urna rutrum at. Ut at lectus erat, nec dictum dolor. Praesent in sapien interdum nibh euismod vestibulum. Vestibulum tincidunt pulvinar accumsan.
18
-
19
- {% endeditable_long_text %}
20
-
21
- {% endblock %}
@@ -1,4 +0,0 @@
1
- ---
2
- title: Om oss
3
- slug: om-oss
4
- ---
@@ -1,4 +0,0 @@
1
- ---
2
- position: 2
3
- ---
4
- {% extends parent %}
@@ -1,5 +0,0 @@
1
- ---
2
- title: Jean Personne
3
- slug: jean-personne
4
- ---
5
- {% extends parent %}
@@ -1,6 +0,0 @@
1
- ---
2
- position: 1
3
- published: true
4
- listed: true
5
- ---
6
- {% extends parent %}
@@ -1,16 +0,0 @@
1
- ---
2
- title: All the pages
3
- listed: false
4
- published: false
5
- ---
6
- {% extends parent %}
7
- {% block content %}
8
- <ul>
9
- {% for page in site.pages %}
10
- <li>{{ page.title }}</li>
11
- {% endfor %}
12
- </ul>
13
-
14
- {% fetch_page our-music as my_page %}
15
- <p>Single page: {{ my_page.title }}</p>
16
- {% endblock %}
@@ -1,10 +0,0 @@
1
- ---
2
- title: News archive
3
- ---
4
- {% extends parent %}
5
-
6
- {% block content %}
7
-
8
- %p News Archives. Lorem ipsum....
9
-
10
- {% endblock %}
@@ -1,54 +0,0 @@
1
- ---
2
- title: Contact Us
3
- listed: true
4
- position: 4
5
- ---
6
- {% extends 'parent' %}
7
-
8
- {% block content %}
9
-
10
- .text
11
- {% editable_long_text 'text' %}
12
- %p
13
- Ut imperdiet velit eu metus semper tristique. Vivamus risus nisi, tincidunt et euismod a, auctor pretium eros. Vestibulum sed magna et velit pulvinar euismod. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean sed velit quis nisl blandit vulputate id non tortor. Mauris nec placerat massa. Vivamus sed odio non ligula pharetra pretium. Ut convallis, purus et lobortis suscipit, mauris orci ullamcorper lectus, nec vulputate turpis mauris sed augue. Maecenas faucibus ultricies nisl, non ullamcorper justo bibendum nec. Duis vitae mauris condimentum risus commodo mattis vel sed libero. Fusce diam elit, porta id vestibulum ut, aliquet mattis neque.
14
- {% endeditable_long_text %}
15
-
16
- %form#contactform{ :name => 'contact', :action => '{{ contents.messages.public_submission_url }}.json', :method => 'post' }
17
- / %input{ type: 'hidden', name: 'success_callback', value: '/events' }
18
- / %input{ type: 'hidden', name: 'error_callback', value: '/contact' }
19
-
20
- %p
21
- %label{ :for => 'name' } Name
22
- %input{ :type => 'text', :id => 'name', :name => 'content[name]', :placeholder => 'First and last name', :tabindex => '1', required: 'required', value: '{{ message.name }}' }
23
- %span {{ message.errors.name }}
24
-
25
- %p
26
- %label{ :for => 'email' } Email
27
- %input{ :type => 'text', :id => 'email', :name => 'content[email]', :placeholder => 'example@domain.com', :tabindex => '2', required: 'required', value: '{{ message.email }}' }
28
- %span {{ message.errors.email }}
29
-
30
- %p
31
- %label{ :for => 'comment' } Your Message
32
- %textarea{ :id => 'comment', :name => 'content[message]', :tabindex => '3', required: 'required' } {{ message.message }}
33
- %span {{ message.errors.message }}
34
-
35
- %p.action
36
- %input{ :name => 'submit', :type => 'submit', :tabindex => '4', :value => 'Send Message' }
37
-
38
- :javascript
39
- $(document).ready(function() {
40
- var form = $('form[name=contact]');
41
- form.submit(function(e) {
42
- e.stopPropagation();
43
- e.preventDefault();
44
- $.post(form.attr('action'),
45
- form.serializeArray(),
46
- function() {
47
- alert("Thank you ! Your message have been received");
48
- }, "json").error(function(response) {
49
- alert("We are sorry but we were unable to treat your message. Please try later.");
50
- });
51
- });
52
- });
53
-
54
- {% endblock %}
@@ -1,18 +0,0 @@
1
- ---
2
- title: A sample contest
3
- listed: false
4
- ---
5
- {% extends 'parent' %}
6
-
7
- {% block content %}
8
-
9
- %h1 Contest sample
10
-
11
- {% if session.already_participated %}
12
- %p You've already participated to that contest ! Come back later.
13
- {% else %}
14
- %p Your code is: HELLO WORLD
15
- {% session_assign already_participated = true %}
16
- {% endif %}
17
-
18
- {% endblock %}
@@ -1,64 +0,0 @@
1
- ---
2
- position: 5
3
- handle: events
4
- ---
5
- {% extends parent %}
6
-
7
- {% block content %}
8
-
9
- %p Thank you {{ message.name }} !
10
-
11
- #events.unit.size2of3
12
- %h2 Upcoming events
13
-
14
- %ul.list
15
- {% for event in contents.events %}
16
- %li
17
- %em {{ event.date | localized_date: '%a, %B %d, %Y' }}
18
- &nbsp;-&nbsp;
19
- {{ event.place }}, {{ event.city }}, {{ event.state }}
20
- {% endfor %}
21
-
22
- #sidebar.unit.size1of3
23
-
24
- {% model_form 'messages', id: 'contactform' %}
25
- %p
26
- %label{ :for => 'name' } Name
27
- %input{ :type => 'text', :id => 'name', :name => 'content[name]', :placeholder => 'First and last name', :tabindex => '1', required: 'required', value: '{{ message.name }}' }
28
- %span {{ message.errors.name }}
29
-
30
- %p
31
- %label{ :for => 'email' } Email
32
- %input{ :type => 'text', :id => 'email', :name => 'content[email]', :placeholder => 'example@domain.com', :tabindex => '2', required: 'required', value: '{{ message.email }}' }
33
- %span {{ message.errors.email }}
34
-
35
- %p
36
- %label{ :for => 'comment' } Your Message
37
- %textarea{ :id => 'comment', :name => 'content[message]', :tabindex => '3', required: 'required' } {{ message.message }}
38
- %span {{ message.errors.message }}
39
-
40
- %p.action
41
- %input{ :name => 'submit', :type => 'submit', :tabindex => '4', :value => 'Send Message' }
42
- {% endmodel_form %}
43
-
44
- {% editable_long_text 'sidebar' %}
45
-
46
- %p
47
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vitae tincidunt urna. Nunc felis purus, ultricies et venenatis bibendum, fringilla eu lectus. Sed cursus, sem at blandit mattis, libero quam egestas tortor, eget cursus dolor tellus id nunc. Quisque mauris diam, tincidunt in commodo sed, feugiat eu nibh. Nulla erat nunc, dapibus vel eleifend et, egestas sed quam. Vestibulum mollis eros at dolor vulputate vel sollicitudin enim convallis. Etiam velit nisi, rutrum vel sagittis facilisis, pretium id lorem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque mauris nisl, consequat sed tincidunt nec, lacinia in odio. In hac habitasse platea dictumst. Nam semper libero aliquam turpis gravida vel varius erat vulputate. Integer consequat ipsum vitae augue porttitor ullamcorper. Nam vulputate aliquet ante at gravida. Vestibulum luctus urna et dui hendrerit eu suscipit velit varius. Sed ornare eleifend sem, vitae pharetra dolor sodales egestas. Mauris lobortis hendrerit odio, vitae porttitor urna rutrum at. Ut at lectus erat, nec dictum dolor. Praesent in sapien interdum nibh euismod vestibulum. Vestibulum tincidunt pulvinar accumsan
48
-
49
- {% endeditable_long_text %}
50
-
51
- %p
52
- %strong Discover: {% link_to our-music %}
53
- %br
54
- %strong More about us: {% link_to about-us %}Who are we ?{% endlink_to %}
55
- %br
56
- %strong Plus à notre sujet: {% link_to about-us, locale: fr %}Qui sommes nous ?{% endlink_to %}
57
- %br
58
- {% assign song = contents.songs.first %}
59
- %strong {% link_to song %}
60
- %br
61
- {% assign another_song = contents.songs.last %}
62
- %strong {% link_to another_song, with: a-song-template %}
63
-
64
- {% endblock %}
@@ -1,20 +0,0 @@
1
- ---
2
- title: Various uses of the with_scope tag
3
- ---
4
- {% assign begin_date = '2012-06-01 00:00:00' %}
5
- {% assign end_date = '2012-06-10 23:59:59' %}
6
- {% assign prices = '5.0,5.5' | split: ',' | map: 'to_f' %}
7
-
8
- {% with_scope date.gte: begin_date, date.lte: end_date, city: /Kansas/, state.ne: 'Illinois', tags: 'awesome', tags.nin: 'bad', price.in: prices, order_by: 'price.desc' %}
9
- events={{ contents.events.count }}.
10
- {% endwith_scope %}
11
-
12
- {% with_scope tags.in: 'awesome', order_by: 'price.desc' %}
13
- first event={{ contents.events.first.place }}.
14
- {% endwith_scope %}
15
-
16
- {% assign featured = false %}
17
-
18
- {% with_scope featured: featured %}
19
- bands={{ contents.bands.count }}.
20
- {% endwith_scope %}
@@ -1,8 +0,0 @@
1
- ---
2
- title: Grunge leaders
3
- ---
4
- {% with_scope kind: "grunge" %}
5
- {% for band in contents.bands %}
6
- {{ band.leader }}
7
- {% endfor %}
8
- {% endwith_scope %}
@@ -1,3 +0,0 @@
1
- ---
2
- title: Page d'accueil
3
- ---
@@ -1,101 +0,0 @@
1
- ---
2
- title: Home page
3
- handle: home
4
- ---
5
- !!! XML
6
- !!!
7
- %html{ :lang => "en" }
8
- %head
9
- %meta{ :charset => "utf-8" }
10
-
11
- %title {{ site.name }} | {{ page.title }}
12
-
13
- %meta{ :content => "{{ site.meta_description }}", :name => "description" }
14
- %meta{ :content => "{{ site.meta_keywords }}", :name => "keywords" }
15
-
16
- {{ '/foo/bar' | auto_discovery_link_tag: 'rel:alternate', 'type:application/atom+xml', 'title:A title' }}
17
-
18
- / Le HTML5 shim, for IE6-8 support of HTML elements
19
-
20
- /[if lt IE 9]
21
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
22
-
23
- <link href="/fonts/chunkfive.css" media="screen" rel="stylesheet" type="text/css" />
24
-
25
- / Le styles
26
- {{ 'http://fonts.googleapis.com/css?family=Open+Sans:400,700' | stylesheet_tag }}
27
- {{ 'reboot' | stylesheet_tag }}
28
- {{ 'application' | stylesheet_tag }}
29
- %script{ :src => "{{ 'application.js' | javascript_url }}", :type => 'text/javascript' }
30
-
31
- %script{ :src => 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', :type => 'text/javascript' }
32
-
33
- {% inline_editor %}
34
-
35
- %body
36
- .container
37
- #menu
38
- %ul#nav
39
- %li#home{ :class => "{% if page.fullpath == 'index' %}on{% endif %} link" }
40
- %a{ :href => '{% path_to home %}' } Home
41
- {% nav site, no_wrapper: true, exclude: 'events' %}
42
- .clear
43
-
44
- #banner
45
- {% block banner %}
46
- .photo
47
- %img{ :src => "{% editable_file 'Page image', hint: 'Top banner image in each page (602px by 397px)' %}/samples/photo.jpg{% endeditable_file %}" }
48
-
49
- .text
50
- {% editable_long_text 'pitch' %}
51
- %h2 About Us
52
- %p
53
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vitae egestas neque. Proin ac ante ante, sit amet egestas purus. Fusce tincidunt mattis sapien eget sodales. Cras aliquet odio eu nisl dapibus placerat.
54
- %br
55
- %a{ :href => '/about-us' } read more...
56
- {% endeditable_long_text %}
57
- {% endblock %}
58
-
59
- .clear
60
-
61
- #content
62
- {% block content %}
63
-
64
- #events.unit.size1of2
65
- %h2 Upcoming events
66
-
67
- %ul.list
68
- {% for event in contents.events limit: 6 %}
69
- %li
70
- %em {{ event.date | localized_date: '%a, %B %d, %Y' }}
71
- &nbsp;-&nbsp;
72
- {{ event.place }}, {{ event.city }}, {{ event.state }}
73
- {% endfor %}
74
-
75
- %p.more
76
- %a{ :href => '/events' } See more events ...
77
-
78
- #updates.unit.size1of2
79
- %h2 Site updates
80
-
81
- %ul.list
82
- {% for update in contents.updates %}
83
- %li
84
- %em {{ update.date | localized_date: '%B %d' }}
85
- &nbsp;-&nbsp;
86
- {{ update.title }}
87
- {% endfor %}
88
-
89
- {% endblock %}
90
-
91
- .clear
92
-
93
- #footer
94
- #is_templatized{templatized: "{{ page.templatized? }}"}
95
- #scoped_translation{scoped_translation: "{{ 'fr' | translate: 'en', 'locomotive.locales' }}"}
96
-
97
- {% include footer %}
98
-
99
- {% include a_complicated-one %}
100
-
101
- {% google_analytics 'UA-20661758-1' %}