zzossig / hugo-theme-zzo

Make a blog with hugo zzo theme!
https://themes.gohugo.io//theme/hugo-theme-zzo/en/
MIT License
739 stars 260 forks source link

Ability to define file name in code listing snippet #468

Open szpak opened 2 years ago

szpak commented 2 years ago

Sometimes, I would like to place 2 or 3 code snippets and it is important for people which file is which and what are the file names.

I would be good to be able to redefine a default code snippet header with a file name. For example, instead of: image

I would like to be able to have "SpockConfig.groovy" used instead of "Groovy" in the header.

The parameter could be passed as the others, e.g.

    ```groovy {hl_lines=[6,9,17], file_name="SpockConfig.groovy"}
        //my source code
    ```