mirror of
https://gitlab.com/tavo-wasd/blog.git
synced 2025-06-07 06:43:28 -06:00
gallery
This commit is contained in:
parent
6c0a169af2
commit
93b068b831
17 changed files with 137 additions and 24 deletions
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
title: Fotos
|
||||
type: gallery
|
||||
---
|
||||
|
|
BIN
content/fotos/p01/foto.jpg
Normal file
BIN
content/fotos/p01/foto.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 146 KiB |
9
content/fotos/p01/index.md
Normal file
9
content/fotos/p01/index.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
+++
|
||||
image = "foto.jpg"
|
||||
title = "Playa y sombrero en mano"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
"La brisa de la playa y el calor del sol en mi cara.
|
||||
Solo yo, mi fiel sombrero y la tranquilidad infinita del océano.
|
||||
Pura felicidad"
|
BIN
content/fotos/p02/foto.jpg
Normal file
BIN
content/fotos/p02/foto.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 141 KiB |
8
content/fotos/p02/index.md
Normal file
8
content/fotos/p02/index.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
+++
|
||||
image = "foto.jpg"
|
||||
title = "En medio de la naturaleza"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
"En medio del encantador abrazo de la naturaleza,
|
||||
una foto para recordar buenos tiempos"
|
BIN
content/fotos/p03/foto.jpg
Normal file
BIN
content/fotos/p03/foto.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 146 KiB |
8
content/fotos/p03/index.md
Normal file
8
content/fotos/p03/index.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
+++
|
||||
image = "foto.jpg"
|
||||
title = "Ritmo vibrante de la noche"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
"En el ritmo vibrante de la noche,
|
||||
vestido para una importante celebración"
|
BIN
content/fotos/p04/foto.jpg
Normal file
BIN
content/fotos/p04/foto.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 146 KiB |
8
content/fotos/p04/index.md
Normal file
8
content/fotos/p04/index.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
+++
|
||||
image = "foto.jpg"
|
||||
title = "Unión"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
"Los momentos más importantes y preciados, son a veces
|
||||
los más simples"
|
BIN
content/fotos/p05/foto.jpg
Normal file
BIN
content/fotos/p05/foto.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 142 KiB |
8
content/fotos/p05/index.md
Normal file
8
content/fotos/p05/index.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
+++
|
||||
image = "foto.jpg"
|
||||
title = "En un abrir y cerrar de ojos"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
"Este momento es realmente emotivo y para siempre
|
||||
recordará el maravilloso logro de crear una familia"
|
BIN
content/fotos/p06/foto.jpg
Normal file
BIN
content/fotos/p06/foto.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 119 KiB |
9
content/fotos/p06/index.md
Normal file
9
content/fotos/p06/index.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
+++
|
||||
image = "foto.jpg"
|
||||
title = "Decisión"
|
||||
type = "gallery"
|
||||
+++
|
||||
|
||||
"A medida que nuestras manos se entrelazan, se abre un nuevo capítulo.
|
||||
Adornado con la promesa eterna del amor, con el corazón rebosante de alegría,
|
||||
entramos en el camino de la unión"
|
|
@ -1,11 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
<div class="container">
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</div>
|
||||
|
||||
<div class="container" >
|
||||
{{ block "main" . }}{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
17
themes/blog/layouts/gallery/list.html
Normal file
17
themes/blog/layouts/gallery/list.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Page.Title }}</h1>
|
||||
{{ .Content }}
|
||||
<div class="image-grid">
|
||||
{{ range sort .Data.Pages "Date" "desc" }}
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
<a href="{{ .Permalink }}" title="{{ .Title }}">
|
||||
{{ $image := .Page.Resources.GetMatch .Params.image }}
|
||||
{{ with $image }}
|
||||
{{ $thumb := .Resize "600x" }}
|
||||
<img src="{{ $thumb.RelPermalink }}" alt="{{ .Title }}">
|
||||
{{end}}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
13
themes/blog/layouts/gallery/single.html
Normal file
13
themes/blog/layouts/gallery/single.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Page.Title }}</h1>
|
||||
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
{{ $image := .Page.Resources.GetMatch .Params.image }}
|
||||
{{ with $image }}
|
||||
{{ $thumb := .Resize "x1080" }}
|
||||
{{ printf `<img src="%s" alt="%s" class="single">` $thumb.RelPermalink .Title | safeHTML }}
|
||||
{{end}}
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
|
||||
{{ end }}
|
|
@ -1,22 +1,34 @@
|
|||
/* Global formatting */
|
||||
html {
|
||||
--global-font-size: 15px;
|
||||
--page-width: 60em;
|
||||
width: 90%;
|
||||
max-width: 800px;
|
||||
font-family: sans-serif;
|
||||
font-size: 11pt;
|
||||
background: #121212;
|
||||
color: #ebdbb2;
|
||||
margin: auto;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
/* Highlight links on hover */
|
||||
a:hover {
|
||||
transition: ease 0.2s;
|
||||
color: white;
|
||||
@media only screen and (max-width: 850px) {
|
||||
:root {
|
||||
--global-font-size: 14px;
|
||||
--global-line-height: 1.6em;
|
||||
--page-width: 70em;
|
||||
}
|
||||
}
|
||||
|
||||
/* hide class for certain objects on a phone*/
|
||||
@media (max-width: 850px) {
|
||||
.hide-phone {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
h2,h3,h4,h5,h6,strong {
|
||||
font-size:var(--global-font-size);
|
||||
}
|
||||
|
||||
/* Headings */
|
||||
body,h1,h2,h3,h4,h5 {
|
||||
text-align: left;
|
||||
}
|
||||
|
@ -25,19 +37,36 @@ h2,h3,h4,h5 {
|
|||
color: #b8bb26;
|
||||
}
|
||||
|
||||
/* Navbar */
|
||||
a:hover {
|
||||
opacity:0.8;
|
||||
}
|
||||
|
||||
.navbar h2,h4,a {
|
||||
color: #fe8019;
|
||||
padding: 20px 10px 0px;
|
||||
padding: 10px 5px 0px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* EXTRA */
|
||||
|
||||
/* hide class for certain objects on a phone*/
|
||||
@media (max-width: 600px) {
|
||||
.hide-phone {
|
||||
display: none;
|
||||
}
|
||||
.image-grid {
|
||||
display: grid;
|
||||
grid-gap: 10px;
|
||||
grid-template-rows: auto;
|
||||
grid-template-columns: repeat(auto-fit,
|
||||
minmax(calc(var(--page-width) / 4), 1fr));
|
||||
}
|
||||
|
||||
.container {
|
||||
margin: 0 auto;
|
||||
padding: 0 calc(var(--global-space));
|
||||
max-width: var(--page-width);
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.single {
|
||||
max-height: 60vh;
|
||||
max-width: 90vw;
|
||||
width: auto;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue