The Available Chunks

I define with "chunks" some small pieces of html, that are substited to text documents only in some parts of resulting html. I would expand these possibility, and I will try to expand this feature. Chunks are in the /site/chunks directory. You can modify them, and your results will change. When they are used with some parameters, parameters are expanded like Python templates, and you should use names like $p1, $p2, etc etc: you must place parameters in your chunk file depending on what you have to obtain. If you do bad changes or want to reset all, you can simply delete one or all files that are in directory /site/chunks, and they will be automatically rebuilded.


The links for the archives

  1. $file = file name that will be linked
  2. $year = year of the file
  3. $month = month


How items on archives summary page are displayed.

  1. $file = file name that will be linked
  2. $description = description of the archive
  3. $year = year of the archive
  4. $month = month for archive


Used for the part regarding one post (as an article) in index and archive posts directory. If you put a $summary part in this chunk, you can have the beginning of the article to be inserted in the list.


Description of author of the page

  1. $author = author of the page


  1. $firstimage=default image, used as starting "button". It's the thumbnail of the first image in the gallery
  2. $lightboximages=items of images list, the are composed in a list used from the chunk (as Python or Json mode)


These are for to describe the behaviour of the buttons in the gallery pages.

  1. $linkindex = link to the main page of the gallery
  2. $linkfrst = link to first image
  3. $linkfrstdisable = part set to the word "disabled"
  4. $linkprev = link to previous image
  5. $linkprevdisable = part set to the word "disabled"
  6. $linknext = go to next image
  7. $linknextdisable = part set to the word "disabled"
  8. $linklast = link to last image
  9. $linklastdisable = part set to the word "disabled"


The blocks used for textual lists or thumbnails in the main page of the single gallery.

  1. $file = the text part of the base file name
  2. $image = base name of the image file, including extension.


Code block to show the list of directories

  1. $link = link address
  2. $linkname = link showed


Block to show list of files

  1. $link = link address
  2. $linkname = link showed


Code block for listing files with generic extension. This is used when $listgeneric() is inserted in a file.

  1. $link = link address
  2. $linkname = link showed




Row of the links between pages in posts. It contains the home page of the blog, the previous and the next page in the timeline.

  1. $home = link to the home page
  2. $prev = link to previous
  3. $next = link to next


A small part of html and a script that will print the date passed from some functions in the current format of the browser.

  1. $vyear = year
  2. $vmonth = month
  3. $vday = day
  4. $vhour = hour
  5. $vminute = minutes
  6. $vsecond = second


How subitems in map are showed.

  1. $\link=the link
  2. $\linktitle=description, rendered as title
  3. $\linkpos=directory that is the container




The text showed when we would have a standard note at the end of the document. It has not the need of parameters, due the note (created inscribing into a <n:textnote>) has always the same id to create anchor, and the link formes is always the same (two notes are not allowed by application, also if they can be done with other methods). It can be used to write different link names with different languages.






The template for permalink, inserted when using template ${permalink}.

  1. $p1 = the html file name
  2. $p2 = permalink generation title, like "this is page is about me"
  3. $p3 = site name, like, from settings


Part used for short quotations (should be the tag <Q>)

  1. $quoted = line that is replaced by the application, the quoted part of text.



The list of all tags, taken from file names in directory /site/tags.

  1. $p1 = relative link to the file
  2. $p2 = page title


How a page is displayed into the tags files, in directory /site/tags: please consider that default content has a new line at the end, due it will be processed as markup.

  1. $p1 = relative link to the file
  2. $p2 = page title



A block of html code used to make a link to a video

  1. $filelink = relative link to the file


Link to embed a Youtube video.

  1. $p1 = the Youtube number of the video

Last update: 2020-09-06 12:11