Skip to content

Commit

Permalink
Establece un escabezado consistente en todas las paginas. (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablolirag authored Oct 20, 2023
1 parent f78af64 commit 1a243b7
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 129 deletions.
72 changes: 2 additions & 70 deletions pycltheme/templates/base-index.html
Original file line number Diff line number Diff line change
@@ -1,76 +1,8 @@
{% include 'headermeta.html' %}

<body id="index" class="home">
<header class="cabecera-index">
<div class="container h-100">
<!-- Barra de navegación -->
<nav class="navbar navbar-transparent navbar-expand-lg navbar-dark" id="custom-nav">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-center" id="navbarNavDropdown">
<ul class="navbar-nav">
{% for name, d in MENUELEMENTS.items() %}
{% if not d["children"] %}
<li class="nav-item">
<a class="nav-link titulo-bold" href="{{ SITEURL }}/{{ d["url"] }}">{{ d["title"] }}</a>
</li>
{% else %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle titulo-bold" href="{{ SITEURL }}/{{ d["url"] }}" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ d["title"] }}
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
{% for _, c in d["children"].items() %}
<a class="dropdown-item" href="{{ SITEURL }}/{{ c["url"] }}">{{ c["title"] }}</a>
{% endfor %}
</div>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</nav>

<div class="container">
<div class="row justify-content-md-center vauto">
<div class="d-none d-sm-block col-md-4 col-sm-4 text-center mt-3">
<img class="img-responsive p3" src="{{SITEURL}}/theme/images/pythonchile_logo.png" />
</div>
<div class="col-md-6 col-sm-8 col-xs-12 text-left mt-3 vauto">
<h3 class="lead">{{ SITESUBTITLE }}</h3>
<!-- Redes -->
<div class="pt-1 pb-1">
<div class="container-redes">
<div class="row justify-content-md-start">
{% for name, d in PLATAFORMAS.items() %}
<a href="{{ d["url"] }}">
<i class="fab {{ d["icon"] }} fa-2x fa-inverse iconos_plataformas"></i>
</a>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</header>

<!-- Plataformas -->
<div class="pt-3 pb-3 plataformas">
<div class="container">
<div class="row justify-content-center">
{% for name, d in REDES.items() %}
<div class="iconos_redes">
<a href="{{ d["url"] }}" target="_blank">
<i class="fab {{ d["icon"] }} fa-2x fa-inverse"></i>
</a>
</div>
{% endfor %}
</div>
</div>
</div>

{% include 'header.html' %}

<!-- Entradas Blog -->
{% block content %}
Expand Down
60 changes: 1 addition & 59 deletions pycltheme/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,65 +2,7 @@

<body id="index" class="home">

<header class="cabecera">
<div class="container h-100">

<!-- Barra de navegación -->
<nav class="navbar navbar-transparent navbar-expand-lg navbar-dark" id="custom-nav">
<a href="{{ SITEURL }}/index.html"><img class="d-none d-sm-block img-header" src="{{SITEURL}}/theme/images/pythonchile_logo.png" /></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-center" id="navbarNavDropdown">
<ul class="navbar-nav">

{% for name, d in MENUELEMENTS.items() %}
{% if not d["children"] %}
<li class="nav-item">
<a class="nav-link titulo-bold" href="{{ SITEURL }}/{{ d["url"] }}">{{ d["title"] }}</a>
</li>
{% else %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle titulo-bold" href="{{ SITEURL }}/{{ d["url"] }}" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ d["title"] }}
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
{% for _, c in d["children"].items() %}
<a class="dropdown-item" href="{{ SITEURL }}/{{ c["url"] }}">{{ c["title"] }}</a>
{% endfor %}
</div>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</nav>
</div>
</header>

<!-- Redes Sociales -->
<!--<div class="mt-5 pt-5 pb-5 redes-sociales">-->
<div class="plataformas">
<div class="container">
<div class="row justify-content-md-center">
{% for name, d in PLATAFORMAS.items() %}
<div class="col-auto"> <!---lg-8 col-md-10 mx-auto">-->
<a href="{{ d["url"] }}">
<i class="fab {{ d["icon"] }} fa-2x fa-inverse"></i>
</a>
</div>
{% endfor %}

{% for name, d in REDES.items() %}
<div class="col-auto"> <!---lg-8 col-md-10 mx-auto">-->
<a href="{{ d["url"] }}">
<i class="fab {{ d["icon"] }} fa-2x fa-inverse"></i>
</a>
</div>
{% endfor %}
</div>
</div>
</div>
{% include 'header.html' %}

<div class="pt-5 pb-5 blog-entries">
<div class="container">
Expand Down
74 changes: 74 additions & 0 deletions pycltheme/templates/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{% block header %}

<header class="cabecera-index">
<div class="container h-100">
<!-- Barra de navegación -->
<nav class="navbar navbar-transparent navbar-expand-lg navbar-dark" id="custom-nav">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-center" id="navbarNavDropdown">
<ul class="navbar-nav">
{% for name, d in MENUELEMENTS.items() %}
{% if not d["children"] %}
<li class="nav-item">
<a class="nav-link titulo-bold" href="{{ SITEURL }}/{{ d["url"] }}">{{ d["title"] }}</a>
</li>
{% else %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle titulo-bold" href="{{ SITEURL }}/{{ d["url"] }}" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ d["title"] }}
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
{% for _, c in d["children"].items() %}
<a class="dropdown-item" href="{{ SITEURL }}/{{ c["url"] }}">{{ c["title"] }}</a>
{% endfor %}
</div>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</nav>

<div class="container">
<div class="row justify-content-md-center vauto">
<div class="d-none d-sm-block col-md-4 col-sm-4 text-center mt-3">
<a href="{{ SITEURL }}/index.html"><img class="img-responsive p3" src="{{SITEURL}}/theme/images/pythonchile_logo.png" /></a>
</div>
<div class="col-md-6 col-sm-8 col-xs-12 text-left mt-3 vauto">
<h3 class="lead">{{ SITESUBTITLE }}</h3>
<!-- Redes -->
<div class="pt-1 pb-1">
<div class="container-redes">
<div class="row justify-content-md-start">
{% for name, d in PLATAFORMAS.items() %}
<a href="{{ d["url"] }}" target="_blank">
<i class="fab {{ d["icon"] }} fa-2x fa-inverse iconos_plataformas"></i>
</a>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</header>

<!-- Plataformas -->
<div class="pt-3 pb-3 plataformas">
<div class="container">
<div class="row justify-content-center">
{% for name, d in REDES.items() %}
<div class="iconos_redes">
<a href="{{ d["url"] }}" target="_blank">
<i class="fab {{ d["icon"] }} fa-2x fa-inverse"></i>
</a>
</div>
{% endfor %}
</div>
</div>
</div>

{% endblock header%}

0 comments on commit 1a243b7

Please sign in to comment.