summaryrefslogtreecommitdiffstats
path: root/bin/html
Commit message (Collapse)AuthorAgeFilesLines
* add handling for "case-study" sectionrsiddharth2021-03-041-1/+1
| | | | | * bin/html (SECTIONS): add "case-study" * templates/html/case-study.html: Template for case-study section.
* bin/html: update slugrsiddharth2020-09-181-1/+1
| | | | Use '0-9' instead of '\d' for matching numbers.
* feat: support numbers in slugAkshay S Dinesh2020-09-181-1/+1
| | | | useful for slugs like camp-2020
* bin/html: update markdownrsiddharth2020-09-141-1/+0
| | | | Remove extraneous blank line.
* bin/html: format via blackrsiddharth2020-09-141-40/+47
|
* bin/html: fix markdownrsiddharth2020-09-141-1/+1
| | | | Change `p` call to `err`
* bin/html: add spacingrsiddharth2020-09-141-0/+1
| | | | Separate mistune import from imports from standard lib.
* switch to mistune markdown parserKarthik2020-09-141-8/+4
|
* add i18n supportrsiddharth2020-07-251-2/+7
| | | | | | | | * 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: add langhtml.rsiddharth2020-07-251-0/+12
| | | | * bin/html (langhtml): New function.
* bin/html: update PH.rsiddharth2020-07-251-0/+1
| | | | * bin/html (PH): Add 'lang' placeholder.
* bin/html: add lhref.rsiddharth2020-07-251-0/+7
| | | | * bin/html (lhref): New function.
* bin/html: add langmap.rsiddharth2020-07-251-0/+18
| | | | * bin/html (langmap): New function.
* bin/html: detect i18n filesrsiddharth2020-07-251-6/+9
| | | | | | | | | | | * 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: Update write.rsiddharth2019-07-061-0/+5
| | | | * bin/html (write): Set permission on file.
* bin/html: Update author.rsiddharth2019-05-181-1/+1
| | | | * bin/html (author): Add period (.) to the regex.
* bin/html: Update SECTIONS.rsiddharth2019-05-181-1/+1
| | | | * bin/html (SECTIONS): Add article.
* bin/html: Add ability set author.rsiddharth2019-05-181-0/+14
| | | | | | | | | * 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.
* bin: Refactor html.rsiddharth2019-05-181-18/+20
| | | | | | | | | | | 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.
* bin/html: files: Ignore backup files.rsiddharth2019-05-171-1/+10
|
* bin/html: Add fok.rsiddharth2019-05-171-0/+9
|
* bin/news -> bin/htmlrsiddharth2019-05-161-0/+134