editorial-autogestiva-jekyll-theme 0.2.8 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) 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/cart.svg +1 -0
  18. data/_includes/cart_add.html +8 -0
  19. data/_includes/cart_controller.html +10 -0
  20. data/_includes/contact.html +6 -5
  21. data/_includes/content.html +1 -0
  22. data/_includes/country.html +53 -0
  23. data/_includes/editorial.html +24 -30
  24. data/_includes/file.html +35 -0
  25. data/_includes/floating_alert.html +6 -0
  26. data/_includes/footer.html +10 -8
  27. data/_includes/form/boolean.html +1 -1
  28. data/_includes/form/content.html +1 -0
  29. data/_includes/form/email.html +1 -1
  30. data/_includes/form/file.html +1 -0
  31. data/_includes/form/hidden.html +1 -1
  32. data/_includes/form/image.html +1 -0
  33. data/_includes/form/input.html +1 -1
  34. data/_includes/form/markdown_content.html +1 -0
  35. data/_includes/form/number.html +1 -1
  36. data/_includes/form/predefined_array.html +1 -1
  37. data/_includes/form/section.html +1 -1
  38. data/_includes/form/separator.html +1 -1
  39. data/_includes/form/string.html +1 -1
  40. data/_includes/form/submit.html +1 -1
  41. data/_includes/form/tel.html +1 -0
  42. data/_includes/form/text.html +1 -1
  43. data/_includes/form/url.html +1 -1
  44. data/_includes/image.html +32 -0
  45. data/_includes/input.html +14 -2
  46. data/_includes/item.html +38 -0
  47. data/_includes/markdown_content.html +1 -0
  48. data/_includes/menu.html +27 -0
  49. data/_includes/navbar.html +29 -25
  50. data/_includes/notification.html +5 -0
  51. data/_includes/password.html +1 -0
  52. data/_includes/picture.html +23 -0
  53. data/_includes/postal_code.html +45 -0
  54. data/_includes/preload_font.html +1 -0
  55. data/_includes/search.html +25 -0
  56. data/_includes/share.html +22 -0
  57. data/_includes/share_box.html +16 -0
  58. data/_includes/state.html +53 -0
  59. data/_includes/submit.html +1 -1
  60. data/_includes/tel.html +1 -0
  61. data/_layouts/book.html +42 -84
  62. data/_layouts/cart.html +72 -0
  63. data/_layouts/confirmation.html +15 -0
  64. data/_layouts/default.html +30 -10
  65. data/_layouts/home.html +23 -13
  66. data/_layouts/payment.html +21 -0
  67. data/_layouts/post.html +5 -5
  68. data/_layouts/shipment.html +49 -0
  69. data/_sass/accessibility.scss +37 -0
  70. data/_sass/editor.scss +8 -0
  71. data/_sass/embed.scss +5 -0
  72. data/_sass/floating_alert.scss +10 -0
  73. data/_sass/helpers.scss +318 -0
  74. data/_sass/logic.scss +17 -0
  75. data/_sass/menu.scss +20 -0
  76. data/_sass/share.html +12 -0
  77. data/_sass/share_box.html +16 -0
  78. data/_sass/share_box.scss +26 -0
  79. data/_sass/snap.scss +58 -0
  80. data/_sass/toggler.scss +39 -0
  81. data/assets/css/styles.scss +41 -5
  82. data/assets/data/site.json +24 -0
  83. data/assets/fonts/forkawesome-webfont.woff2 +0 -0
  84. data/assets/js/pack.js +16 -0
  85. data/assets/js/pack.js.map +1 -0
  86. data/assets/js/script.js +44 -0
  87. data/assets/templates/alert.html +7 -0
  88. data/assets/templates/cart.html +65 -0
  89. data/assets/templates/payment_methods.html +41 -0
  90. data/assets/templates/recover_order.html +11 -0
  91. data/assets/templates/results.html +17 -0
  92. data/assets/templates/shipping_methods.html +35 -0
  93. metadata +227 -29
  94. data/README.md.orig +0 -118
  95. data/_includes/contact.html.orig +0 -55
  96. data/_includes/navbar.html.orig +0 -44
  97. 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,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>
@@ -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>
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
- }