Jekyll no sabe encontrar links simbólicos

Así que invertimos la relación!
This commit is contained in:
f 2020-06-09 16:37:41 -03:00
parent a5d0a2a0be
commit ae624fde2b
24 changed files with 160 additions and 160 deletions

View file

@ -1 +0,0 @@
form/boolean.html

30
_includes/boolean.html Normal file
View file

@ -0,0 +1,30 @@
{%- assign name = include.field[0] -%}
{%- assign id = include.field[1].id | default: name -%}
{%- assign label = include.field[1].label[site.locale] -%}
{%- assign help = include.field[1].help[site.locale] -%}
{%- assign autocomplete = include.field[1].autocomplete -%}
<div class="form-check text-left">
<input
{% if help %}
aria-describedby="help-{{ id }}"
{% endif %}
{% if include.field[1].required %}
required
{% endif %}
type="checkbox"
name="{{ name }}"
id="{{ id }}"
{% if autocomplete %}
autocomplete="{{ autocomplete }}"
{% endif %}
class="form-check-input" />
<label class="form-check-label" for="{{ id }}">{{ label }}</label>
{%- if help -%}
<small id="help-{{ id }}" class="form-text">
{{ help }}
</small>
{%- endif -%}
</div>

View file

@ -1 +0,0 @@
form/email.html

1
_includes/email.html Normal file
View file

@ -0,0 +1 @@
{% include input.html field=field %}

View file

@ -1,30 +0,0 @@
{%- assign name = include.field[0] -%}
{%- assign id = include.field[1].id | default: name -%}
{%- assign label = include.field[1].label[site.locale] -%}
{%- assign help = include.field[1].help[site.locale] -%}
{%- assign autocomplete = include.field[1].autocomplete -%}
<div class="form-check text-left">
<input
{% if help %}
aria-describedby="help-{{ id }}"
{% endif %}
{% if include.field[1].required %}
required
{% endif %}
type="checkbox"
name="{{ name }}"
id="{{ id }}"
{% if autocomplete %}
autocomplete="{{ autocomplete }}"
{% endif %}
class="form-check-input" />
<label class="form-check-label" for="{{ id }}">{{ label }}</label>
{%- if help -%}
<small id="help-{{ id }}" class="form-text">
{{ help }}
</small>
{%- endif -%}
</div>

1
_includes/form/boolean.html Symbolic link
View file

@ -0,0 +1 @@
../boolean.html

View file

@ -1 +0,0 @@
{% include input.html field=field %}

1
_includes/form/email.html Symbolic link
View file

@ -0,0 +1 @@
../email.html

View file

@ -1,5 +0,0 @@
{%- assign name = include.field[0] -%}
{%- assign id = include.field[1].id | default: name -%}
{%- assign value = include.field[1].value -%}
<input type="hidden" value="{{ value }}" name="{{ name }}" id="{{ id }}" />

1
_includes/form/hidden.html Symbolic link
View file

@ -0,0 +1 @@
../hidden.html

View file

@ -1,33 +0,0 @@
{%- assign name = include.field[0] -%}
{%- assign id = include.field[1].id | default: name -%}
{%- assign label = include.field[1].label[site.locale] -%}
{%- assign help = include.field[1].help[site.locale] -%}
{%- assign autocomplete = include.field[1].autocomplete -%}
<div class="form-group">
<label for="{{ id }}">
{{ label }}
{% if include.field[1].required %}*{% endif %}
</label>
<input
{% if help %}
aria-describedby="help-{{ id }}"
{% endif %}
{% if include.field[1].required %}
required
{% endif %}
type="{{ include.field[1].type }}"
name="{{ name }}"
id="{{ id }}"
{% if autocomplete %}
autocomplete="{{ autocomplete }}"
{% endif %}
class="form-control" />
{%- if help -%}
<small id="help-{{ id }}" class="form-text">
{{ help }}
</small>
{%- endif -%}
</div>

1
_includes/form/input.html Symbolic link
View file

@ -0,0 +1 @@
../input.html

View file

@ -1 +0,0 @@
{% include input.html field=field %}

1
_includes/form/number.html Symbolic link
View file

@ -0,0 +1 @@
../number.html

View file

@ -1,39 +0,0 @@
{%- assign name = include.field[0] -%}
{%- assign id = include.field[1].id | default: name -%}
{%- assign label = include.field[1].label[site.locale] -%}
{%- assign help = include.field[1].help[site.locale] -%}
{%- assign autocomplete = include.field[1].autocomplete -%}
<div class="form-group">
<label for="{{ id }}">
{{ label }}
{% if include.field[1].required %}*{% endif %}
</label>
<select
{% if help %}
aria-describedby="help-{{ id }}"
{% endif %}
{% if include.field[1].required %}
required
{% endif %}
name="{{ name }}"
id="{{ id }}"
{% if autocomplete %}
autocomplete="{{ autocomplete }}"
{% endif %}
class="form-control">
<option value="" selected></option>
{%- for option in include.field[1].values -%}
<option value="{{ option }}">{{ option }}</option>
{%- endfor -%}
</select>
{%- if help -%}
<small id="help-{{ id }}" class="form-text">
{{ help }}
</small>
{%- endif -%}
</div>

View file

@ -0,0 +1 @@
../predefined_array.html

View file

@ -1 +0,0 @@
<h2 id="{{ include.field[0] }}">{{ include.field[1].title }}</h2>

1
_includes/form/section.html Symbolic link
View file

@ -0,0 +1 @@
../section.html

View file

@ -1 +0,0 @@
<hr/>

View file

@ -0,0 +1 @@
../separator.html

View file

@ -1,3 +0,0 @@
{% assign f = field %}
{% assign f.type = 'text' %}
{% include input.html field=f %}

1
_includes/form/string.html Symbolic link
View file

@ -0,0 +1 @@
../string.html

View file

@ -1 +0,0 @@
<input type="submit" class="btn btn-success" value="{{ include.field[1].label[site.locale] }}" />

1
_includes/form/submit.html Symbolic link
View file

@ -0,0 +1 @@
../submit.html

View file

@ -1,32 +0,0 @@
{%- assign name = include.field[0] -%}
{%- assign id = include.field[1].id | default: name -%}
{%- assign label = include.field[1].label[site.locale] -%}
{%- assign help = include.field[1].help[site.locale] -%}
{%- assign autocomplete = include.field[1].autocomplete -%}
<div class="form-group">
<label for="{{ id }}">
{% if include.field[1].required %}*{% endif %}
{{ label }}
</label>
<textarea
{% if help %}
aria-describedby="help-{{ id }}"
{% endif %}
{% if include.field[1].required %}
required
{% endif %}
name="{{ name }}"
id="{{ id }}"
{% if autocomplete %}
autocomplete="{{ autocomplete }}"
{% endif %}
class="form-control"></textarea>
{%- if .help -%}
<small id="help-{{ id }}" class="form-text">
{{ help }}
</small>
{%- endif -%}
</div>

1
_includes/form/text.html Symbolic link
View file

@ -0,0 +1 @@
../text.html

View file

@ -1 +0,0 @@
{% include input.html field=field %}

1
_includes/form/url.html Symbolic link
View file

@ -0,0 +1 @@
../url.html

View file

@ -1 +0,0 @@
form/hidden.html

5
_includes/hidden.html Normal file
View file

@ -0,0 +1,5 @@
{%- assign name = include.field[0] -%}
{%- assign id = include.field[1].id | default: name -%}
{%- assign value = include.field[1].value -%}
<input type="hidden" value="{{ value }}" name="{{ name }}" id="{{ id }}" />

View file

@ -1 +0,0 @@
form/input.html

33
_includes/input.html Normal file
View file

@ -0,0 +1,33 @@
{%- assign name = include.field[0] -%}
{%- assign id = include.field[1].id | default: name -%}
{%- assign label = include.field[1].label[site.locale] -%}
{%- assign help = include.field[1].help[site.locale] -%}
{%- assign autocomplete = include.field[1].autocomplete -%}
<div class="form-group">
<label for="{{ id }}">
{{ label }}
{% if include.field[1].required %}*{% endif %}
</label>
<input
{% if help %}
aria-describedby="help-{{ id }}"
{% endif %}
{% if include.field[1].required %}
required
{% endif %}
type="{{ include.field[1].type }}"
name="{{ name }}"
id="{{ id }}"
{% if autocomplete %}
autocomplete="{{ autocomplete }}"
{% endif %}
class="form-control" />
{%- if help -%}
<small id="help-{{ id }}" class="form-text">
{{ help }}
</small>
{%- endif -%}
</div>

View file

@ -1 +0,0 @@
form/number.html

1
_includes/number.html Normal file
View file

@ -0,0 +1 @@
{% include input.html field=field %}

View file

@ -1 +0,0 @@
form/predefined_array.html

View file

@ -0,0 +1,39 @@
{%- assign name = include.field[0] -%}
{%- assign id = include.field[1].id | default: name -%}
{%- assign label = include.field[1].label[site.locale] -%}
{%- assign help = include.field[1].help[site.locale] -%}
{%- assign autocomplete = include.field[1].autocomplete -%}
<div class="form-group">
<label for="{{ id }}">
{{ label }}
{% if include.field[1].required %}*{% endif %}
</label>
<select
{% if help %}
aria-describedby="help-{{ id }}"
{% endif %}
{% if include.field[1].required %}
required
{% endif %}
name="{{ name }}"
id="{{ id }}"
{% if autocomplete %}
autocomplete="{{ autocomplete }}"
{% endif %}
class="form-control">
<option value="" selected></option>
{%- for option in include.field[1].values -%}
<option value="{{ option }}">{{ option }}</option>
{%- endfor -%}
</select>
{%- if help -%}
<small id="help-{{ id }}" class="form-text">
{{ help }}
</small>
{%- endif -%}
</div>

View file

@ -1 +0,0 @@
form/section.html

1
_includes/section.html Normal file
View file

@ -0,0 +1 @@
<h2 id="{{ include.field[0] }}">{{ include.field[1].title }}</h2>

View file

@ -1 +0,0 @@
form/separator.html

1
_includes/separator.html Normal file
View file

@ -0,0 +1 @@
<hr/>

View file

@ -1 +0,0 @@
form/string.html

3
_includes/string.html Normal file
View file

@ -0,0 +1,3 @@
{% assign f = field %}
{% assign f.type = 'text' %}
{% include input.html field=f %}

View file

@ -1 +0,0 @@
form/submit.html

1
_includes/submit.html Normal file
View file

@ -0,0 +1 @@
<input type="submit" class="btn btn-success" value="{{ include.field[1].label[site.locale] }}" />

View file

@ -1 +0,0 @@
form/text.html

32
_includes/text.html Normal file
View file

@ -0,0 +1,32 @@
{%- assign name = include.field[0] -%}
{%- assign id = include.field[1].id | default: name -%}
{%- assign label = include.field[1].label[site.locale] -%}
{%- assign help = include.field[1].help[site.locale] -%}
{%- assign autocomplete = include.field[1].autocomplete -%}
<div class="form-group">
<label for="{{ id }}">
{% if include.field[1].required %}*{% endif %}
{{ label }}
</label>
<textarea
{% if help %}
aria-describedby="help-{{ id }}"
{% endif %}
{% if include.field[1].required %}
required
{% endif %}
name="{{ name }}"
id="{{ id }}"
{% if autocomplete %}
autocomplete="{{ autocomplete }}"
{% endif %}
class="form-control"></textarea>
{%- if .help -%}
<small id="help-{{ id }}" class="form-text">
{{ help }}
</small>
{%- endif -%}
</div>

View file

@ -1 +0,0 @@
form/url.html

1
_includes/url.html Normal file
View file

@ -0,0 +1 @@
{% include input.html field=field %}