Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

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

New Nikola Galleries

One of the re­qui­re­men­ts I had for Niko­la my sta­tic si­te/­blog ge­ne­ra­to­r, was that it should build ima­ge ga­lle­rie­s. And that it should show the ima­ges sorted by da­te, and that it should be func­tio­nal and ni­ce.

We­ll, the ni­ce part has been la­cking for a long ti­me. But I thi­nk I ha­ve a grasp on it no­w.

He­re's be­fo­re:

Leer más…

Nuevo proyecto: Nikola Event Kit

PyAr or­ga­ni­za mu­chos even­to­s. Ti­po me­dia do­ce­na al año, o má­s. Esos even­tos in­clu­yen Py­Cam­p, Py­Con y va­rios Py­Da­ys.

Los Py­Da­ys son es­pe­cia­le­s, son nor­mal­men­te un so­lo tra­ck, un so­lo día (ob­vio­), y or­ga­ni­za­dos en uni­ver­si­da­des, pa­ra es­tu­dian­tes, y mu­chas ve­ces por es­tu­dian­tes. Un obs­tá­cu­lo es có­mo ar­mar la in­fra­es­truc­tua web pa­ra un even­to así. Hay una app we­b2­py he­cha por Ma­riano Rein­gar­t, pe­ro sien­to que es co­mo de­ma­sia­do. Ade­má­s, ar­mar hos­tin­g, ba­ses de da­to­s, cus­to­mi­zar­la, etc... ¡Es mu­cho la­bu­ro! Así que pen­sé, em­pu­ja­do por Juan Ro­dri­guez Mon­ti, ver qué se pue­de ha­cer sin ar­mar na­da tan com­pli­ca­do. Y es bas­tan­te. Ba­sa­do en Niko­la mi ge­ne­ra­dor de si­tios es­tá­ti­co­s, creé un si­tio tem­pla­te pa­ra even­tos chi­co­s, co­mo Py­Da­ys, lla­ma­do Niko­la Event Kit

La me­ta es que pue­das ar­mar el con­te­ni­do bá­si­co, for­mu­la­rio de ins­crip­ció­n, ca­len­da­rio, y lo ob­vio que ha­ga fal­ta, en un día. Y des­pués te to­más un día o una se­ma­na pa­ra cu­to­mi­zar el "look" del si­tio.

Y lis­to, no hay que ha­cer de­plo­y­men­ts mas allá de co­piar HT­ML a al­gu­na par­te.

Si que­rés pro­bar­lo, acá hay un si­tio de­mo y acá es­tá el có­di­go lis­to pa­ra fo­rkear pa­ra un even­to.

¡Di­viér­tan­se!

New Nikola Feature: SVG Charts via Pygal

I can't sleep, so I just whipped to­geth­er a do­cu­tils di­rec­tive that wraps py­gal for Niko­la, my stat­ic site and blog gen­er­a­tor.

So, how do you use it? LIke this:

.. chart:: Bar
    :title: 'Browser usage evolution (in %)'
    :x_labels: ["2002", "2003", "2004", "2005", "2006", "2007"]

    'Firefox', [None, None, 0, 16.6, 25, 31]
    'Chrome',  [None, None, None, None, None, None]
    'IE',      [85.8, 84.6, 84.7, 74.5, 66, 58.6]
    'Others',  [14.2, 15.4, 15.3, 8.9, 9, 10.4]

Leer más…


Contents © 2000-2023 Roberto Alsina