diff --git a/_data/en.yml b/_data/en.yml index a5afbe5..13cdd10 100644 --- a/_data/en.yml +++ b/_data/en.yml @@ -219,3 +219,5 @@ sort: score/desc: "Most relevant first" previous: "Previous" next: "Next" +search: + placeholder: "Search" diff --git a/_data/es.yml b/_data/es.yml index 80959ec..f8d1a65 100644 --- a/_data/es.yml +++ b/_data/es.yml @@ -197,3 +197,5 @@ lorem_ipsum: quis mauris semper feugiat eu id arcu. Quisque quis vehicula ante. Ut hendrerit urna egestas tempor semper. Nam viverra quam turpis. +search: + placeholder: "Buscar" diff --git a/_data/fixtures/card_search.yml b/_data/fixtures/card_search.yml index e83fc37..0953615 100644 --- a/_data/fixtures/card_search.yml +++ b/_data/fixtures/card_search.yml @@ -1,5 +1,6 @@ --- tags: - - Topic-community - - Status-pending - \ No newline at end of file + - title: Topic-community + url: "" + - title: Status-pending + url: "" diff --git a/_data/fixtures/post.yml b/_data/fixtures/post.yml index 40a061d..46e80b2 100644 --- a/_data/fixtures/post.yml +++ b/_data/fixtures/post.yml @@ -3,9 +3,11 @@ items: - title: "Title post" created_at: "2026-05-31 14:54:26.236392904 -06:00" image: - path: 'public/8k2m9p2w1rqw6mza53x9plkq98/floral-compaq.jpg' - description: 'floral compaq image' - content: 'Celebrating the mid-point between solar solstices with 2000+ words of updates on the (many) happenings in our corner of radical technology co-operativism.' + path: "public/8k2m9p2w1rqw6mza53x9plkq98/floral-compaq.jpg" + description: "floral compaq image" + content: "Celebrating the mid-point between solar solstices with 2000+ words of updates on the (many) happenings in our corner of radical technology co-operativism." tags: - - Topic-community - - Status-pending \ No newline at end of file + - title: Topic-community + url: "" + - title: Status-pending + url: "" diff --git a/_data/layouts/document.yml b/_data/layouts/document.yml index fdd6325..d71bbea 100644 --- a/_data/layouts/document.yml +++ b/_data/layouts/document.yml @@ -57,10 +57,10 @@ categories: en: "Tool" article: en: "Article" -topic: +topics: type: "new_predefined_array" label: - en: "Topic" + en: "Topics" help: en: "Select Topic" values: diff --git a/_data/layouts/post.yml b/_data/layouts/post.yml index b02957f..8cf333c 100644 --- a/_data/layouts/post.yml +++ b/_data/layouts/post.yml @@ -37,10 +37,10 @@ image: en: "Main image description" help: en: "Describe the image for accesibility purposes and for indexation in search engines" -topic: +topics: type: "new_predefined_array" label: - en: "Topic" + en: "Topics" help: en: "Select Topic" values: diff --git a/_en/2026-06-30-tech-stack.markdown b/_en/2026-06-30-tech-stack.markdown index 8bd28e3..4e703c3 100644 --- a/_en/2026-06-30-tech-stack.markdown +++ b/_en/2026-06-30-tech-stack.markdown @@ -5,7 +5,7 @@ image: description: '' path: categories: [] -topic: +topics: - tech status: pending author: [] diff --git a/_en/2026-06-30-the-community.markdown b/_en/2026-06-30-the-community.markdown index e675629..8710f16 100644 --- a/_en/2026-06-30-the-community.markdown +++ b/_en/2026-06-30-the-community.markdown @@ -5,7 +5,7 @@ image: description: '' path: categories: [] -topic: +topics: - community status: in_progress author: [] diff --git a/_includes/card_search.html b/_includes/card_search.html index 8f186ec..c1f984b 100644 --- a/_includes/card_search.html +++ b/_includes/card_search.html @@ -3,25 +3,37 @@ title: type: 'string' description: type: 'string' + default: '' url: type: 'string' tags: type: 'array' default: [] +categories: + type: 'array' + default: [] +topics: + type: 'array' + default: [] --- - -
{{- title -}}
-{{- description -}}
- {% for tag in tags %} - {{- tag -}} - {% endfor %} +{{- description -}}
++ {{- yield -}} +
diff --git a/_includes/forms/long_text.html b/_includes/forms/long_text.html index 067e0fc..f1537f4 100644 --- a/_includes/forms/long_text.html +++ b/_includes/forms/long_text.html @@ -19,6 +19,12 @@ value: attributes: type: 'string' default: '' +maxlength: + type: 'integer' + default: 2048 +minlength: + type: 'integer' + default: 0 --- diff --git a/_includes/forms/number.html b/_includes/forms/number.html index 3a8959e..5503f81 100644 --- a/_includes/forms/number.html +++ b/_includes/forms/number.html @@ -35,4 +35,4 @@ attributes: {%- assign attributes = attributes | append: ' ' | append: number_attributes -%} -{% render 'forms/text.html', id:, class:, placeholder:, required:, autofocus:, name:, value:, placeholder:, minlength:, maxlength:, attributes: %} +{% render 'forms/text.html', id:, class:, placeholder:, required:, autofocus:, name:, value:, minlength:, maxlength:, attributes: %} diff --git a/_includes/forms/radio_group.html b/_includes/forms/radio_group.html index 8b75ca7..69cf80c 100644 --- a/_includes/forms/radio_group.html +++ b/_includes/forms/radio_group.html @@ -4,6 +4,9 @@ id: name: type: 'string' default: '' +value: + type: 'string' + default: '' required: type: 'bool' default: false @@ -13,17 +16,23 @@ attributes: class: type: 'string' default: 'form-select' +placeholder: + type: 'string' + default: '' items: type: 'array' --- {% assign base_id = id | append: '_' %} {% assign name = name | default: id | append: '[]' %} +{% assign checked = value %} +{% assign general_attributes = attributes %} {% for input_item in items %} {% capture uuid %}{% uuid %}{% endcapture %} {% assign value = input_item | try: 'value' | default: input_item %} {% assign item = input_item | try: 'item' | default: value %} {% assign id = base_id | append: uuid %} + {% assign attributes = checked | equals: value | ternary: 'checked ', '' | append: general_attributes %} {% render 'forms/radio.html', name:, id:, value:, item:, required:, attributes: %} {% endfor %} diff --git a/_includes/forms/select.html b/_includes/forms/select.html index f7c36a7..dc12d31 100644 --- a/_includes/forms/select.html +++ b/_includes/forms/select.html @@ -4,6 +4,9 @@ id: name: type: 'string' default: '' +value: + type: 'string' + default: '' required: type: 'bool' default: false @@ -13,9 +16,13 @@ attributes: class: type: 'string' default: 'form-select' +placeholder: + type: 'string' + default: '' items: type: 'array' --- +{% assign selected = value %}