question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE] author: nil?

See original GitHub issue

Describe the feature you want 描述你的功能需求

  • Is it possible to disable the author?
  • Another issue: I used ox-hugo to convert org file to markdown. Then I have author = ["author"] instead of author = "author" However, the first one gives me an error message: execute of template failed: template: partials/plugin/link.html:7:16: executing "partials/plugin/link.html" at <safeHTML>: error calling safeHTML: unable to cast []string{"author"} of type []string to string

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
kaushalmodicommented, Apr 3, 2022

For any ox-hugo user coming across this issue thread, you can make ox-hugo export your author list in authors front-matter instead of the default author by adding this at the top of the Org file(s):

#+hugo_front_matter_key_replace: author>authors

This key replacement feature is documented here.

Ref: https://github.com/kaushalmodi/ox-hugo/issues/608#issuecomment-1086930066

1reaction
gnohzcommented, Aug 6, 2021

As for the option of disabling author, I tried to delete the following <span class="post-author"> {{- $options := dict "Class" "author" "Destination" $authorLink "Title" "Author" "Rel" "author" "Icon" (dict "Class" "fas fa-user-circle fa-fw") "Content" $author -}} {{- partial "plugin/link.html" $options -}} </span> in the layouts/posts/single.html, and it no author appears, also “published” with lower case “p”.

But I also like your idea, to set

[author]
  name = " "

and it’s simpler.

Thank you so much for your time and help here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nil (Nil Series #1) by Lynne Matson | eBook | Barnes & Noble®
Lynne Matson is the author of the Nil trilogy. She grew up in Georgia in a house full of books and a backyard...
Read more >
What is NIL in college football? Here's what you need to know
Literally, it means "name, image, and likeness," and refers to college athletes' ability to profit off themselves. NIL gives players the right ...
Read more >
Feature request: special handling for nil current_user? #47
If current_user is nil, assume no roles match, for present roles, ... I wonder if the authors/chaps doesn't really do apps without logged...
Read more >
Dan Canova, Author at The NIL Deal
Dan Canova is a Cofounder and Managing Editor of The NIL Deal. Story tips can be sent to dan@nildealnow.com and on Twitter @DanCanova....
Read more >
Vdekje në Nil — Reader Q&A - Goodreads
Readers' questions about Vdekje në Nil. 14 questions answered. ... Although they all feature the same detective, there is no story arc across...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found