Sha256: e6d4ec2f23633c4af0aa4bfc906f53f009096a9616c4268a86d761511747ac3f
Contents?: true
Size: 763 Bytes
Versions: 8
Compression:
Stored size: 763 Bytes
Contents
{%- comment -%} Un botón con link. Utiliza la etiqueta `<a>` @param :href [String] La URL destino @param :class [String] Las clases del componente aparte de btn (colores, tipografía, etc) @param :content [String,HTML] El contenido del botón @param :extra [HTML] Atributos extra {%- endcomment -%} {%- assign extra = include.href | start_with: "http://" | value_if: 'rel="noopener" target="_blank"' -%} {%- assign extra = include.href | start_with: "https://" | value_if: 'rel="noopener" target="_blank"' -%} {%- assign extra = include.href | component_escape | prepend: 'href="' | append: '" ' | append: extra | append: " " | append: include.extra -%} {%- include buttons/generic.html element="a" class=include.class content=include.content extra=extra -%}
Version data entries
8 entries across 8 versions & 1 rubygems