{% assign books = site.books | sample:2 %} {% for book in books limit:1 %}

<h1 class=“book”>{{ book.title }}</h1>

<div class=“obra-dia sombra”>

<div class="ficha-container" style="">
    <div class="ficha-title">
        <h2>
            {{ book.title }}
                <a class="morel a2a_dd" href="https://www.addtoany.com/share">
                <i class="fa fa-share-alt" style="padding: 0em 0em;">
                    <script async src="https://static.addtoany.com/menu/page.js"></script>
                </i></a><br>
        </h2>
    </div>
    <div class="ficha-extract" style="">
        <p class="morel">
            {{ book.content }}
        </p>
    </div>
    <div class="ficha-metadata">
        Escrita por <!-- convertir en un include: { % include author_1 %} ---> {% for author in site.authors %}{% if author.title == book.author %}<a href="{{ author.url | relative_url }}" class="morel">{% endif %}{% endfor %}{{ book.author }}</a><!-- convertir en un include: { % include author_2 %} --->{% if book.author2 %} {% for author in site.authors %}{% if author.title == book.author2 %}<a href="{{ author.url | relative_url }}" class="morel">{% endif %}{% endfor %} + {{ book.author2 }}</a>{% endif %}<!-- convertir en un include: { % include author_3 %} --->{% if book.author3 %}{% for author in site.authors %}{% if author.title == book.author3 %}<a href="{{ author.url | relative_url }}" class="morel">{% endif %}{% endfor %} + {{ book.author3 }}</a>{% endif %} // Publicada en <!-- convertir en un include: { % include ciudad %} --->{% if book.ciudad %}{% for city in site.cities %}{% if city.title == book.ciudad %}<a href="{{ city.url | relative_url }}" class="morel">{% endif %}{% endfor %}{{ book.ciudad }}{% endif %}</a> por <!-- convertir en un include: { % include editorial %} ---> {% for publisher in site.publishers %}{% if publisher.title == book.editorial %}<a href="{{ publisher.url | relative_url }}" class="morel">{% endif %}{% endfor %}{{ book.editorial }}</a> en {{ book.edicion }}{% if book.year %} // Publicada por primera vez en {{ book.year }}{% endif %} // <!-- convertir en un include: { % include repositorio %} ---> Recuperada por {% for repository in site.repositories %}{% if repository.title == book.repositorio %}<a href="{{ repository.url | relative_url }}" class="morel">{% endif %}{% endfor %}{{ book.repositorio }}</a>{% if book.repositorio2 %} + {% for repository in site.repositories %}{% if repository.title == book.repositorio2 %}<a href="{{ repository.url | relative_url }}" class="morel">{% endif %}{% endfor %}{{ book.repositorio2 }}</a>{% endif %}
    </div>
</div>
<div class="portada" style="">
    <div class="img-frame">
        <a href="{{ book.descarga }}" target="_blank" download><img src="{{ BASE_PATH }}/assets/img/{{ book.img }}" class="responsive" alt="Viaje a las regiones equinocciales del Nuevo Continente II | Alejandro de Humboldt"></a>
        <div class="actions-h">
            <!-- AddToAny BEGIN -->
            <a class="morel" href="{{ book.descarga }}" target="_blank" download><i class="fa fa-file-pdf-o"></i></a>
            {% if page.epub %}
            <a href="{{page.epub}}"><i class="fa-fa-tablet" style="padding: 1em 0em"></i></a>
            {% endif %}
            {% if page.biblioteca %}
            <a href="{{page.biblioteca}}"><i class="fa fa-book" style="padding: 1em 0em"></i></a>
            {% endif %}
        </div>
    </div>
</div>
<div class="actions-v">
    <a class="morel" href="{{ page.descarga }}" target="_blank" download>
        <i class="fa fa-file-pdf-o" style="padding: 1em 0em"></i></a><br>
    {% if page.epub %}
    <a href="{{page.epub}}"><i class="fa-fa-tablet" style="padding: 1em 0em"></i></a>
    {% endif %}
    {% if page.biblioteca %}
    <a href="{{page.biblioteca}}"><i class="fa fa-book" style="padding: 1em 0em"></i></a>
    {% endif %}
</div>

</div> {% endfor %}