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
12
layouts/404.html
Normal file
12
layouts/404.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{{ define "main" }}
|
||||
<section class="portada portada-corta">
|
||||
{{ partial "aspa.html" . }}
|
||||
<div class="marco" aria-hidden="true"></div>
|
||||
<div class="portada-in">
|
||||
<p class="k portada-k">Error 404</p>
|
||||
<h1 class="portada-h">Camino perdido</h1>
|
||||
<p class="portada-l">Esta página no existe, pero la Hispanidad sigue en pie.</p>
|
||||
<div class="botones"><a class="boton boton-oro" href="{{ "/" | relURL }}">Volver al inicio</a></div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
15
layouts/_default/baseof.html
Normal file
15
layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="es">
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
<body class="{{ if .IsHome }}es-portada{{ else }}es-interior{{ end }}">
|
||||
<a class="saltar" href="#contenido">Saltar al contenido</a>
|
||||
{{ partial "cabecera.html" . }}
|
||||
{{ partial "campana.html" . }}
|
||||
<main id="contenido">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
{{ partial "pie.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
24
layouts/_default/ideologia.html
Normal file
24
layouts/_default/ideologia.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{{ define "main" }}
|
||||
{{ $romanos := slice "I" "II" "III" "IV" "V" "VI" "VII" "VIII" "IX" "X" }}
|
||||
{{ partial "cabeza-pagina.html" . }}
|
||||
<div class="bloque bloque-crema">
|
||||
<div class="ancho ideario">
|
||||
<nav class="indice" aria-label="Principios">
|
||||
<p class="k k-rojo">Índice</p>
|
||||
<ol>{{ range $i, $p := site.Data.ideologia }}<li><a href="#{{ $p.id }}"><span>{{ index $romanos $i }}</span>{{ $p.clave }}</a></li>{{ end }}</ol>
|
||||
</nav>
|
||||
<div class="principios">
|
||||
{{ range $i, $p := site.Data.ideologia }}
|
||||
<article class="principio" id="{{ $p.id }}">
|
||||
<p class="principio-n" aria-hidden="true">{{ index $romanos $i }}</p>
|
||||
<p class="k k-rojo">{{ $p.clave }}</p>
|
||||
<h2>{{ $p.titulo }}</h2>
|
||||
{{ range $p.texto }}<p>{{ . }}</p>{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
<p class="cierre">¡Arriba la Hispanidad!</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "llamada.html" . }}
|
||||
{{ end }}
|
||||
8
layouts/_default/list.html
Normal file
8
layouts/_default/list.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "cabeza-pagina.html" . }}
|
||||
<section class="bloque bloque-crema">
|
||||
<div class="ancho">
|
||||
<div class="rejilla rejilla-3">{{ range .Pages }}{{ partial "articulo-tarjeta.html" . }}{{ end }}</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
17
layouts/_default/propuestas.html
Normal file
17
layouts/_default/propuestas.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{{ define "main" }}
|
||||
{{ $romanos := slice "I" "II" "III" "IV" "V" "VI" "VII" "VIII" "IX" "X" }}
|
||||
{{ partial "cabeza-pagina.html" . }}
|
||||
<div class="bloque bloque-papel">
|
||||
<div class="ancho rejilla rejilla-2">
|
||||
{{ range $i, $p := site.Data.propuestas }}
|
||||
<article class="propuesta propuesta-larga">
|
||||
<span class="propuesta-n">{{ index $romanos $i }}</span>
|
||||
<h2>{{ $p.titulo }}</h2>
|
||||
<p>{{ $p.texto | markdownify }}</p>
|
||||
{{ with $p.puntos }}<ul>{{ range . }}<li>{{ . }}</li>{{ end }}</ul>{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "llamada.html" . }}
|
||||
{{ end }}
|
||||
7
layouts/_default/single.html
Normal file
7
layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "cabeza-pagina.html" . }}
|
||||
<div class="bloque bloque-crema">
|
||||
<div class="prosa">{{ .Content }}</div>
|
||||
</div>
|
||||
{{ partial "llamada.html" . }}
|
||||
{{ end }}
|
||||
21
layouts/_default/unete.html
Normal file
21
layouts/_default/unete.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "cabeza-pagina.html" . }}
|
||||
<div class="bloque bloque-crema">
|
||||
<div class="ancho unete">
|
||||
<div class="unete-por">
|
||||
<p class="k k-rojo">Por qué unirse</p>
|
||||
<ol class="filas filas-compactas">
|
||||
<li class="fila"><span class="fila-k">Sin coste</span><span class="fila-v">Afiliarse es gratuito. Lo que pedimos es compromiso, no dinero.</span></li>
|
||||
<li class="fila"><span class="fila-k">A tu ritmo</span><span class="fila-v">Tú decides cuánto y cómo participas: redes, actos, ideas o calle.</span></li>
|
||||
<li class="fila"><span class="fila-k">Formación</span><span class="fila-v">Debate, historia, oratoria y organización con gente que piensa como tú.</span></li>
|
||||
<li class="fila"><span class="fila-k">Futuro</span><span class="fila-v">Estamos construyendo el partido que irá a las urnas. Entra desde el principio.</span></li>
|
||||
</ol>
|
||||
<p class="unete-contacto">¿Dudas? Escríbenos a <a href="mailto:{{ site.Params.email }}">{{ site.Params.email }}</a>.</p>
|
||||
</div>
|
||||
<div class="unete-form">
|
||||
<p class="k">Formulario de afiliación</p>
|
||||
<iframe src="{{ site.Params.formulario }}" title="Formulario de afiliación al PNH" loading="lazy"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
11
layouts/articulos/single.html
Normal file
11
layouts/articulos/single.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "cabeza-pagina.html" . }}
|
||||
<article class="bloque bloque-crema">
|
||||
<div class="prosa prosa-capitular">{{ .Content }}</div>
|
||||
<nav class="prosa navega" aria-label="Más artículos">
|
||||
{{ with .NextInSection }}<a href="{{ .RelPermalink }}"><span class="k k-fino">← Anterior</span>{{ .Title }}</a>{{ else }}<span></span>{{ end }}
|
||||
{{ with .PrevInSection }}<a class="der" href="{{ .RelPermalink }}"><span class="k k-fino">Siguiente →</span>{{ .Title }}</a>{{ end }}
|
||||
</nav>
|
||||
</article>
|
||||
{{ partial "llamada.html" . }}
|
||||
{{ end }}
|
||||
83
layouts/index.html
Normal file
83
layouts/index.html
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
{{ define "main" }}
|
||||
{{ $romanos := slice "I" "II" "III" "IV" "V" "VI" "VII" "VIII" "IX" "X" }}
|
||||
<section class="portada">
|
||||
{{ partial "aspa.html" . }}
|
||||
<div class="halo" aria-hidden="true"></div>
|
||||
<div class="marco" aria-hidden="true"></div>
|
||||
<div class="portada-in">
|
||||
<p class="k portada-k">Por la unión de los pueblos hispanos</p>
|
||||
<span class="raya" aria-hidden="true"></span>
|
||||
<h1 class="portada-h">Unidad,<br>Fe y Destino</h1>
|
||||
<p class="portada-l">Somos una familia de pueblos.<br>Es hora de volver a hablar con una sola voz.</p>
|
||||
<div class="botones">
|
||||
<a class="boton boton-oro" href="{{ "unete/" | relURL }}">Únete al PNH</a>
|
||||
<a class="boton boton-linea" href="{{ "ideologia/" | relURL }}">Lo que defendemos</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portada-pie" aria-hidden="true"><span>Desde 2024</span><span>España · América · Filipinas</span></div>
|
||||
</section>
|
||||
|
||||
<section class="bloque bloque-crema">
|
||||
<div class="ancho">
|
||||
<div class="bloque-cab">
|
||||
<p class="k k-rojo">Lo que defiende el PNH</p>
|
||||
<h2>Nueve principios, una sola causa</h2>
|
||||
</div>
|
||||
<ol class="filas">
|
||||
{{ range $i, $p := site.Data.ideologia }}
|
||||
<li class="fila">
|
||||
<a href="{{ "ideologia/" | relURL }}#{{ $p.id }}">
|
||||
<span class="fila-n">{{ index $romanos $i }}</span>
|
||||
<span class="fila-k">{{ $p.clave }}</span>
|
||||
<span class="fila-v">{{ $p.resumen }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
<p class="centro"><a class="boton boton-rojo" href="{{ "ideologia/" | relURL }}">Leer la ideología completa</a></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="cifras">
|
||||
{{ partial "aspa.html" . }}
|
||||
<div class="ancho cifras-in">
|
||||
<div class="cifra"><span class="cifra-n">635</span><span class="cifra-t">millones de personas hablan español</span></div>
|
||||
<div class="cifra"><span class="cifra-n">+500</span><span class="cifra-t">años de historia común</span></div>
|
||||
<div class="cifra"><span class="cifra-n">1</span><span class="cifra-t">lengua, una fe y un destino</span></div>
|
||||
</div>
|
||||
<p class="cifras-f">Fuente: Instituto Cervantes, «El español en el mundo 2025».</p>
|
||||
</section>
|
||||
|
||||
<section class="bloque bloque-papel">
|
||||
<div class="ancho">
|
||||
<div class="bloque-cab">
|
||||
<p class="k k-rojo">Programa</p>
|
||||
<h2>Propuestas para una Patria justa</h2>
|
||||
</div>
|
||||
<div class="rejilla rejilla-3">
|
||||
{{ range $i, $p := first 6 site.Data.propuestas }}
|
||||
<article class="propuesta">
|
||||
<span class="propuesta-n">{{ index $romanos $i }}</span>
|
||||
<h3>{{ $p.titulo }}</h3>
|
||||
<p>{{ $p.texto | markdownify }}</p>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
<p class="centro"><a class="boton boton-rojo" href="{{ "propuestas/" | relURL }}">Ver todas las propuestas</a></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ with first 3 (where site.RegularPages "Section" "articulos") }}
|
||||
<section class="bloque bloque-crema">
|
||||
<div class="ancho">
|
||||
<div class="bloque-cab">
|
||||
<p class="k k-rojo">Pensamiento</p>
|
||||
<h2>Artículos</h2>
|
||||
</div>
|
||||
<div class="rejilla rejilla-3">{{ range . }}{{ partial "articulo-tarjeta.html" . }}{{ end }}</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "llamada.html" . }}
|
||||
{{ end }}
|
||||
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