Sha256: 764538978baf252ae90b922991322f7a570bf05eec8df3c116aaf966616cc55b

Contents?: true

Size: 834 Bytes

Versions: 40

Compression:

Stored size: 834 Bytes

Contents

{%- assign name = include.field[0] -%}
{%- assign id = include.field[1].id | default: name -%}
{%- assign label = include.field[1]['path'].label[site.locale] -%}
{%- assign help = include.field[1]['path'].help[site.locale] -%}

<label>{{ label }}</label>

<div class="custom-file">
  <input
    {% if help %}
      aria-describedby="help-{{ id }}"
    {% endif %}
    {% if include.field[1].required %}
      required
    {% endif %}
    type="{{ include.field[1].type }}"
    name="{{ name }}[path]"
    id="{{ id }}_path"
    accept="image/*"
    class="custom-file-input" />

  <label for="{{ id }}_path" class="custom-file-label">
    {{ label }}
    {% if include.field[1].required %}*{% endif %}
  </label>

  {%- if help -%}
    <small id="help-{{ id }}" class="form-text">
      {{ help }}
    </small>
  {%- endif -%}
</div>

Version data entries

40 entries across 40 versions & 6 rubygems

Version Path
observatorio-jekyll-theme-0.1.4 _includes/image.html
observatorio-jekyll-theme-0.1.3 _includes/image.html
observatorio-jekyll-theme-0.1.2 _includes/image.html
recursero-jekyll-theme-0.2.0 _includes/image.html
radios-comunitarias-jekyll-theme-0.1.5 _includes/image.html
editorial-autogestiva-jekyll-theme-0.3.4 _includes/image.html
recursero-jekyll-theme-0.1.3 _includes/image.html
editorial-autogestiva-jekyll-theme-0.3.3 _includes/image.html
editorial-autogestiva-jekyll-theme-0.3.2 _includes/image.html
editorial-autogestiva-jekyll-theme-0.3.1 _includes/image.html
editorial-autogestiva-jekyll-theme-0.3.0 _includes/image.html
radios-comunitarias-jekyll-theme-0.1.4 _includes/image.html
recursero-jekyll-theme-0.1.2 _includes/image.html
recursero-jekyll-theme-0.1.1 _includes/image.html
recursero-jekyll-theme-0.1.0 _includes/image.html
radios-comunitarias-jekyll-theme-0.1.3 _includes/image.html
radios-comunitarias-jekyll-theme-0.1.1 _includes/image.html
radios-comunitarias-jekyll-theme-0.1.0 _includes/image.html
adhesiones-jekyll-theme-0.2.1 _includes/image.html
adhesiones-jekyll-theme-0.2.0 _includes/image.html