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">
|
<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>
|
||||||
|
|
||||||
|
@ -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}}
|
<a href="{% url 'categoria' categoria.id %}" class="link">{{categoria.nombre}}</a>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -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}}
|
<a href="{% url 'categoria' categoria.id %}" class="link">{{categoria.nombre}}</a>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user