McShelby / hugo-theme-relearn

A theme for Hugo designed for documentation
https://mcshelby.github.io/hugo-theme-relearn/
MIT License
433 stars 187 forks source link

children: use LinkTitle instead of Title #939

Closed benbarbour closed 1 month ago

benbarbour commented 1 month ago

If I have a section with this front matter:

title: Small Cats
linkTitle: Cats, Small

I would like at least the option to have the children shortcode render "Cats, Small", but you could consider making it the default, as LinkTitle falls back to Title if it's not set.

McShelby commented 1 month ago

I guess, you're right but it's a bit of a dangerous change, as it will struck people by suprise if this happens in their installation.

Also, it does not make much sense, to sort by one field (eg. linktitle) and output the other (eg. title).

Have to think about that.

benbarbour commented 1 month ago

Good point about the sorting.

On Tue, Oct 22, 2024 at 8:59 AM Sören Weber @.***> wrote:

I guess, you're right but it's a bit of a dangerous change, as it will struck people by suprise if this happens in their installation.

Also, it does not make much sense, to sort by one field (eg. linktitle) and output the other (eg. title).

Have to think about that.

— Reply to this email directly, view it on GitHub https://github.com/McShelby/hugo-theme-relearn/issues/939#issuecomment-2429673351, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADXCI2MYY6I7BHQZ7JIF3TZ4ZY55AVCNFSM6AAAAABQMY5KYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRZGY3TGMZVGE . You are receiving this because you authored the thread.Message ID: @.***>