Author exporting can be disabled using any of these ways:
- To disable author exporting only for a specific Org file, add below
to the top of that file:
#+begin_src org
,#+options: author:nil
#+end_src
- If using /per-subtree/ flow, and if you want to disable author
exporting only for posts under specific subtrees, add below in the
property drawers of those:
#+begin_src org
:PROPERTIES:
:EXPORT_OPTIONS: author:nil
:END:
#+end_src
- To disable author exporting by default for all exporters (not just
~ox-hugo~), set ~org-export-with-author~ to ~nil~ in your Emacs
config.
**** Tweaking your Hugo template to support /list/ ~author~
#+begin_note
The ~author~ front-matter parameter is *always* exported as a
TOML/YAML list.
#+end_note
If you already have Hugo posts with the ~author~ front-matter already
set, it is possible that those values exist as single string values
instead of lists.
If so, you can use a snippet like the [[https://github.com/kaushalmodi/hugo-onyx-theme/blob/master/layouts/partials/author.html][~author.html~ partial]] used by
this doc site to parse the ~author~ parameter correctly (whether it's
a plain string or a list of strings).
***** Forcing ~author~ to be a /string/ (alternative)
If you are not comfortable with Hugo templates, you can alternatively
force the ~author~ param to be a plain /string/ instead of a /list/,
by setting it as a /custom/ front-matter parameter: