estilo categorias, correcion navbar
This commit is contained in:
parent
d0baa42cf6
commit
8eb869b958
@ -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>
|
||||
|
||||
|
@ -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}}
|
||||
<a href="{% url 'categoria' categoria.id %}" class="link">{{categoria.nombre}}</a>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
@ -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}}
|
||||
<a href="{% url 'categoria' categoria.id %}" class="link">{{categoria.nombre}}</a>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user