| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Use '0-9' instead of '\d' for matching numbers.
|
|
|
|
| |
useful for slugs like camp-2020
|
|
|
|
| |
Remove extraneous blank line.
|
| |
|
|
|
|
| |
Change `p` call to `err`
|
|
|
|
| |
Separate mistune import from imports from standard lib.
|
| |
|
|
|
|
|
|
|
|
| |
* bin/html (html): Add argument `lm` -- langmap and add handling to
insert lang block if the news item is available in more than one
language.
(process): Generate language map via `langmap` and pass it to the
`html` call.
|
|
|
|
| |
* bin/html (langhtml): New function.
|
|
|
|
| |
* bin/html (PH): Add 'lang' placeholder.
|
|
|
|
| |
* bin/html (lhref): New function.
|
|
|
|
| |
* bin/html (langmap): New function.
|
|
|
|
|
|
|
|
|
|
|
| |
* bin/html (slug): Add regex to identify ISO 639-1 string in file
name. Return a tuple containing the file 'slug' and the IS0 639-1
string. The second element of the tuple is None when ISO 639-1 string
is not found in the file name.
(html): Read ISO 639-1 string into `l` and return it as the third
element.
(process): Add handling to write localized version at `SLUG/XX` where
`XX` is a ISO 639-1 string.
|
|
|
|
| |
* bin/html (write): Set permission on file.
|
|
|
|
| |
* bin/html (author): Add period (.) to the regex.
|
|
|
|
| |
* bin/html (SECTIONS): Add article.
|
|
|
|
|
|
|
|
|
| |
* bin/html (PH): Add author field.
(author): New function.
(html): Set author if needed.
* scss/style.scss: Update styling for '.meta'. Add styling '.author'
and '.date' divs under meta.
* templates/html/article.html: Add author in meta div.
|
|
|
|
|
|
|
|
|
|
|
| |
Update html to generate html for all sections written in
markdown (news, articles).
* bin/html (SECTIONS): New variable.
(files): Add arg `sec`.
(html, process): Rewrite functions.
(run): Process different sections.
* templates/html/news.html: Template NEW-ITEM-TITLE -> ITEM-TITLE.
|
| |
|
| |
|
|
|