<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.4.3">Jekyll</generator><link href="http://localhost:8080/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:8080/" rel="alternate" type="text/html" /><updated>2018-09-07T08:29:36+01:00</updated><id>http://localhost:8080/</id><title type="html">felixjosehernandez.es</title><subtitle>Página personal.
</subtitle><entry><title type="html">Jekyll - Generador de sitios estáticos para blogs</title><link href="http://localhost:8080/jekyll/update/2017/04/20/jekyll-static-web-generator.html" rel="alternate" type="text/html" title="Jekyll - Generador de sitios estáticos para blogs" /><published>2017-04-20T08:36:54+01:00</published><updated>2017-04-20T08:36:54+01:00</updated><id>http://localhost:8080/jekyll/update/2017/04/20/jekyll-static-web-generator</id><content type="html" xml:base="http://localhost:8080/jekyll/update/2017/04/20/jekyll-static-web-generator.html">&lt;p&gt;Jekyll es un generador de sitios estáticos para blogs. Esto que és? pues tener
un &lt;em&gt;snapshot&lt;/em&gt; del blog en el servidor web, vamos que nos olvidamos de las &lt;em&gt;base
de datos&lt;/em&gt;, &lt;em&gt;php&lt;/em&gt;, &lt;em&gt;python&lt;/em&gt;, &lt;em&gt;java&lt;/em&gt;, etc. Entre las principales ventajas está la
velocidad de respuesta y el poco uso de recursos, pero es muy técnico, con
mucha línea de comandos y trabajo de ficheros. No obstante, es como todo, si tu
cliente es ordenado, le das un editor de &lt;em&gt;Markdown&lt;/em&gt; y luego que te pase los
ficheros para colocarlos en el servidor. Para nosotros es ideal, edito con el
vim y listo.&lt;/p&gt;

&lt;p&gt;La documentación la podemos encontrar &lt;a href=&quot;https://jekyllrb.com/docs/home&quot;&gt;Documentación Jekyll&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Aquí les dejo los pasos que seguí para instarlo:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-shell&quot; data-lang=&quot;shell&quot;&gt;wget https://rubygems.org/gems/rubygems-update-2.6.11.gem
sudo gem install --local rubygems-update-2.6.11.gem
sudo update_rubygems
sudo gem install bundler
sudo gem install jekyll
jekyll new porfolio
&lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;portolio
jekyll serve&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Con esto ya podemos empezar a trasterar con las plantillas (&lt;em&gt;layouts&lt;/em&gt;), las páginas (&lt;em&gt;*.md&lt;/em&gt;), los ‘&lt;em&gt;includes&lt;/em&gt;’, etc., y ver los resultados en la ventana de depuración del ‘serve’.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/img/posts/2017-04-20-jekyll-serve.png&quot; alt=&quot;Jekyll serve&quot; class=&quot;img-responsive&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Finalmente, en la capeta &lt;em&gt;site&lt;/em&gt; contendrá el resultado de proceso de generación estática que subiremos al servidor.&lt;/p&gt;
&lt;h3 id=&quot;seo&quot;&gt;SEO&lt;/h3&gt;

&lt;p&gt;Instalamos &lt;em&gt;jekyll-sitemap&lt;/em&gt; &lt;a href=&quot;https://github.com/jekyll/jekyll-sitemap&quot;&gt;[1]&lt;/a&gt;, luego editamos el fichero Gemfile:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-config&quot; data-lang=&quot;config&quot;&gt;&lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;jekyll-feed&quot;&lt;/span&gt;, &lt;span class=&quot;s2&quot;&gt;&quot;~&amp;gt; 0.6&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;jekyll-sitemap&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;jekyll-paginate&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Y lanzamos &lt;em&gt;jekyll build&lt;/em&gt;. Si queremos generar para &lt;em&gt;producción&lt;/em&gt; tenemos que establecer:&lt;/p&gt;
&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;export JEKYLL_ENV=production
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;h3 id=&quot;disqus&quot;&gt;DISQUS&lt;/h3&gt;

&lt;p&gt;Registramos la web en disqus &lt;a href=&quot;https://disqus.com/websites/&quot;&gt;[2]&lt;/a&gt; y ponemos en el _config.yml:&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;url: &quot;https://felixjosehernandez.es&quot;
disqus:
    shortname: felixjosehernandez
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content><author><name></name></author><summary type="html">Jekyll es un generador de sitios estáticos para blogs. Esto que és? pues tener un snapshot del blog en el servidor web, vamos que nos olvidamos de las base de datos, php, python, java, etc. Entre las principales ventajas está la velocidad de respuesta y el poco uso de recursos, pero es muy técnico, con mucha línea de comandos y trabajo de ficheros. No obstante, es como todo, si tu cliente es ordenado, le das un editor de Markdown y luego que te pase los ficheros para colocarlos en el servidor. Para nosotros es ideal, edito con el vim y listo.</summary></entry></feed>