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">
<a class="nav-link text-uppercase text-expanded" href="{% url 'Inicio' %}">Inicio</a>
</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>
</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>
</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>
</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>
</li>

View File

@ -28,18 +28,16 @@
{% endfor %}
<section>
<div style="width:60%; background-color:Tomato; margin:auto; text-align:center;">
Categorías :
<div style="width:60%; margin:auto; text-align:center;">
<p style="color: white;">Categorías :
{% for entrada in entradas %}
{% 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 %}
</p>
</div>
</section>

View File

@ -28,18 +28,16 @@
{% endfor %}
<section>
<div style="width:60%; background-color:Tomato; margin:auto; text-align:center;">
Categorías :
<div style="width:60%; margin:auto; text-align:center;">
<p style="color: white;">Categorías :
{% for entrada in entradas %}
{% 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 %}
</p>
</div>
</section>