GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.33k stars 418 forks source link

Nice to Have: a parameter for dir name and one for site name #757

Open JOduMonT opened 4 years ago

JOduMonT commented 4 years ago

a parameter for the name folder instead of using the %namesite

Why I request this ?

Because my name have almost 60 characters any linux, such as others OS, have a limit of characters in their path so when I render the website I have error saying I reach the limit of /home/my not so long username/Documents/Publii/sites/my 60characters_for_the_name_of_my_site/outputs/...

My Workaround ?

generate the site with a short name for my site than in site.config.json

  1. replace the displayName and metaTitle with my long name for my site
  2. replace every %sitename with %metaTitle

render the website publish the website

dziudek commented 2 years ago

Your case is an edge-case in my opinion (limit of the name), but I see other rationale reason for this feature - somebody can want to use longer name in the Publii UI and short name for the catalog e.g.: