Comments (8)
@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.
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.
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.
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.
@dencold Yeah, this is a low priority. The short names are fine for me.
from hasper.
@dencold Author page is not getting generated by default. Is there anything I want do for it?
from hasper.
@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.
Thank you so much :)
from hasper.
Related Issues (20)
- Add CHANGELOG
- Hasper errors when the author parameter is not set
- Drop "{{.Site.BaseURL}}" from templates HOT 1
- Redo author configuration HOT 3
- Cleanup old banner templates
- Consolidate html head includes
- Improve author styling
- Fix author links
- Clean up footer.html partial HOT 1
- Update README with author configuration
- Create better overview/screengrab for introduction
- Add attribution logic for photos on site
- Add .Site.BaseURL into all theme paths
- Remove jquery/scripts from hasper
- Fix RSS config variables
- Upgrade to hugo v0.18
- Post Image Size HOT 4
- `-f yaml` isn't supported by hugo HOT 1
- can't get the author avatars working HOT 1
- displayName is never used
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hasper.