Kickstart your site!
¡ Ahora Podemos empezar ! Pelican viene con un comando mágico que nos facilita comenzar un blog:
pelican-quickstart
Vas a tener que contestar unas preguntas, de esta forma Pelican configura nuestro blog. No te preocupes si te confundís, después podes cambiar la configuración:
(env-blog) [[email protected] pelican-blog]$ pelican-quickstart
Welcome to pelican-quickstart v4.0.1.
This script will help you create a new Pelican-based website.
Please answer the following questions so this script can generate the files
needed by Pelican.
> Where do you want to create your new web site? [.]
> What will be the title of this web site? New site
> Who will be the author of this web site? enriquetaso
> What will be the default language of this web site? [es] en
> Do you want to specify a URL prefix? e.g., https://example.com (Y/n) n
> Do you want to enable article pagination? (Y/n)
> How many articles per page do you want? [10]
> What is your time zone? [Europe/Paris]
> Do you want to generate a tasks.py/Makefile to automate generation and publishing? (Y/n)
> Do you want to upload your website using FTP? (y/N)
> Do you want to upload your website using SSH? (y/N)
> Do you want to upload your website using Dropbox? (y/N)
> Do you want to upload your website using S3? (y/N)
> Do you want to upload your website using Rackspace Cloud Files? (y/N)
> Do you want to upload your website using GitHub Pages? (y/N)
Done. Your new project is available at /home/senrique/pelican-blog
Apartir de este momento, nuestra carpeta va a contar con varios archivos:
$ ll
content
env-blog
Makefile
output
pelicanconf.py
publishconf.py
tasks.py

¿Funcionó?

Ahora necesitamos saber si los pasos anteriores funcionaron.
Primero generamos nuestro sitio:
pelican content
Nuestro sitio fue generado dentro de una carpeta llamada output
Segundo, necesitamos levantar el Pelican web server:
pelican --listen
¡Listo! Abrí http://localhost:8000/
Copy link