editorial-autogestiva-jekyll-theme 0.2.7 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -2
  3. data/_config.yml +73 -0
  4. data/_data/en.yml +129 -27
  5. data/_data/es.yml +111 -31
  6. data/_data/forms/billing_address.yml +71 -0
  7. data/_data/forms/contacto.yml +2 -2
  8. data/_data/forms/shipping_address.yml +76 -0
  9. data/_data/forms/user.yml +11 -0
  10. data/_data/layouts/book.yml +82 -93
  11. data/_data/layouts/cart.yml +198 -0
  12. data/_data/layouts/confirmation.yml +68 -0
  13. data/_data/layouts/menu.yml +65 -0
  14. data/_data/layouts/payment.yml +114 -0
  15. data/_data/layouts/post.yml +0 -1
  16. data/_data/layouts/shipment.yml +126 -0
  17. data/_includes/boolean.html +30 -0
  18. data/_includes/cart.svg +1 -0
  19. data/_includes/cart_add.html +8 -0
  20. data/_includes/cart_controller.html +10 -0
  21. data/_includes/contact.html +6 -5
  22. data/_includes/content.html +1 -0
  23. data/_includes/country.html +53 -0
  24. data/_includes/editorial.html +24 -30
  25. data/_includes/email.html +1 -0
  26. data/_includes/file.html +35 -0
  27. data/_includes/floating_alert.html +6 -0
  28. data/_includes/footer.html +10 -8
  29. data/_includes/form/boolean.html +1 -0
  30. data/_includes/form/content.html +1 -0
  31. data/_includes/form/email.html +1 -0
  32. data/_includes/form/file.html +1 -0
  33. data/_includes/form/hidden.html +1 -0
  34. data/_includes/form/image.html +1 -0
  35. data/_includes/form/input.html +1 -0
  36. data/_includes/form/markdown_content.html +1 -0
  37. data/_includes/form/number.html +1 -0
  38. data/_includes/form/predefined_array.html +1 -0
  39. data/_includes/form/section.html +1 -0
  40. data/_includes/form/separator.html +1 -0
  41. data/_includes/form/string.html +1 -0
  42. data/_includes/form/submit.html +1 -0
  43. data/_includes/form/tel.html +1 -0
  44. data/_includes/form/text.html +1 -0
  45. data/_includes/form/url.html +1 -0
  46. data/_includes/hidden.html +5 -0
  47. data/_includes/image.html +32 -0
  48. data/_includes/input.html +45 -0
  49. data/_includes/item.html +38 -0
  50. data/_includes/markdown_content.html +1 -0
  51. data/_includes/menu.html +27 -0
  52. data/_includes/navbar.html +29 -25
  53. data/_includes/notification.html +5 -0
  54. data/_includes/number.html +1 -0
  55. data/_includes/password.html +1 -0
  56. data/_includes/picture.html +23 -0
  57. data/_includes/postal_code.html +45 -0
  58. data/_includes/predefined_array.html +39 -0
  59. data/_includes/preload_font.html +1 -0
  60. data/_includes/search.html +25 -0
  61. data/_includes/section.html +1 -0
  62. data/_includes/separator.html +1 -0
  63. data/_includes/share.html +22 -0
  64. data/_includes/share_box.html +16 -0
  65. data/_includes/state.html +53 -0
  66. data/_includes/string.html +3 -0
  67. data/_includes/submit.html +1 -0
  68. data/_includes/tel.html +1 -0
  69. data/_includes/text.html +32 -0
  70. data/_includes/url.html +1 -0
  71. data/_layouts/book.html +42 -84
  72. data/_layouts/cart.html +72 -0
  73. data/_layouts/confirmation.html +17 -0
  74. data/_layouts/default.html +30 -10
  75. data/_layouts/home.html +23 -13
  76. data/_layouts/payment.html +21 -0
  77. data/_layouts/post.html +5 -5
  78. data/_layouts/shipment.html +52 -0
  79. data/_sass/accessibility.scss +37 -0
  80. data/_sass/editor.scss +8 -0
  81. data/_sass/embed.scss +5 -0
  82. data/_sass/floating_alert.scss +10 -0
  83. data/_sass/helpers.scss +318 -0
  84. data/_sass/logic.scss +17 -0
  85. data/_sass/menu.scss +20 -0
  86. data/_sass/share.html +12 -0
  87. data/_sass/share_box.html +16 -0
  88. data/_sass/share_box.scss +26 -0
  89. data/_sass/snap.scss +58 -0
  90. data/_sass/toggler.scss +39 -0
  91. data/assets/css/styles.scss +41 -5
  92. data/assets/data/site.json +24 -0
  93. data/assets/fonts/forkawesome-webfont.woff2 +0 -0
  94. data/assets/js/pack.js +16 -0
  95. data/assets/js/pack.js.map +1 -0
  96. data/assets/js/script.js +44 -0
  97. data/assets/templates/alert.html +7 -0
  98. data/assets/templates/cart.html +65 -0
  99. data/assets/templates/payment_methods.html +41 -0
  100. data/assets/templates/recover_order.html +11 -0
  101. data/assets/templates/results.html +17 -0
  102. data/assets/templates/shipping_methods.html +36 -0
  103. metadata +231 -33
  104. data/README.md.orig +0 -118
  105. data/_includes/boolean.html +0 -1
  106. data/_includes/contact.html.orig +0 -55
  107. data/_includes/email.html +0 -1
  108. data/_includes/form/boolean.html +0 -30
  109. data/_includes/form/email.html +0 -1
  110. data/_includes/form/hidden.html +0 -5
  111. data/_includes/form/input.html +0 -33
  112. data/_includes/form/number.html +0 -1
  113. data/_includes/form/predefined_array.html +0 -39
  114. data/_includes/form/section.html +0 -1
  115. data/_includes/form/separator.html +0 -1
  116. data/_includes/form/string.html +0 -3
  117. data/_includes/form/submit.html +0 -1
  118. data/_includes/form/text.html +0 -32
  119. data/_includes/form/url.html +0 -1
  120. data/_includes/hidden.html +0 -1
  121. data/_includes/input.html +0 -1
  122. data/_includes/navbar.html.orig +0 -44
  123. data/_includes/number.html +0 -1
  124. data/_includes/predefined_array.html +0 -1
  125. data/_includes/section.html +0 -1
  126. data/_includes/separator.html +0 -1
  127. data/_includes/string.html +0 -1
  128. data/_includes/submit.html +0 -1
  129. data/_includes/text.html +0 -1
  130. data/_includes/url.html +0 -1
  131. data/_sass/home.scss +0 -22
data/README.md.orig DELETED
@@ -1,118 +0,0 @@
1
- # editorial-autogestiva-jekyll-theme
2
-
3
- Una plantilla para editoriales autogestivas
4
-
5
-
6
- <<<<<<< HEAD
7
- ## Installation
8
-
9
- Install Bootstrap 4.4:
10
- =======
11
- ```bash
12
- # Hacer un fork local desde sutty-base-jekyll-theme a nuestra plantilla
13
- git clone https://0xacab.org/sutty/jekyll/sutty-base-jekyll-theme.git \
14
- CAMBIAME-jekyll-theme
15
- cd CAMBIAME-jekyll-theme
16
-
17
- # Sutty-base ahora es el proyecto base, desde el que podemos tomar
18
- # cambios, pero no enviamos para no mezclar las cosas
19
- git remote rename origin upstream
20
-
21
- # Agregamos el repositorio donde vamos a enviar y publicar cambios
22
- git remote add origin \
23
- git@0xacab.org:sutty/jekyll/CAMBIAME-jekyll-theme.git
24
-
25
- # Configuramos git para que envíe siempre los cambios al repositorio
26
- # nuevo
27
- git push --set-upstream origin master
28
- ```
29
-
30
- Para empezar, hay que buscar y reemplazar en todos los archivos donde
31
- diga `CAMBIAME`.
32
-
33
- También hay que instalar las dependencias de CSS y JS con `yarn`.
34
-
35
- ## Publicación
36
-
37
- Para publicar la plantilla, primero hay que cambiar el nombre al archivo
38
- `sutty-base-jekyll-theme.gemspec`:
39
-
40
- ```bash
41
- git mv {sutty-base,CAMBIAME}-jekyll-theme.gemspec
42
- ```
43
-
44
- Cada vez que actualicemos la gema hay que editar
45
- `CAMBIAME-jekyll-theme.gemspec` para cambiar la versión.
46
-
47
- Y luego para compilar y publicar la gema:
48
-
49
- ```bash
50
- gem build CAMBIAME-jekyll-theme.gemspec
51
- gem push CAMBIAME-VERSION.gemspec
52
- ```
53
-
54
- También hay que actualizar la versión en el
55
- [skel](https://0xacab.org/sutty/skel.sutty.nl/).
56
-
57
- >>>>>>> ab27eaaed5357d624edd12ea22bc4e88401b5a1d
58
-
59
- ```bash
60
- yarn add bootstrap@~4.4
61
- ```
62
-
63
- Add this line to your Jekyll site's `Gemfile`:
64
-
65
- ```ruby
66
- gem "editorial-autogestiva-jekyll-theme"
67
- ```
68
-
69
- And add this line to your Jekyll site's `_config.yml`:
70
-
71
- ```yaml
72
- theme: editorial-autogestiva-jekyll-theme
73
- ```
74
-
75
- And then execute:
76
-
77
- $ bundle
78
-
79
- Or install it yourself as:
80
-
81
- $ gem install editorial-autogestiva-jekyll-theme
82
-
83
- ## Usage
84
-
85
- Por ahora no tenemos opciones, solo hay que agregar la gema en el sitio
86
- y funciona :)
87
-
88
- ## Contributing
89
-
90
- Bug reports and pull requests are welcome on 0xacab.org at
91
- https://0xacab.org/sutty/jekyll/editorial-autogestiva-jekyll-theme. This project is
92
- intended to be a safe, welcoming space for collaboration, and
93
- contributors are expected to adhere to the [Sutty's code of
94
- conduct](http://sutty.nl/en/code-of-conduct).
95
-
96
- ## Development
97
-
98
- To set up your environment to develop this theme, run `bundle install`.
99
-
100
- Your theme is setup just like a normal Jekyll site! To test your theme,
101
- run `bundle exec jekyll serve` and open your browser at
102
- `http://localhost:4000`. This starts a Jekyll server using your
103
- theme. Add pages, documents, data, etc. like normal to test your theme's
104
- contents. As you make modifications to your theme and to your content,
105
- your site will regenerate and you should see the changes in the browser
106
- after a refresh, just like normal.
107
-
108
- When your theme is released, only the files in `_layouts`, `_includes`,
109
- `_sass` and `assets` tracked with Git will be bundled.
110
-
111
- To add a custom directory to your theme-gem, please edit the array in
112
- `editorial-autogestiva-jekyll-theme.gemspec` accordingly.
113
-
114
- ## License
115
-
116
- The theme is available as open source under the terms of the [Antifacist
117
- MIT License](LICENSE.txt).
118
-
@@ -1 +0,0 @@
1
- _includes/form/boolean.html
@@ -1,55 +0,0 @@
1
- <<<<<<< HEAD
2
- <form method="post" action="https://api.sutty.nl/v1/sites/{{ site.hostname }}/contact">
3
- <input
4
- type="hidden"
5
- name="redirect"
6
- value="{{ site.url }}/{{ include.url }}?{{ site.i18n.contact.thanks }}" />
7
-
8
- {%- for field in site.i18n.contact.form.fields -%}
9
- <div class="form-group">
10
- <label for="pronouns">{{ field.label }}</label>
11
- <input
12
- type="{{ field.type }}"
13
- id="{{ field.name }}"
14
- name="{{ field.name }}"
15
- value=""
16
- class="form-control"
17
- autocomplete="{{ field.autocomplete }}"
18
- placeholder="{{ field.placeholder }}" />
19
- </div>
20
- {%- endfor -%}
21
-
22
- <div class="form-group">
23
- <label for="body">{{ site.i18n.contact.form.body }}</label>
24
- <textarea name="body" id="body" required class="form-control"></textarea>
25
- </div>
26
-
27
- <input type="submit" class="btn btn-success" value="{{ site.i18n.contact.form.submit }}" />
28
-
29
- <div class="form-check form-check-inline">
30
- <input type="checkbox" name="gdpr" id="gdpr" value="1" required class="form-check-input" />
31
- <label class="form-check-label" for="gdpr">
32
- {{ site.i18n.contact.form.gdpr }}
33
- </label>
34
- </div>
35
- =======
36
- {% comment %}
37
- Esta imagen obtiene una cookie desde la API de Sutty para autorizar el
38
- envío del formulario.
39
- {% endcomment %}
40
- <img class="d-none" src="https://api.sutty.nl/v1/sites/{{ site.hostname }}/contact/cookie.png" />
41
-
42
- {% comment %}
43
- El formulario se envía a la API. La definición del formulario se
44
- encuentra en _data/forms/contacto.yml
45
- {% endcomment %}
46
- <form action="https://api.sutty.nl/v1/sites/{{ site.hostname }}/contact/contacto"
47
- method="post">
48
- {%- for field in include.form -%}
49
- {% assign template = field[1].type | append: '.html' %}
50
- <div class="col{{ field[1].col | default: 12 | prepend: '-' }}">
51
- {% include {{ template }} field=field %}
52
- </div>
53
- {%- endfor -%}
54
- >>>>>>> 5a59db7503af04fa49254c23ebacc03f2ee99de3
55
- </form>
data/_includes/email.html DELETED
@@ -1 +0,0 @@
1
- _includes/form/email.html
@@ -1,30 +0,0 @@
1
- {%- assign name = include.field[0] -%}
2
- {%- assign id = include.field[1].id | default: name -%}
3
- {%- assign label = include.field[1].label[site.locale] -%}
4
- {%- assign help = include.field[1].help[site.locale] -%}
5
- {%- assign autocomplete = include.field[1].autocomplete -%}
6
-
7
- <div class="form-check text-left">
8
- <input
9
- {% if help %}
10
- aria-describedby="help-{{ id }}"
11
- {% endif %}
12
- {% if include.field[1].required %}
13
- required
14
- {% endif %}
15
- type="checkbox"
16
- name="{{ name }}"
17
- id="{{ id }}"
18
- {% if autocomplete %}
19
- autocomplete="{{ autocomplete }}"
20
- {% endif %}
21
- class="form-check-input" />
22
-
23
- <label class="form-check-label" for="{{ id }}">{{ label }}</label>
24
-
25
- {%- if help -%}
26
- <small id="help-{{ id }}" class="form-text">
27
- {{ help }}
28
- </small>
29
- {%- endif -%}
30
- </div>
@@ -1 +0,0 @@
1
- {% include input.html field=field %}
@@ -1,5 +0,0 @@
1
- {%- assign name = include.field[0] -%}
2
- {%- assign id = include.field[1].id | default: name -%}
3
- {%- assign value = include.field[1].value -%}
4
-
5
- <input type="hidden" value="{{ value }}" name="{{ name }}" id="{{ id }}" />
@@ -1,33 +0,0 @@
1
- {%- assign name = include.field[0] -%}
2
- {%- assign id = include.field[1].id | default: name -%}
3
- {%- assign label = include.field[1].label[site.locale] -%}
4
- {%- assign help = include.field[1].help[site.locale] -%}
5
- {%- assign autocomplete = include.field[1].autocomplete -%}
6
-
7
- <div class="form-group">
8
- <label for="{{ id }}">
9
- {{ label }}
10
- {% if include.field[1].required %}*{% endif %}
11
- </label>
12
-
13
- <input
14
- {% if help %}
15
- aria-describedby="help-{{ id }}"
16
- {% endif %}
17
- {% if include.field[1].required %}
18
- required
19
- {% endif %}
20
- type="{{ include.field[1].type }}"
21
- name="{{ name }}"
22
- id="{{ id }}"
23
- {% if autocomplete %}
24
- autocomplete="{{ autocomplete }}"
25
- {% endif %}
26
- class="form-control" />
27
-
28
- {%- if help -%}
29
- <small id="help-{{ id }}" class="form-text">
30
- {{ help }}
31
- </small>
32
- {%- endif -%}
33
- </div>
@@ -1 +0,0 @@
1
- {% include input.html field=field %}
@@ -1,39 +0,0 @@
1
- {%- assign name = include.field[0] -%}
2
- {%- assign id = include.field[1].id | default: name -%}
3
- {%- assign label = include.field[1].label[site.locale] -%}
4
- {%- assign help = include.field[1].help[site.locale] -%}
5
- {%- assign autocomplete = include.field[1].autocomplete -%}
6
-
7
- <div class="form-group">
8
- <label for="{{ id }}">
9
- {{ label }}
10
- {% if include.field[1].required %}*{% endif %}
11
- </label>
12
-
13
- <select
14
- {% if help %}
15
- aria-describedby="help-{{ id }}"
16
- {% endif %}
17
- {% if include.field[1].required %}
18
- required
19
- {% endif %}
20
- name="{{ name }}"
21
- id="{{ id }}"
22
- {% if autocomplete %}
23
- autocomplete="{{ autocomplete }}"
24
- {% endif %}
25
- class="form-control">
26
-
27
- <option value="" selected></option>
28
-
29
- {%- for option in include.field[1].values -%}
30
- <option value="{{ option }}">{{ option }}</option>
31
- {%- endfor -%}
32
- </select>
33
-
34
- {%- if help -%}
35
- <small id="help-{{ id }}" class="form-text">
36
- {{ help }}
37
- </small>
38
- {%- endif -%}
39
- </div>
@@ -1 +0,0 @@
1
- <h2 id="{{ include.field[0] }}">{{ include.field[1].title }}</h2>
@@ -1 +0,0 @@
1
- <hr/>
@@ -1,3 +0,0 @@
1
- {% assign f = field %}
2
- {% assign f.type = 'text' %}
3
- {% include input.html field=f %}
@@ -1 +0,0 @@
1
- <input type="submit" class="btn btn-success" value="{{ include.field[1].label[site.locale] }}" />
@@ -1,32 +0,0 @@
1
- {%- assign name = include.field[0] -%}
2
- {%- assign id = include.field[1].id | default: name -%}
3
- {%- assign label = include.field[1].label[site.locale] -%}
4
- {%- assign help = include.field[1].help[site.locale] -%}
5
- {%- assign autocomplete = include.field[1].autocomplete -%}
6
-
7
- <div class="form-group">
8
- <label for="{{ id }}">
9
- {% if include.field[1].required %}*{% endif %}
10
- {{ label }}
11
- </label>
12
-
13
- <textarea
14
- {% if help %}
15
- aria-describedby="help-{{ id }}"
16
- {% endif %}
17
- {% if include.field[1].required %}
18
- required
19
- {% endif %}
20
- name="{{ name }}"
21
- id="{{ id }}"
22
- {% if autocomplete %}
23
- autocomplete="{{ autocomplete }}"
24
- {% endif %}
25
- class="form-control"></textarea>
26
-
27
- {%- if .help -%}
28
- <small id="help-{{ id }}" class="form-text">
29
- {{ help }}
30
- </small>
31
- {%- endif -%}
32
- </div>
@@ -1 +0,0 @@
1
- {% include input.html field=field %}
@@ -1 +0,0 @@
1
- _includes/form/hidden.html
data/_includes/input.html DELETED
@@ -1 +0,0 @@
1
- _includes/form/input.html
@@ -1,44 +0,0 @@
1
- {% assign editorial = site.posts | where: 'layout', 'editorial' | first %}
2
-
3
- <nav class="navbar navbar-expand-lg navbar-light bg-light d-print-block" role="navigation" aria-label="{{ site.i18n.menu.title }}">
4
- <a class="navbar-brand" href="">
5
- <<<<<<< HEAD
6
- {{ site.title }}
7
- =======
8
- {% include_cached logo.html %}
9
- >>>>>>> ab27eaaed5357d624edd12ea22bc4e88401b5a1d
10
- </a>
11
-
12
- {% comment %}
13
- TODO: Add CSS-only hamburger menu.
14
- {% endcomment %}
15
- <ul class="navbar-nav d-print-none">
16
- {%- for item in site.i18n.menu.items -%}
17
- {% comment %}
18
- This makes it hard to just cache the whole navbar, but we prefer
19
- to mark the active item in code rather than with JS.
20
- {% endcomment %}
21
-
22
- {% assign url = item.url | liquify %}
23
-
24
- <li class="nav-item">
25
- <<<<<<< HEAD
26
- <a class="nav-link{% if page.url == url %} active{% endif %}" href="{{ url }}">
27
- {{ item.text }}
28
-
29
- {%- if page.url == url -%}
30
- =======
31
- <a class="nav-link{% if page.url == item.href %} active{% endif %}" href="{{ item.href }}">
32
- {{ item.title }}
33
-
34
- {%- if page.url == item.href -%}
35
- >>>>>>> ab27eaaed5357d624edd12ea22bc4e88401b5a1d
36
- <span class="sr-only">
37
- {{ site.i18n.menu.active | default: '(current)' }}
38
- </span>
39
- {%- endif -%}
40
- </a>
41
- </li>
42
- {%- endfor -%}
43
- </ul>
44
- </nav>
@@ -1 +0,0 @@
1
- _includes/form/number.html
@@ -1 +0,0 @@
1
- _includes/form/predefined_array.html
@@ -1 +0,0 @@
1
- _includes/form/section.html
@@ -1 +0,0 @@
1
- _includes/form/separator.html
@@ -1 +0,0 @@
1
- _includes/form/string.html
@@ -1 +0,0 @@
1
- _includes/form/submit.html
data/_includes/text.html DELETED
@@ -1 +0,0 @@
1
- _includes/form/text.html
data/_includes/url.html DELETED
@@ -1 +0,0 @@
1
- _includes/form/url.html
data/_sass/home.scss DELETED
@@ -1,22 +0,0 @@
1
- .books {
2
- .book {
3
- max-width: calc(212px + 15px + 15px);
4
- margin-top: 2rem;
5
- margin-bottom: 2rem;
6
- margin-right: 1rem;
7
- margin-left: 1rem;
8
-
9
- img {
10
- max-width: 212px;
11
- }
12
-
13
- h2 {
14
- margin-top: 1rem;
15
- font-size: 1rem;
16
- }
17
-
18
- p {
19
- font-size: .8rem;
20
- }
21
- }
22
- }