Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Publicaciones sobre nikola (publicaciones antiguas, página 3)

Nikola Plans

Eng­lish on­ly!


I have not stopped work­ing on Niko­la, my stat­ic site gen­er­a­tor. Here are the plan­s:

  1. Fin­ish the theme in­­stal­l­er (so you can get a theme from the site eas­i­­ly)

  2. Im­­ple­­ment a theme gallery on the site (same pur­­pose)

  3. Fix a cou­­ple of bugs

  4. Up­­­date man­u­al

  5. Pol­ish a few theme bits

  6. Re­lease ver­­sion 3.x (new ma­jor num­ber be­­cause it re­quires man­u­al mi­­gra­­tion)

Af­ter that, I will push on projects Shore­ham (host­ed sites) and Smil­jan (plan­et gen­er­a­tor) and make them more pub­lic. Shore­ham will be­come a re­al web app for those who don't want to have their own serv­er. For free, hope­ful­ly!

Once I have that, I have no fur­ther fea­ture ideas, re­al­ly. So I need more peo­ple to start us­ing it, and that means I have to start an­nounc­ing it more.

So, stay tuned for ver­sion 3.x some­time next week.

Post-Niko­la, I will do a rst2pdf re­lease, and then will get back to work on a book.

Cambiando Colores y Fonts en Nikola

//ralsina.me/galleries/random/site-theme.thumbnail.png

Co­mo un pla­to de quake­r: abu­rri­do y bue­no.

¡Pa­ra ha­cer es­tos cam­bio­s, no ne­ce­si­tás sa­ber CSS, HT­ML ni pro­gra­ma­ció­n!

Acá es­tá el tru­co: Niko­la usa Twi­tter Boots­trap pa­ra de­fi­nir co­mo se ve en pan­ta­lla. Y ellos pro­veed un bo­ni­to for­mu­la­rio web pa­ra pro­du­cir­te una ver­sión cus­to­mi­za­da, só­lo pa­ra vo­s.

En­ton­ces si que­rés ba­rras de na­ve­ga­ción be­ren­je­na con fon­do ver­de lo­ro, y fuen­tes Co­mic Sans por to­dos la­do­s, se ha­ce con eso. Hay que cam­biar las va­ria­bles no­má­s.

Una vez que tengas tu bootstrap.zip, vas a la carpeta de tu sitio, y creás themes/mytheme/assets y lo des-zipeás ahí, con lo que deberías tener themes/mytheme/assets/css, themes/mytheme/assets/js, etc.

Creá un archivo llamado themes/mytheme/parent que contenga la palabra site.

Editá el dodo.py (o conf.py si usás nikola de git) y cambiá THEME a "mytheme".

Re­ge­ne­rá el si­tio, y lis­to, to­do an­dan­do.

Es­ta por­que­ría, por ejem­plo, la hi­ce cam­bian­do só­lo tres va­ria­bles (bod­y­Ba­ck­groun­d, tex­tCo­lo­r, and sans­Fon­tfa­mi­l­y):

//ralsina.me/galleries/random/site-c64.thumbnail.png

Sí, yo te­nía una C64

Shoreham: Blogging with Ubuntu One (a teaser)

At Canon­i­cal's On­line Ser­vices we can do cool stuff on fri­days. We do cool stuff all week, ac­tu­al­ly, but on fri­days we can do cra­zier cool stuff.

So, to­day, I ripped off a great ser­vice of­fered by http://­calepin.­co and im­ple­ment­ed a pro­to­type blog-through-Ubun­tu-One web ap­pli­ca­tion. Of course, it's pow­ered by Niko­la,

The code is ab­so­lute non­sense, and it needs to be looked at by some­one who un­der­stands Djan­go, OAu­th, OpenID, and pro­gram­ming in gen­er­al bet­ter than I do, but hey, it does work (for a very loose def­i­ni­tion of "work").

It's called Shore­ham and no, you can't have it yet.

As a teaser, here's a video. With a pony.

In the near fu­ture I will do a bet­ter post about this ex­plain­ing the code, etc.

Alva

Por eso, Al­va es pa­ra ha­cer si­tios es­tá­ti­cos di­ná­mi­ca­men­te. Si que­rés te­ner Niko­la en tu ser­ver en vez de en tu com­pu, y te­ner la con­ve­nien­cia de una he­rra­mien­ta on­li­ne, ese es el ni­cho que Al­va quie­re lle­na­r.

En­ton­ce­s, uno ins­ta­la­ría Al­va, y lo usa­ría co­mo cual­quier he­rra­mien­ta pa­ra ha­cer blogs on­li­ne, pe­ro de­trás de es­ce­na es­ta­rías usan­do Niko­la, con to­dos los be­ne­fi­cios de per­for­man­ce y se­gu­ri­dad de los si­tios es­tá­ti­co­s.

Y tal vez al­gún día yo (u otro) pon­ga un Al­va mul­tiu­ser en al­gu­na par­te, y ten­gas blogs hos­tea­do­s, sa­bien­do que to­dos los da­tos son tu­yos y que te po­dés ir cuan­do quie­ra­s.

Es­to es muy in­ma­du­ro, tan­to que no fun­cioi­na. Pe­ro acá va un ade­lan­to:

//ralsina.me/galleries/random/nikola-admin3.thumbnail.png

No hay un es­ti­ma­do de tiem­po pa­ra es­to. De­pen­de de mu­chí­si­mas otras co­sas y tal vez nun­ca su­ce­da.

Screencast de Nikola

Lo nuevo es el comando nikola init foldername, el resto es todo viejo. Básicamente, no tenés más una copia de Nikola por sitio, y está todo en un lugar centralizado.

Todavía podés hacer tus propios temas poniéndolos en themes/themename y agregar tareas, archivos, etc. La configuración en dodo.py no cambia excepto el pedacito mágico que es diferente.

En­ton­ce­s: no muy in­va­si­vo, fá­cil de mi­gra­r, y per­mi­te up­da­tes más sen­ci­llos en el fu­tu­ro, mien­tras no rom­pa­mos na­da de for­ma in­com­pa­ti­ble.

El vi­deo:


Contents © 2000-2023 Roberto Alsina