Rehacer la web con Hugo: nuevo diseño, blog integrado y página del 29N
This commit is contained in:
parent
5d229667f0
commit
e75c923f90
59 changed files with 1262 additions and 1352 deletions
6
layouts/partials/articulo-tarjeta.html
Normal file
6
layouts/partials/articulo-tarjeta.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<article class="tarjeta">
|
||||
<time class="k k-fino" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date | time.Format ":date_long" }}</time>
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
<p>{{ .Description | default (.Summary | plainify | truncate 160) }}</p>
|
||||
<a class="mas" href="{{ .RelPermalink }}">Leer <span aria-hidden="true">→</span></a>
|
||||
</article>
|
||||
1
layouts/partials/aspa.html
Normal file
1
layouts/partials/aspa.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg class="aspa" viewBox="0 0 1080 1080" preserveAspectRatio="xMidYMid slice" aria-hidden="true"><path d="M-99,-21L16,131L47,125L168,246L283,397L314,392L434,512L549,664L581,658L701,779L816,931L847,925L968,1046L1101,1179L1179,1101L1046,968L925,847L931,816L779,701L658,581L664,549L512,434L392,314L397,283L246,168L125,47L131,16L-21,-99ZM1101,-99L949,16L955,47L834,168L683,283L688,314L568,434L416,549L422,581L301,701L149,816L155,847L34,968L-99,1101L-21,1179L112,1046L233,925L264,931L379,779L499,658L531,664L646,512L766,392L797,397L912,246L1033,125L1064,131L1179,-21Z"/></svg>
|
||||
|
After Width: | Height: | Size: 573 B |
16
layouts/partials/cabecera.html
Normal file
16
layouts/partials/cabecera.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<header class="cabecera">
|
||||
<div class="cabecera-in">
|
||||
<a class="marca" href="{{ "/" | relURL }}" aria-label="Partido Nacional Hispanista, inicio">{{ partial "emblema.html" . }}</a>
|
||||
<input type="checkbox" id="menu-t" class="menu-t" aria-hidden="true">
|
||||
<label for="menu-t" class="menu-b" aria-label="Abrir menú"><span></span><span></span><span></span></label>
|
||||
<nav class="menu" aria-label="Principal">
|
||||
<ul>
|
||||
{{ $actual := . }}
|
||||
{{ range site.Menus.main }}
|
||||
<li><a href="{{ .URL }}"{{ if or ($actual.IsMenuCurrent "main" .) ($actual.HasMenuCurrent "main" .) }} aria-current="page"{{ end }}>{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
<li><a class="boton boton-oro boton-s" href="{{ "unete/" | relURL }}">Únete</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
11
layouts/partials/cabeza-pagina.html
Normal file
11
layouts/partials/cabeza-pagina.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<header class="cabeza">
|
||||
{{ partial "aspa.html" . }}
|
||||
<div class="cabeza-in">
|
||||
{{ with .Params.antetitulo }}<p class="k">{{ . }}</p>{{ end }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ with .Params.entradilla }}<p class="entradilla">{{ . }}</p>{{ end }}
|
||||
{{ if eq .Section "articulos" }}{{ if .IsPage }}
|
||||
<p class="k k-fino"><time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date | time.Format ":date_long" }}</time> · {{ .ReadingTime }} min de lectura</p>
|
||||
{{ end }}{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
9
layouts/partials/campana.html
Normal file
9
layouts/partials/campana.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{{ with site.Params.campana }}{{ if and .activa (lt now (time .hasta)) }}
|
||||
<aside class="campana" aria-label="Campaña">
|
||||
<div class="campana-in">
|
||||
<span class="campana-k">{{ .antetitulo }}</span>
|
||||
<span class="campana-t">{{ .texto }}</span>
|
||||
<a class="campana-a" href="{{ .enlace | relURL }}">{{ .boton }} <span aria-hidden="true">→</span></a>
|
||||
</div>
|
||||
</aside>
|
||||
{{ end }}{{ end }}
|
||||
5
layouts/partials/emblema.html
Normal file
5
layouts/partials/emblema.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<span class="emblema">
|
||||
<span class="emblema-t">Partido Nacional</span>
|
||||
<img src="{{ "img/caballo.png" | relURL }}" alt="" width="70" height="44">
|
||||
<span class="emblema-t">Hispanista</span>
|
||||
</span>
|
||||
29
layouts/partials/head.html
Normal file
29
layouts/partials/head.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{{ $titulo := cond .IsHome (printf "%s · %s" site.Title site.Params.lema) (printf "%s · %s" .Title site.Title) }}
|
||||
{{ $desc := .Description | default site.Params.description }}
|
||||
<title>{{ $titulo }}</title>
|
||||
<meta name="description" content="{{ $desc }}">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<meta name="theme-color" content="#220306">
|
||||
<link rel="icon" href="{{ "img/favicon.png" | relURL }}" type="image/png">
|
||||
<link rel="apple-touch-icon" href="{{ "img/favicon.png" | relURL }}">
|
||||
<meta property="og:site_name" content="{{ site.Title }}">
|
||||
<meta property="og:locale" content="es_ES">
|
||||
<meta property="og:title" content="{{ $titulo }}">
|
||||
<meta property="og:description" content="{{ $desc }}">
|
||||
<meta property="og:type" content="{{ if eq .Section "articulos" }}article{{ else }}website{{ end }}">
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:image" content="{{ "img/og.png" | absURL }}">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:site" content="@PNHispanista">
|
||||
<link rel="preload" href="{{ "fonts/cinzel-latin-900-normal.woff2" | relURL }}" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="{{ "fonts/eb-garamond-latin-500-normal.woff2" | relURL }}" as="font" type="font/woff2" crossorigin>
|
||||
{{ $css := resources.Get "css/main.css" | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}">
|
||||
{{ $js := resources.Get "js/main.js" | minify | fingerprint }}
|
||||
<script src="{{ $js.RelPermalink }}" defer></script>
|
||||
{{ with .OutputFormats.Get "rss" }}<link rel="alternate" type="application/rss+xml" href="{{ .RelPermalink }}" title="{{ site.Title }}">{{ end }}
|
||||
<script type="application/ld+json">
|
||||
{"@context":"https://schema.org","@type":"PoliticalParty","name":"{{ site.Title }}","url":"{{ site.BaseURL }}","logo":"{{ "img/logo.png" | absURL }}","foundingDate":"2024-10-10","slogan":"{{ site.Params.lema }}","sameAs":[{{ range $i, $r := site.Params.redes }}{{ if $i }},{{ end }}"{{ $r.url }}"{{ end }}]}
|
||||
</script>
|
||||
10
layouts/partials/llamada.html
Normal file
10
layouts/partials/llamada.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<section class="llamada">
|
||||
{{ partial "aspa.html" . }}
|
||||
<div class="marco" aria-hidden="true"></div>
|
||||
<div class="llamada-in">
|
||||
{{ with resources.Get "logo.png" }}{{ $l := .Resize "520x webp" }}<img class="llamada-logo" src="{{ $l.RelPermalink }}" width="{{ $l.Width }}" height="{{ $l.Height }}" alt="Emblema del Partido Nacional Hispanista">{{ end }}
|
||||
<h2>La Hispanidad no muere: resurge</h2>
|
||||
<p class="portada-l">Si amas tu tierra, tu fe y tu lengua,<br>tienes un sitio entre nosotros.</p>
|
||||
<a class="boton boton-oro" href="{{ "unete/" | relURL }}">Únete ahora</a>
|
||||
</div>
|
||||
</section>
|
||||
28
layouts/partials/pie.html
Normal file
28
layouts/partials/pie.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<footer class="pie">
|
||||
<div class="filete" aria-hidden="true"></div>
|
||||
<div class="pie-in">
|
||||
<div class="pie-marca">
|
||||
{{ partial "emblema.html" . }}
|
||||
<p class="lema">{{ site.Params.lema }}</p>
|
||||
</div>
|
||||
<nav class="pie-col" aria-label="Secciones">
|
||||
<h2 class="k">Secciones</h2>
|
||||
<ul>
|
||||
{{ range site.Menus.main }}<li><a href="{{ .URL }}">{{ .Name }}</a></li>{{ end }}
|
||||
<li><a href="{{ "unete/" | relURL }}">Únete</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="pie-col">
|
||||
<h2 class="k">Síguenos</h2>
|
||||
<ul>
|
||||
{{ range site.Params.redes }}<li><a href="{{ .url }}" rel="me noopener">{{ .nombre }}</a></li>{{ end }}
|
||||
<li><a href="{{ "index.xml" | relURL }}">RSS</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="pie-col">
|
||||
<h2 class="k">Contacto</h2>
|
||||
<ul><li><a href="mailto:{{ site.Params.email }}">{{ site.Params.email }}</a></li></ul>
|
||||
</div>
|
||||
</div>
|
||||
<p class="pie-legal">© {{ now.Year }} Partido Nacional Hispanista</p>
|
||||
</footer>
|
||||
Loading…
Add table
Add a link
Reference in a new issue