Remove duplicate files, use of {filename} to replace {static}

This commit is contained in:
Jesús 2020-06-15 10:10:39 -05:00
parent 3e745d907a
commit eed1b1eebf
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
18 changed files with 26 additions and 51 deletions

View File

@ -50,7 +50,7 @@ help:
generate: generate:
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
html: generate vendor html: generate
clean: clean:
[ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR) [ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)
@ -79,17 +79,10 @@ else
$(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
endif endif
vendor:
@bash $(BASEDIR)/scripts/vendor.sh
stopserver:
$(BASEDIR)/develop_server.sh stop
@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
publishconf: publishconf:
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS) $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
publish: publishconf vendor publish: publishconf
ssh_upload: publish ssh_upload: publish
scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)

View File

@ -18,7 +18,7 @@ Para sus encuentros, viajó siempre con una cámara.
La película resultante es la historia que se desarrolla ante nuestros La película resultante es la historia que se desarrolla ante nuestros
ojos en este documental. ojos en este documental.
<video playsinline controls poster='{static}/wp-content/uploads/article/images/2018/09/preview-snowden.jpg'> <video playsinline controls poster='{filename}/wp-content/uploads/article/images/2018/09/preview-snowden.jpg'>
<source src="https://archive.org/download/libreweb/citizenfour-spanish.webm" type="video/webm"/> <source src="https://archive.org/download/libreweb/citizenfour-spanish.webm" type="video/webm"/>
<p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p> <p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p>
</video> </video>

View File

@ -10,7 +10,7 @@ Tags: animate, cat animation, convert, ffmpeg, GIF, GNU/Linux, ImageMagick
Title: Convertir un vídeo a formato GIF Title: Convertir un vídeo a formato GIF
[![Animación de un gato hecha con [![Animación de un gato hecha con
Pygame]({static}/wp-content/uploads/article/images/2016/08/cat_animation.gif){.aligncenter .size-full .wp-image-235 width="1000" height="196"}]({static}/wp-content/uploads/article/images/2016/08/cat_animation.gif) Pygame]({filename}/wp-content/uploads/article/images/2016/08/cat_animation.gif){.aligncenter .size-full .wp-image-235 width="1000" height="196"}]({filename}/wp-content/uploads/article/images/2016/08/cat_animation.gif)
Hay muchas formas y programas útiles para hacer esto. Aquí os cuento mi Hay muchas formas y programas útiles para hacer esto. Aquí os cuento mi
método: método:

View File

@ -13,7 +13,7 @@ una de las distros 100 % libres, el método de Instalación se basa
en una guía de instalación, bien abajo se encuentra una lista en una guía de instalación, bien abajo se encuentra una lista
de 6 vídeos: de 6 vídeos:
<video id="videoplaylist" playsinline controls poster='{static}/wp-content/uploads/article/images/2018/05/curso-hyperbola-1.png'> <video id="videoplaylist" playsinline controls poster='{filename}/wp-content/uploads/article/images/2018/05/curso-hyperbola-1.png'>
<source src="https://archive.org/download/hyperbola-video-1/Hyperbola%20Base%20%2B%20Usuario%201%E2%81%846.webm" type="video/webm"/> <source src="https://archive.org/download/hyperbola-video-1/Hyperbola%20Base%20%2B%20Usuario%201%E2%81%846.webm" type="video/webm"/>
<p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p> <p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p>
</video> </video>
@ -58,7 +58,7 @@ de 6 vídeos:
>Y, bien hasta aquí ya es posible instalar Hyperbola GNU+Linux-Libre, de manera sencilla. >Y, bien hasta aquí ya es posible instalar Hyperbola GNU+Linux-Libre, de manera sencilla.
<!-- playlist --> <!-- playlist -->
<script src="{static}/vendor/aplaylist/videoplaylist.js"></script> <script src="{filename}/vendor/aplaylist/videoplaylist.js"></script>
<!-- /playlist --> <!-- /playlist -->
[hypersite]: https://www.hyperbola.info/ [hypersite]: https://www.hyperbola.info/

View File

@ -82,8 +82,8 @@ distribuciones libres de GNU, pero tarda mucho tiempo, o como dijo mi
amigo Ali «mil años [sonrisa]». amigo Ali «mil años [sonrisa]».
<figure> <figure>
<a href="{static}/wp-content/uploads/article/images/2018/06/Uruk-2.0.captura.png"> <a href="{filename}/wp-content/uploads/article/images/2018/06/Uruk-2.0.captura.png">
<img src="{static}/wp-content/uploads/article/images/2018/06/Uruk-2.0.captura.png" alt="Uruk" width="1025" height="768"> <img src="{filename}/wp-content/uploads/article/images/2018/06/Uruk-2.0.captura.png" alt="Uruk" width="1025" height="768">
</a> </a>
<figcaption class="wp-caption-text">Captura de pantalla de Uruk <figcaption class="wp-caption-text">Captura de pantalla de Uruk
GNU/Linux 2.0</figcaption> GNU/Linux 2.0</figcaption>

View File

@ -170,15 +170,15 @@ Por ejemplo:
### Capturas de pantalla de Virtual Machine Manager ### Capturas de pantalla de Virtual Machine Manager
<figure> <figure>
<a href="{static}/wp-content/uploads/article/images/2020/05/vm-dragora.png"> <a href="{filename}/wp-content/uploads/article/images/2020/05/vm-dragora.png">
<img src="{static}/wp-content/uploads/article/images/2020/05/vm-dragora.png" alt="Dragora en Virtual Machine Manager"> <img src="{filename}/wp-content/uploads/article/images/2020/05/vm-dragora.png" alt="Dragora en Virtual Machine Manager">
</a> </a>
<figcaption>Captura de pantalla de Dragora GNU/Linux en Virtual Machine Manager</figcaption> <figcaption>Captura de pantalla de Dragora GNU/Linux en Virtual Machine Manager</figcaption>
</figure> </figure>
<figure> <figure>
<a href="{static}/wp-content/uploads/article/images/2020/05/vm-trisquel.png"> <a href="{filename}/wp-content/uploads/article/images/2020/05/vm-trisquel.png">
<img src="{static}/wp-content/uploads/article/images/2020/05/vm-trisquel.png" alt="Trisquel en Virtual Machine Manager"> <img src="{filename}/wp-content/uploads/article/images/2020/05/vm-trisquel.png" alt="Trisquel en Virtual Machine Manager">
</a> </a>
<figcaption>Captura de pantalla de Trisquel GNU/Linux en Virtual Machine Manager</figcaption> <figcaption>Captura de pantalla de Trisquel GNU/Linux en Virtual Machine Manager</figcaption>
</figure> </figure>

View File

@ -14,7 +14,7 @@ muy graciosa. Para entenderla al menos debéis saber qué son el software
libre y el software privativo. Espero que os guste. libre y el software privativo. Espero que os guste.
<video playsinline controls <video playsinline controls
poster="{static}/wp-content/uploads/article/images/2017/02/locutus.png"> poster="{filename}/wp-content/uploads/article/images/2017/02/locutus.png">
<source src="https://archive.org/download/libreweb/locutus.webm" type="video/webm"> <source src="https://archive.org/download/libreweb/locutus.webm" type="video/webm">
<p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p> <p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p>
</video> </video>

View File

@ -18,7 +18,7 @@ Argentina entre 1996 y 2011. En el año 2018 volvió en formato de radio.
Sus integrantes son **Claudio Regis** (Conductor) y **Daniela Gastaminza**, Sus integrantes son **Claudio Regis** (Conductor) y **Daniela Gastaminza**,
**Alejandro Ponike** y **Daniel "Chacal"** Sentinelli (columnistas). **Alejandro Ponike** y **Daniel "Chacal"** Sentinelli (columnistas).
<video playsinline controls poster='{static}/wp-content/uploads/article/images/2018/06/rms-screen-1.jpg'> <video playsinline controls poster='{filename}/wp-content/uploads/article/images/2018/06/rms-screen-1.jpg'>
<source src="https://archive.org/download/libreweb/StallmanenDominioDigital.webm" type="video/webm"/> <source src="https://archive.org/download/libreweb/StallmanenDominioDigital.webm" type="video/webm"/>
<p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p> <p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p>
</video> </video>

View File

@ -14,7 +14,7 @@ minuciosamente [...] y que pueda seguir funcionando en todo el mundo sin
parar». Así comienza este cortometraje educativo sobre el sistema parar». Así comienza este cortometraje educativo sobre el sistema
capitalista. ¿Seguirá funcionando siempre **sin parar**? capitalista. ¿Seguirá funcionando siempre **sin parar**?
<video playsinline controls poster="{static}/wp-content/uploads/article/images/2017/07/poster-video-sin-parar.png"> <video playsinline controls poster="{filename}/wp-content/uploads/article/images/2017/07/poster-video-sin-parar.png">
<source src="https://archive.org/download/libreweb/sin-parar.webm" type="video/webm"> <source src="https://archive.org/download/libreweb/sin-parar.webm" type="video/webm">
<p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p> <p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p>
</video> </video>

View File

@ -41,11 +41,11 @@ programa tienen las [cuatro libertades esenciales][libertades]:
Debido a la evolución de la tecnología y del uso de la red, estas libertades Debido a la evolución de la tecnología y del uso de la red, estas libertades
son ahora [aún más importantes que en 1983][more-important]. son ahora [aún más importantes que en 1983][more-important].
<video playsinline controls="controls" poster="{static}/wp-content/uploads/pages/images/2017/03/poster.png"> <video playsinline controls="controls" poster="{filename}/wp-content/uploads/pages/images/2017/03/poster.png">
<source src="https://audio-video.gnu.org/video/TEDxGE2014_Stallman05_LQ.webm" type="video/webm"> <source src="https://audio-video.gnu.org/video/TEDxGE2014_Stallman05_LQ.webm" type="video/webm">
<track kind="captions" src="{static}/wp-content/uploads/pages/subtitles/2017/03/english.vtt" srclang="en" label="English"> <track kind="captions" src="{filename}/wp-content/uploads/pages/subtitles/2017/03/english.vtt" srclang="en" label="English">
<track kind="captions" src="{static}/wp-content/uploads/pages/subtitles/2017/03/spanish.vtt" srclang="es" label="Español" default=""> <track kind="captions" src="{filename}/wp-content/uploads/pages/subtitles/2017/03/spanish.vtt" srclang="es" label="Español" default="">
<track kind="captions" src="{static}/wp-content/uploads/pages/subtitles/2017/03/portuguese.vtt" srclang="pt" label="Portuguese"> <track kind="captions" src="{filename}/wp-content/uploads/pages/subtitles/2017/03/portuguese.vtt" srclang="pt" label="Portuguese">
<p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p> <p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p>
</video> </video>

View File

@ -17,4 +17,4 @@ You can choose between different donation methods.
## Liberapay ## Liberapay
<a href="https://liberapay.com/ConocimientosLibres/donate" role="button"><img alt="Donate" src="{static}/wp-content/uploads/pages/images/donate.svg"></a> <a href="https://liberapay.com/ConocimientosLibres/donate" role="button"><img alt="Donate" src="{filename}/wp-content/uploads/pages/images/donate.svg"></a>

View File

@ -14,4 +14,4 @@ instigi ĝian ellaboradon kaj plibonigon.
## Liberapay ## Liberapay
<a href="https://liberapay.com/ConocimientosLibres/donate" role="button"><img alt="Donaci" src="{static}/wp-content/uploads/pages/images/donaci.svg"></a> <a href="https://liberapay.com/ConocimientosLibres/donate" role="button"><img alt="Donaci" src="{filename}/wp-content/uploads/pages/images/donaci.svg"></a>

View File

@ -16,4 +16,4 @@ Puedes eligir entre diferentes formas de realizar donaciones.
## Liberapay ## Liberapay
<a href="https://liberapay.com/ConocimientosLibres/donate" role="button"><img alt="Dona" src="{static}/wp-content/uploads/pages/images/donar.svg"></a> <a href="https://liberapay.com/ConocimientosLibres/donate" role="button"><img alt="Dona" src="{filename}/wp-content/uploads/pages/images/donar.svg"></a>

View File

@ -12,5 +12,5 @@ Mein Email ist
[heckyel@hyperbola.info](mailto:heckyel@hyperbola.info). Nutz [heckyel@hyperbola.info](mailto:heckyel@hyperbola.info). Nutz
meinen meinen
<abbr title="GNU Privacy Guard">GPG</abbr> öffentlichen Schlüssel <abbr title="GNU Privacy Guard">GPG</abbr> öffentlichen Schlüssel
([4DF2 1B6A 7C10 21B2 5C36 0914 F6EE 7BC5 9A31 5766]({static}/heckyel_pub.asc)), ([4DF2 1B6A 7C10 21B2 5C36 0914 F6EE 7BC5 9A31 5766]({filename}/heckyel_pub.asc)),
damit die Nachricht nicht von anderen Personen gelesen werden kann. damit die Nachricht nicht von anderen Personen gelesen werden kann.

View File

@ -11,5 +11,5 @@ Title: Contact
My email is My email is
[heckyel@hyperbola.info](mailto:heckyel@hyperbola.info). Use my [heckyel@hyperbola.info](mailto:heckyel@hyperbola.info). Use my
<abbr title="GNU Privacy Guard">GPG</abbr> public key <abbr title="GNU Privacy Guard">GPG</abbr> public key
([4DF2 1B6A 7C10 21B2 5C36 0914 F6EE 7BC5 9A31 5766]({static}/heckyel_pub.asc)) ([4DF2 1B6A 7C10 21B2 5C36 0914 F6EE 7BC5 9A31 5766]({filename}/heckyel_pub.asc))
so that other people cannot read the message. so that other people cannot read the message.

View File

@ -10,5 +10,5 @@ Title: Kontakto
Mia retpoŝto estas Mia retpoŝto estas
[heckyel@hyperbola.info](mailto:heckyel@hyperbola.info). Uzu mian [heckyel@hyperbola.info](mailto:heckyel@hyperbola.info). Uzu mian
<abbr title="GNU Privacy Guard">GPG</abbr> publikan ŝlosilon <abbr title="GNU Privacy Guard">GPG</abbr> publikan ŝlosilon
([4DF2 1B6A 7C10 21B2 5C36 0914 F6EE 7BC5 9A31 5766]({static}/heckyel_pub.asc)) ([4DF2 1B6A 7C10 21B2 5C36 0914 F6EE 7BC5 9A31 5766]({filename}/heckyel_pub.asc))
por ke aliaj personoj ne povus legi la mesaĝon. por ke aliaj personoj ne povus legi la mesaĝon.

View File

@ -9,5 +9,5 @@ Title: Contacto
Mi correo electrónico es Mi correo electrónico es
[heckyel@hyperbola.info](mailto:heckyel@hyperbola.info). Utiliza mi [heckyel@hyperbola.info](mailto:heckyel@hyperbola.info). Utiliza mi
clave pública <abbr title="GNU Privacy Guard">GPG</abbr> clave pública <abbr title="GNU Privacy Guard">GPG</abbr>
([4DF2 1B6A 7C10 21B2 5C36 0914 F6EE 7BC5 9A31 5766]({static}/heckyel_pub.asc)) ([4DF2 1B6A 7C10 21B2 5C36 0914 F6EE 7BC5 9A31 5766]({filename}/heckyel_pub.asc))
para evitar que el mensaje pueda ser leído por otras personas. para evitar que el mensaje pueda ser leído por otras personas.

View File

@ -1,18 +0,0 @@
#!/bin/bash
run_vendor()
{
local LOCALDIR="${2-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
local BASE="${LOCALDIR%scripts}" # input
rm -rf "$BASE"/output/{de,en,eo,fr}/vendor/
echo "$BASE"output/{de,en,eo,fr} | xargs -n 1 cp -rf "$BASE"/output/vendor
}
# ==============================================================================
# EXECUTION - START
# ==============================================================================
run_vendor "$@"