├── _config.yml ├── .editorconfig ├── _data └── comments │ ├── www_devschile_cl_ │ ├── entry1585892162512.json │ └── entry1585891648255.json │ ├── cleanqueen_cl_ │ └── entry1586134943579.json │ ├── outletdelcafe_cl_ │ └── entry1585920696755.json │ ├── www_instagram_com_frutos_secos_sobre_ruedas_ │ └── entry1587005965156.json │ ├── www_instagram_com_thepowerfoods │ └── entry1586719606387.json │ ├── www_instagram_com_soyvegechef_ │ └── entry1586896741229.json │ └── carnesproductor_cl_ │ └── entry1586811169621.json ├── assets ├── css │ └── comments.css └── js │ └── comments.js ├── _layouts └── default.html ├── staticman.yml └── README.md /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | -------------------------------------------------------------------------------- /_data/comments/www_devschile_cl_/entry1585892162512.json: -------------------------------------------------------------------------------- 1 | {"_id":"01680220-756d-11ea-9ebf-45fe7f55ca26","name":"Otro comentario","email":"bdbd02d6adad492ca6a88bf9ca1cb029","message":"Otro comentario","date":1585892162} -------------------------------------------------------------------------------- /_data/comments/www_devschile_cl_/entry1585891648255.json: -------------------------------------------------------------------------------- 1 | {"_id":"cee38870-756b-11ea-9ebf-45fe7f55ca26","name":"Huemul","email":"bdbd02d6adad492ca6a88bf9ca1cb029","message":"La mejor comunidad de diseñadores y desarrolladores web","date":1585891648} -------------------------------------------------------------------------------- /_data/comments/cleanqueen_cl_/entry1586134943579.json: -------------------------------------------------------------------------------- 1 | {"_id":"462d6990-77a2-11ea-8fa6-a1e79748336f","name":"Guillermo","email":"112ff5022353facc69304a9b009bc39b","commune":"Santiago Centro","message":"Pedí un día viernes y llegó todo sin problemas el sábado por la tarde.","date":1586134943} -------------------------------------------------------------------------------- /_data/comments/outletdelcafe_cl_/entry1585920696755.json: -------------------------------------------------------------------------------- 1 | {"_id":"711e9e20-75af-11ea-a61f-8bf3e57b50af","name":"Héctor","email":"bbd257637393bcbc390db713d3ad31bb","commune":"Providencia","message":"Llegó el pedido en 2 días, pedí el café de Etiopía que es muy rico. Volvería a comprar ahí.","date":1585920696} -------------------------------------------------------------------------------- /_data/comments/www_instagram_com_frutos_secos_sobre_ruedas_/entry1587005965156.json: -------------------------------------------------------------------------------- 1 | {"_id":"478232a0-7f8e-11ea-8dd1-333a10cf7100","name":"Carlos Vallejos","email":"96bcee84d11fc659a39556ae63a7180a","commune":"Lo Prado","message":"Buena comunicacion, excelente calidad de servicio, buen empaque, precios acordes.","date":1587005965} -------------------------------------------------------------------------------- /_data/comments/www_instagram_com_thepowerfoods/entry1586719606387.json: -------------------------------------------------------------------------------- 1 | {"_id":"8c5d8de0-7cf3-11ea-b973-f9732219b9c8","name":"Carlos Vallejos","email":"96bcee84d11fc659a39556ae63a7180a","commune":"Lo Prado","message":"Compré el viernes 10 y llegó el domingo 12, buen servicio, gran variedad de productos y precios competitivos","date":1586719606} -------------------------------------------------------------------------------- /_data/comments/www_instagram_com_soyvegechef_/entry1586896741229.json: -------------------------------------------------------------------------------- 1 | {"_id":"f8f8a7d0-7e8f-11ea-9c04-af9b89ced534","name":"Carlos Vallejos","email":"96bcee84d11fc659a39556ae63a7180a","commune":"Lo Prado","message":"Pedí tofu y queso vegano, llegó bien, con las medidas pertinentes de salubridad. Tambien tienen legumbres entre otras cosas y despacho gratuito","date":1586896741} -------------------------------------------------------------------------------- /_data/comments/carnesproductor_cl_/entry1586811169621.json: -------------------------------------------------------------------------------- 1 | {"_id":"bc476c30-7dc8-11ea-b18c-09ef47278a86","name":"Guillermo","email":"112ff5022353facc69304a9b009bc39b","commune":"Santiago Centro","message":"Pedí el viernes y me llegó el lunes sin problemas. El único detalle es que todo llega congelado, incluyendo productos que no dicen congelado en el título.","date":1586811169} -------------------------------------------------------------------------------- /assets/css/comments.css: -------------------------------------------------------------------------------- 1 | .comment-link { 2 | display: inline-block; 3 | margin-left: 5px; 4 | padding: 3px; 5 | background: #fff; 6 | border: 1px solid #ccc; 7 | font-size: 10px; 8 | position: relative; 9 | cursor: pointer; 10 | } 11 | 12 | .comments-list-backdrop { 13 | position: fixed; 14 | top: 0; 15 | left: 0; 16 | right: 0; 17 | bottom: 0; 18 | background: rgba(0,0,0,.3); 19 | } 20 | 21 | .comments-modal { 22 | position: fixed; 23 | top: 50%; 24 | left: 50%; 25 | transform: translate(-50%, -50%); 26 | width: 100%; 27 | overflow: auto; 28 | max-width: 600px; 29 | max-height: 600px; 30 | background: #fff; 31 | border: 1px solid #ccc; 32 | border-radius: 10px; 33 | z-index: 1; 34 | } 35 | 36 | .comments-modal-close { 37 | position: absolute; 38 | top: 10px; 39 | right: 10px; 40 | } 41 | 42 | .comments-list { 43 | padding: 10px; 44 | list-style: none; 45 | margin: 0; 46 | } 47 | 48 | .comment-list-item { 49 | border-bottom: 1px solid #ccc; 50 | margin-bottom: 10px; 51 | } 52 | 53 | .comment-form { 54 | margin: 0 auto 10px; 55 | width: 100%; 56 | max-width: 300px; 57 | } 58 | 59 | .comment-form-input { 60 | display: block; 61 | width: 100%; 62 | margin-bottom: 10px; 63 | } -------------------------------------------------------------------------------- /_layouts/default.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {% if site.google_analytics %} 5 | 6 | 12 | {% endif %} 13 | 14 | 15 | 16 | 17 | 20 | {% seo %} 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | Skip to the content. 29 | 30 | 41 | 42 |
43 |
44 | {{ content }} 45 |
46 | 52 |
53 | 54 | -------------------------------------------------------------------------------- /staticman.yml: -------------------------------------------------------------------------------- 1 | # Name of the property. You can have multiple properties with completely 2 | # different config blocks for different sections of your site. 3 | # For example, you can have one property to handle comment submission and 4 | # another one to handle posts. 5 | comments: 6 | # (*) REQUIRED 7 | # 8 | # Names of the fields the form is allowed to submit. If a field that is 9 | # not here is part of the request, an error will be thrown. 10 | allowedFields: ["name", "email", "message", "commune"] 11 | 12 | # (*) REQUIRED 13 | # 14 | # Name of the branch being used. Must match the one sent in the URL of the 15 | # request. 16 | branch: "master" 17 | 18 | # Text to use as the commit message or pull request title. Accepts placeholders. 19 | commitMessage: "Agrega nuevo comentario" 20 | 21 | # (*) REQUIRED 22 | # 23 | # Destination path (filename) for the data files. Accepts placeholders. 24 | filename: "entry{@timestamp}" 25 | 26 | # The format of the generated data files. Accepted values are "json", "yaml" 27 | # or "frontmatter" 28 | format: "json" 29 | 30 | # List of fields to be populated automatically by Staticman and included in 31 | # the data file. Keys are the name of the field. The value can be an object 32 | # with a `type` property, which configures the generated field, or any value 33 | # to be used directly (e.g. a string, number or array) 34 | generatedFields: 35 | date: 36 | type: date 37 | options: 38 | format: "timestamp-seconds" 39 | 40 | # Whether entries need to be appproved before they are published to the main 41 | # branch. If set to `true`, a pull request will be created for your approval. 42 | # Otherwise, entries will be published to the main branch automatically. 43 | moderation: true 44 | 45 | # Name of the site. Used in notification emails. 46 | name: "devsChile Cuarentena" 47 | 48 | # Notification settings. When enabled, users can choose to receive notifications 49 | # via email when someone adds a reply or a new comment. This requires an account 50 | # with Mailgun, which you can get for free at http://mailgun.com. 51 | #notifications: 52 | # Enable notifications 53 | #enabled: true 54 | 55 | # (!) ENCRYPTED 56 | # 57 | # Mailgun API key 58 | #apiKey: "1q2w3e4r" 59 | 60 | # (!) ENCRYPTED 61 | # 62 | # Mailgun domain (encrypted) 63 | #domain: "4r3e2w1q" 64 | 65 | # (*) REQUIRED 66 | # 67 | # Destination path (directory) for the data files. Accepts placeholders. 68 | path: "_data/comments/{options.slug}" 69 | 70 | # Names of required fields. If any of these isn't in the request or is empty, 71 | # an error will be thrown. 72 | requiredFields: ["name", "email", "message"] 73 | 74 | # List of transformations to apply to any of the fields supplied. Keys are 75 | # the name of the field and values are possible transformation types. 76 | transforms: 77 | email: md5 78 | -------------------------------------------------------------------------------- /assets/js/comments.js: -------------------------------------------------------------------------------- 1 | document.addEventListener('DOMContentLoaded', () => { 2 | const CommentForm = { 3 | template: ` 4 |
5 | 6 | 7 | 8 |