This commit is contained in:
parent
2b70309b93
commit
b949e2ae76
4 changed files with 12 additions and 8 deletions
|
@ -6,7 +6,7 @@ Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/
|
|||
{{- if not ($.Page.Scratch.Get "figurecount") }}<link rel="stylesheet" href={{ "css/hugo-easy-gallery.css" | relURL }} />{{ end }}
|
||||
{{- $.Page.Scratch.Add "figurecount" 1 }}
|
||||
{{ $baseURL := .Site.BaseURL }}
|
||||
<div class="gallery caption-position-{{ with .Get "caption-position" | default "bottom" }}{{.}}{{end}} caption-effect-{{ with .Get "caption-effect" | default "slide" }}{{.}}{{end}} hover-effect-{{ with .Get "hover-effect" | default "zoom" }}{{.}}{{end}} {{ if ne (.Get "hover-transition") "none" }}hover-transition{{end}}" itemscope itemtype="http://schema.org/ImageGallery">
|
||||
<div class="gallery caption-position-{{ with .Get "caption-position" | default "bottom" }}{{.}}{{end}} caption-effect-{{ with .Get "caption-effect" | default "none" }}{{.}}{{end}} hover-effect-{{ with .Get "hover-effect" | default "zoom" }}{{.}}{{end}} {{ if ne (.Get "hover-transition") "none" }}hover-transition{{end}}" itemscope itemtype="http://schema.org/ImageGallery">
|
||||
{{- with (.Get "dir") -}}
|
||||
<!-- If a directory was specified, generate figures for all of the images in the directory -->
|
||||
{{- $files := readDir (print "/static/" .) }}
|
||||
|
|
12
readMe.md
12
readMe.md
|
@ -8,9 +8,9 @@
|
|||
|
||||
## Galleries / figures
|
||||
- [x] ajouter une optimisation qui traite automatiquement les images dans les galleries en les resizant à la largeur de la page et en les transformant en .webp
|
||||
- [ ] Un clic sur une image l'ouvre en grand
|
||||
- [ ] La taille de l'image est un paramètre du shortcode
|
||||
- [ ] revoir le css des galleries pour le rendre moins moche
|
||||
- [ ] Un clic sur une image l'ouvre en grand dans un popup, avec des flèches pour aller aux prochaines. les touches du clavier peuvnet controler ça.
|
||||
- [ ] La taille de l'image est un paramètre du shortcode (quid de photoswipe ?)
|
||||
- [x] revoir le css des galleries pour les rendre moins moches
|
||||
|
||||
## Contenu
|
||||
- [x] Ecrire contact page
|
||||
|
@ -22,8 +22,8 @@
|
|||
- [x] make it so the 404 page works
|
||||
- [ ] mettre une favicon
|
||||
- [x] Mettre en forme flux RSS
|
||||
- [ ] Explucre contact & colophone du flux rss
|
||||
- [ ] Script de mise en ligne avec rsync
|
||||
- [ ] Exclure contact & colophon du flux rss
|
||||
- [x] Script de mise en ligne avec rsync
|
||||
|
||||
|
||||
# Would be nice
|
||||
|
@ -75,7 +75,7 @@
|
|||
- [ ] Configurer les galleries dans Decap CMS
|
||||
|
||||
## Autres
|
||||
- [ ] Mis à jour la dernière fois le
|
||||
- [x] Mis à jour la dernière fois le
|
||||
|
||||
- [ ] Ajouter des catégories aux articles et une liste de catégories sur page accueil
|
||||
- [ ] Boutons grossissent quand la souris est dessus, comme https://88x31.kate.pet/
|
||||
|
|
|
@ -120,7 +120,7 @@ figcaption styles
|
|||
background: #000;
|
||||
color: #FFF;
|
||||
text-align: center;
|
||||
font-size: 75%; /* change this if you want bigger text */
|
||||
font-size: 100%; /* change this if you want bigger text */
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
opacity: 1;
|
||||
cursor: pointer;
|
||||
|
@ -155,5 +155,6 @@ figcaption styles
|
|||
}
|
||||
figcaption p {
|
||||
margin: auto; /* override style in theme */
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
|
|
|
@ -239,6 +239,7 @@
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
/* Removed to use gallery shortcode
|
||||
.post-content figure > figcaption {
|
||||
color: var(--primary);
|
||||
font-size: 16px;
|
||||
|
@ -246,11 +247,13 @@
|
|||
margin: 8px 0 16px;
|
||||
}
|
||||
|
||||
|
||||
.post-content figure > figcaption > p {
|
||||
color: var(--secondary);
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
}
|
||||
*/
|
||||
|
||||
.toc {
|
||||
margin: 0 2px 40px 2px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue