retypeapp / retype

Retype is an ✨ ultra-high-performance✨ static site generator that builds a website based on simple text files.
https://retype.com
Other
1.01k stars 201 forks source link

How do I make a folder name fully lowercase? #664

Closed Nzii3 closed 6 months ago

Nzii3 commented 6 months ago

I am wanting to make the folder name below lowercase. I named it lowercase in my editor and also tried using an index.yml and did it lowercase there but it did not work and only shows capitalized. image

geoffreymcgill commented 6 months ago

Hi @Nzii3,

You can use either of the following techniques.

  1. Add a title to the page as # v1
# v1

test
  1. Add the label page setting:
---
label: v1
---
# My Page

test

If all you do is add a v1.md page to your project and do not add a page title or label, Retype will try to infer the page title from the filename, and by default, Retype will capitalize the first letter of that page title.

Hope this helps.

Nzii3 commented 6 months ago

@geoffreymcgill The page is a folder, so I can't set a page title. I want the folder name to be not capitalized.

geoffreymcgill commented 6 months ago

The same label setting works for both pages and folders. You can set using either of the following techniques:

  1. Add an index.yml file to the folder and use the label setting:
label: v1
  1. Add a default page to the folder, or add default page and set the label:
# v1

Test

or

---
label: v1
---
# Sample

Test

Hope this helps.

Nzii3 commented 6 months ago

Ok thank you. I have another question. How can I embed a website with iframe in a page? 

Nzii3 commented 6 months ago

@geoffreymcgill

geoffreymcgill commented 6 months ago

How can I embed a website with iframe in a page?

It would be best to start a new issue for this question.