references

1. Creating a Post per folder

To create post inside a folder:

  • a) Specify section name/folder name in the front matter against variable hugo_section.
  • b) Set the menu front matter variable to the section name
  • c) Remove title variable from front matter. Create a H1 title name as the first entry in the post right above the properties values.
  • d) Create properties attribute and provide index as the name for the export file name.

2. Steps to autoexport org file as markdown

  • To autoexport file to markdown when org file is saved, set the local variable as below and remove -l from the eval expression.
  • Also ensure that init.el file has the script for creation of markdown on saving the file. https://ox-hugo.scripter.co/doc/auto-export-on-saving/

3. Creating plotly chart inside org file

  • The org file should be exported to a folder either with index or any other name.
  • Create chart.json file in the same folder where the markdown is exported.
  • Invoke using the shortcode {< chart data="chart" >} The value for data could be anything other than ‘chart’.
  • The short code should be wrapped inside #+begin_hugo #+end_hugo or directly with #+html: tag.
{< chart data="chart" >}

Data Tables

Mermaid Diagrams

Custom CSS and javascripts

Previous
Next