{%- comment -%} Un botón con link. Utiliza la etiqueta `` @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 -%}