estilo categorias, correcion navbar

This commit is contained in:
jp.dev 2020-11-23 16:46:10 -03:00
parent d0baa42cf6
commit 8eb869b958
3 changed files with 14 additions and 18 deletions

View File

@ -37,16 +37,16 @@
<li class="nav-item {% if request.path == '/' %}active{% endif %} px-lg-4"> <li class="nav-item {% if request.path == '/' %}active{% endif %} px-lg-4">
<a class="nav-link text-uppercase text-expanded" href="{% url 'Inicio' %}">Inicio</a> <a class="nav-link text-uppercase text-expanded" href="{% url 'Inicio' %}">Inicio</a>
</li> </li>
<li class="nav-item {% if request.path == '/servicios' %}active{% endif %} px-lg-4"> <li class="nav-item {% if request.path == '/servicios/' %}active{% endif %} px-lg-4">
<a class="nav-link text-uppercase text-expanded" href="{% url 'Servicios' %}">Servicios</a> <a class="nav-link text-uppercase text-expanded" href="{% url 'Servicios' %}">Servicios</a>
</li> </li>
<li class="nav-item {% if request.path == '/tienda' %}active{% endif %} px-lg-4"> <li class="nav-item {% if request.path == '/tienda/' %}active{% endif %} px-lg-4">
<a class="nav-link text-uppercase text-expanded" href="{% url 'Tienda' %}">Tienda</a> <a class="nav-link text-uppercase text-expanded" href="{% url 'Tienda' %}">Tienda</a>
</li> </li>
<li class="nav-item {% if request.path == '/contacto' %}active{% endif %} px-lg-4"> <li class="nav-item {% if request.path == '/contacto/' %}active{% endif %} px-lg-4">
<a class="nav-link text-uppercase text-expanded" href="{% url 'Contacto' %}">Contacto</a> <a class="nav-link text-uppercase text-expanded" href="{% url 'Contacto' %}">Contacto</a>
</li> </li>
<li class="nav-item {% if request.path == '/blog' %}active{% endif %} px-lg-4"> <li class="nav-item {% if request.path|slice:':6' == '/blog/' %}active{% endif %} px-lg-4">
<a class="nav-link text-uppercase text-expanded" href="{% url 'Blog' %}">Blog</a> <a class="nav-link text-uppercase text-expanded" href="{% url 'Blog' %}">Blog</a>
</li> </li>

View File

@ -28,18 +28,16 @@
{% endfor %} {% endfor %}
<section> <section>
<div style="width:60%; background-color:Tomato; margin:auto; text-align:center;"> <div style="width:60%; margin:auto; text-align:center;">
Categorías : <p style="color: white;">Categorías :
{% for entrada in entradas %} {% for entrada in entradas %}
{% for categoria in entrada.categorias.all %} {% for categoria in entrada.categorias.all %}
{{categoria.nombre}} &nbsp;&nbsp;&nbsp; <a href="{% url 'categoria' categoria.id %}" class="link">{{categoria.nombre}}</a>&nbsp;&nbsp;&nbsp;
{% endfor %} {% endfor %}
{% endfor %}
{% endfor %} </p>
</div> </div>
</section> </section>

View File

@ -28,18 +28,16 @@
{% endfor %} {% endfor %}
<section> <section>
<div style="width:60%; background-color:Tomato; margin:auto; text-align:center;"> <div style="width:60%; margin:auto; text-align:center;">
Categorías : <p style="color: white;">Categorías :
{% for entrada in entradas %} {% for entrada in entradas %}
{% for categoria in entrada.categorias.all %} {% for categoria in entrada.categorias.all %}
{{categoria.nombre}} &nbsp;&nbsp;&nbsp; <a href="{% url 'categoria' categoria.id %}" class="link">{{categoria.nombre}}</a>&nbsp;&nbsp;&nbsp;
{% endfor %} {% endfor %}
{% endfor %}
{% endfor %} </p>
</div> </div>
</section> </section>