Coder Social home page Coder Social logo

Comments (8)

dencold avatar dencold commented on July 1, 2024 1

@ryanwalls this is now also fixed. I have been monitoring the efforts to standardize Author metadata on hugo:
gohugoio/hugo#1850

We now use firstName lastName and id in the config.yaml for author metadata. Make sure these are set for hasper to pull into its content generation. The short names used in the site are derived from the id field. So if you'd like to see your full name in post summaries, just use your full name as the id.

Hope that helps.

from hasper.

dencold avatar dencold commented on July 1, 2024 1

Hi @kirtan403. Author pages are generated by creating a markdown file in a sub-directory of content called author. So if you posted with a username of kirtan403, for example, you could just have something like this:

my-hugo-site/
├── content/
│   ├── author/
│       ├── kirtan403.md

Let me know if that helps. Also, please create new issues when raising these kind of questions, this ticket has been closed out. Thanks!

from hasper.

dencold avatar dencold commented on July 1, 2024 1

Great, glad to hear it @kirtan403. Note that the markdown file can have anything you'd like. You can check out the way I did it on my blog here:
https://www.dencold.com/author/dennis/

The markdown for this is located on github:
https://github.com/dencold/dencold-dot-com/blob/master/content/author/dennis.md
https://raw.githubusercontent.com/dencold/dencold-dot-com/master/content/author/dennis.md

Have fun getting creative :)

from hasper.

dencold avatar dencold commented on July 1, 2024

Yep, also my own preference. I like showing shortnames when displaying authors in a list template. Will have a think on this and see if I can make this work for both of us.

from hasper.

ryanwalls avatar ryanwalls commented on July 1, 2024

@dencold Yeah, this is a low priority. The short names are fine for me.

from hasper.

kirtan403 avatar kirtan403 commented on July 1, 2024

@dencold Author page is not getting generated by default. Is there anything I want do for it?

from hasper.

kirtan403 avatar kirtan403 commented on July 1, 2024

@dencold Sure, I'll take care of it.

I tried and it created the index.html inside author in public folder. What should be the content of the kirtan.md file? I created the empty file for testing and didn't work.

I am new to hugo. Migrating my ghost blog to hugo. Sorry if I missed some basics.

UPDATE: After looking at the template, I got it working. Thanks 😄

from hasper.

kirtan403 avatar kirtan403 commented on July 1, 2024

Thank you so much :)

from hasper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.