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.

article_square

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.

author_description

Description of author of the page

  1. $author = author of the page

gallery_buttons

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"

gallery_square

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.

index_dir

Code block to show the list of directories

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

index_files

Block to show list of files

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

index_generic_files

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

languages_links

languages_rows

line_links

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

localized_date

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

map_page

How subitems in map are showed.

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

navbar_items

note

note_link

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.

page_image

page_image_gallery

post_link

post_page_links

permalink

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 www.example.com, from settings

quote

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

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

replace_language

tags_list

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

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

tags_page_items

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

up_index

video_link

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

  1. $filelink = relative link to the file

youtube_link

Link to embed a Youtube video.

  1. $p1 = the Youtube number of the video

Last update: 2023-08-05 21:07