Jieiku / abridge

Fast & Lightweight Zola Theme
https://abridge.pages.dev/
MIT License
147 stars 41 forks source link

set a different author on each post #90

Closed diniremix closed 1 year ago

diniremix commented 1 year ago

@Jieiku thank you very much for sharing this theme for Zola

it is possible to set a different author on each post example:

post

+++
title = "Archivos Binarios en Rust, parte 1"
description = "De regreso a los archivos .DAT."
date = 2022-07-01

[taxonomies]
tags = ["rust"]

[extra]
authors = ["another author"]

toc = true
keywords = "demo, demo1, demo2"
+++

and that is different from what is defined in the config.toml file

author = "Diniremix" # Put Your Name here
author_show = true
readtime = true

Please tell us about your environment:

my personal blog, is built with the after-dark theme, and I'm migrating it to abridge

sorry for the bad translation, I don't speak english, I use a translator.

Jieiku commented 1 year ago

If you have Author taxonomy defined in config.toml then you can simple do this for your post:

+++
title = "Archivos Binarios en Rust, parte 1"
description = "De regreso a los archivos .DAT."
date = 2022-07-01

[taxonomies]
tags = ["rust"]
authors = ["another author"]

[extra]
toc = true
keywords = "demo, demo1, demo2"
+++

However I will add an option for extras so that it can be done without the taxonomy. If you do use the Taxonomy for the author instead of extra then the authors name is a clickable link.

Will push the changes soon.

Jieiku commented 1 year ago

I just added the change 481ad16b3f0ce457a95d9fc585783dd8d297aac0

+++
title = "Abridge Zola Theme"
date = 2022-05-17

[taxonomies]
categories = ["Features"]
tags = ["config"]

[extra]
authors = ["IronMan", "Batman"]
+++

2022-09-16_18-31-52

diniremix commented 1 year ago

wow! 🥳 👍

authors on post

thanks a lot!

Jieiku commented 1 year ago

I just changed it to be a comma instead of the word "and" which should work better for non english blogs.

diniremix commented 1 year ago

that's right, thank you. you could close this issue.