jackyzha0 / quartz

🌱 a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites
https://quartz.jzhao.xyz
MIT License
5.93k stars 2.37k forks source link

Ability to rename "Table of Contents" and "Explorer" #1257

Open archvalmiki opened 3 days ago

archvalmiki commented 3 days ago

I couldn't find a way to re-title the Table of Contents or the Explorer sections. I didn't find a setting for the title in the Table of Contents plugin. Nor d

I personally use "Table of Contents" to refer to the overall Table of Content of the site and "Outline" to refer to headings on a page. The current usage language is confusing (for me), and I feel there's a big population of people who are like me, regarding this usage.. Would be great to allow changing these titles easily.

archvalmiki commented 3 days ago

Update: Looks like I can modify the locale file for this. Eg: quarts/i18n/locales/en-US.ts

archvalmiki commented 2 days ago

Actually, seems like there is an inconsistency. Explorer title can be set in the layout TS file while the title for TOC needs to be set in localization. Is there a recommended / proper way of doing things?

jackyzha0 commented 2 days ago

localization shouldn't need to be edited by you, it should be a component option

feel free to make a pr for this