Remove duplicate files, use of {filename} to replace {static}
This commit is contained in:
parent
3e745d907a
commit
eed1b1eebf
@ -50,7 +50,7 @@ help:
|
||||
generate:
|
||||
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
|
||||
|
||||
html: generate vendor
|
||||
html: generate
|
||||
|
||||
clean:
|
||||
[ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)
|
||||
@ -79,17 +79,10 @@ else
|
||||
$(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
|
||||
endif
|
||||
|
||||
vendor:
|
||||
@bash $(BASEDIR)/scripts/vendor.sh
|
||||
|
||||
stopserver:
|
||||
$(BASEDIR)/develop_server.sh stop
|
||||
@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
|
||||
|
||||
publishconf:
|
||||
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
|
||||
|
||||
publish: publishconf vendor
|
||||
publish: publishconf
|
||||
|
||||
ssh_upload: publish
|
||||
scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
|
||||
|
@ -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
|
||||
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"/>
|
||||
<p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p>
|
||||
</video>
|
||||
|
@ -10,7 +10,7 @@ Tags: animate, cat animation, convert, ffmpeg, GIF, GNU/Linux, ImageMagick
|
||||
Title: Convertir un vídeo a formato 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
|
||||
método:
|
||||
|
@ -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
|
||||
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"/>
|
||||
<p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p>
|
||||
</video>
|
||||
@ -58,7 +58,7 @@ de 6 vídeos:
|
||||
>Y, bien hasta aquí ya es posible instalar Hyperbola GNU+Linux-Libre, de manera sencilla.
|
||||
|
||||
<!-- playlist -->
|
||||
<script src="{static}/vendor/aplaylist/videoplaylist.js"></script>
|
||||
<script src="{filename}/vendor/aplaylist/videoplaylist.js"></script>
|
||||
<!-- /playlist -->
|
||||
|
||||
[hypersite]: https://www.hyperbola.info/
|
||||
|
@ -82,8 +82,8 @@ distribuciones libres de GNU, pero tarda mucho tiempo, o como dijo mi
|
||||
amigo Ali «mil años [sonrisa]».
|
||||
|
||||
<figure>
|
||||
<a href="{static}/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">
|
||||
<a href="{filename}/wp-content/uploads/article/images/2018/06/Uruk-2.0.captura.png">
|
||||
<img src="{filename}/wp-content/uploads/article/images/2018/06/Uruk-2.0.captura.png" alt="Uruk" width="1025" height="768">
|
||||
</a>
|
||||
<figcaption class="wp-caption-text">Captura de pantalla de Uruk
|
||||
GNU/Linux 2.0</figcaption>
|
||||
|
@ -170,15 +170,15 @@ Por ejemplo:
|
||||
### Capturas de pantalla de Virtual Machine Manager
|
||||
|
||||
<figure>
|
||||
<a href="{static}/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">
|
||||
<a href="{filename}/wp-content/uploads/article/images/2020/05/vm-dragora.png">
|
||||
<img src="{filename}/wp-content/uploads/article/images/2020/05/vm-dragora.png" alt="Dragora en Virtual Machine Manager">
|
||||
</a>
|
||||
<figcaption>Captura de pantalla de Dragora GNU/Linux en Virtual Machine Manager</figcaption>
|
||||
</figure>
|
||||
|
||||
<figure>
|
||||
<a href="{static}/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">
|
||||
<a href="{filename}/wp-content/uploads/article/images/2020/05/vm-trisquel.png">
|
||||
<img src="{filename}/wp-content/uploads/article/images/2020/05/vm-trisquel.png" alt="Trisquel en Virtual Machine Manager">
|
||||
</a>
|
||||
<figcaption>Captura de pantalla de Trisquel GNU/Linux en Virtual Machine Manager</figcaption>
|
||||
</figure>
|
||||
|
@ -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.
|
||||
|
||||
<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">
|
||||
<p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p>
|
||||
</video>
|
||||
|
@ -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**,
|
||||
**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"/>
|
||||
<p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p>
|
||||
</video>
|
||||
|
@ -14,7 +14,7 @@ minuciosamente [...] y que pueda seguir funcionando en todo el mundo sin
|
||||
parar». Así comienza este cortometraje educativo sobre el sistema
|
||||
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">
|
||||
<p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p>
|
||||
</video>
|
||||
|
@ -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
|
||||
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">
|
||||
<track kind="captions" src="{static}/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="{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/english.vtt" srclang="en" label="English">
|
||||
<track kind="captions" src="{filename}/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/portuguese.vtt" srclang="pt" label="Portuguese">
|
||||
<p><em>Su navegador no admite la etiqueta video, descargue el video en su lugar.</em></p>
|
||||
</video>
|
||||
|
||||
|
@ -17,4 +17,4 @@ You can choose between different donation methods.
|
||||
|
||||
## 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>
|
||||
|
@ -14,4 +14,4 @@ instigi ĝian ellaboradon kaj plibonigon.
|
||||
|
||||
## 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>
|
||||
|
@ -16,4 +16,4 @@ Puedes eligir entre diferentes formas de realizar donaciones.
|
||||
|
||||
## 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>
|
||||
|
@ -12,5 +12,5 @@ Mein Email ist
|
||||
[heckyel@hyperbola.info](mailto:heckyel@hyperbola.info). Nutz
|
||||
meinen
|
||||
<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.
|
||||
|
@ -11,5 +11,5 @@ Title: Contact
|
||||
My email is
|
||||
[heckyel@hyperbola.info](mailto:heckyel@hyperbola.info). Use my
|
||||
<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.
|
||||
|
@ -10,5 +10,5 @@ Title: Kontakto
|
||||
Mia retpoŝto estas
|
||||
[heckyel@hyperbola.info](mailto:heckyel@hyperbola.info). Uzu mian
|
||||
<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.
|
||||
|
@ -9,5 +9,5 @@ Title: Contacto
|
||||
Mi correo electrónico es
|
||||
[heckyel@hyperbola.info](mailto:heckyel@hyperbola.info). Utiliza mi
|
||||
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.
|
||||
|
@ -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 "$@"
|
Loading…
x
Reference in New Issue
Block a user