Sha256: 7fdb22e015361663c6d79db849c470568a5efe2c1e7251b40485927176f80374
Contents?: true
Size: 1.76 KB
Versions: 4
Compression:
Stored size: 1.76 KB
Contents
<article id="editorial" class="col h-card" itemscope itemtype="https://schema.org/Organization"> <div class="media"> <img itemprop="logo" class="u-photo" src="{{ include.editorial.logo.path | thumbnail: 100 }}" alt="{{ include.editorial.logo.description }}" /> <div class="media-body"> <h1 class="p-name" itemprop="name">{{ include.editorial.title }}</h1> <p class="lead">{{ include.editorial.description }}</p> </div> </div> <div itemprop="location" itemscope itemtype="https://schema.org/PostalAddress"> {%- if include.editorial.address -%} <p class="p-street-address" itemprop="streetAddress">{{ include.editorial.address }}</p> {%- endif -%} {%- if include.editorial.locality -%} <p class="p-locality" itemprop="addressLocality">{{ include.editorial.locality }}</p> {%- endif -%} {%- if include.editorial.country -%} <p class="p-country-name" itemprop="addressCountry">{{ include.editorial.country }}</p> {%- endif -%} </div> <ul> {%- for social in include.editorial.social_networks -%} <li><a rel="me" href="{{ social }}"> {% comment %} Obtenemos la URL de la red social, eliminamos la www, obtenemos el tercer elemento separando por / y el primero separando por . https://www.twitter.com/SuttyWeb https://twitter.com/SuttyWeb twitter.com twitter Twitter {% endcomment %} {% assign s = social | remove: 'www.' | split: '/' %} {{ s[2] | split: '.' | first | capitalize }} </a></li> {%- endfor -%} </ul> {%- if include.content -%} <div class="e-content" itemprop="articleBody"> {{ include.editorial.content }} </div> {%- endif -%} </article>
Version data entries
4 entries across 4 versions & 1 rubygems