Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with formatting md frontmatter? #213

Open
Paddy888 opened this issue Mar 13, 2019 · 2 comments
Open

Help with formatting md frontmatter? #213

Paddy888 opened this issue Mar 13, 2019 · 2 comments

Comments

@Paddy888
Copy link

Paddy888 commented Mar 13, 2019

Hi,

I am trying to make some changes to the formatting of the text in the md files. For example, I would like to add some line breaks to the product blurbs. I am not that familiar with how all of this works, but I looked at the yaml docs and thought that I could do something like this:

text: |
We sell green and roasted coffee beans that are sourced directly from
independent farmers and farm cooperatives.

    We’re proud to offer a variety of coffee beans grown with great care for the environment and local communities. 

    Check our post or contact us directly for current
    availability.

However, it appears to have no affect on how it is displayed when I go to the page.

Any suggestions?

@ZoltanVeres
Copy link
Collaborator

ZoltanVeres commented Mar 23, 2019

@Paddy888 Sorry for the late reply. The root of the problem is that all your text is getting rendered into one single <p></p>, i'm referring to this piece.
For a quick solution you can just split the text by newlines and generate a <p></p> for each sentence. If you want to have better support for this, you can change the scheme in .yaml file to be a markdown instead of text and that way you could have more freedom on ho you manipulate the text. But there are some caveats with this solution see Documentation here. On other solution is to make each newline a new text item in the text collection, there's an example for that in the yaml file linked above.

@ThomasPellegrini
Copy link

@Paddy888 Sorry for the late reply. The root of the problem is that all your text is getting rendered into one single <p></p>, i'm referring to this piece.
For a quick solution you can just split the text by newlines and generate a <p></p> for each sentence. If you want to have better support for this, you can change the scheme in .yaml file to be a markdown instead of text and that way you could have more freedom on ho you manipulate the text. But there are some caveats with this solution see Documentation here. On other solution is to make each newline a new text item in the text collection, there's an example for that in the yaml file linked above.

Hi, I tried to change the scheme in .yaml.file to be a markdown instead of text but it doesn't work. I tried also to make each newline a new text item in the text collection but in this case the text that I put in the new text item it doesn't even appear. Any suggestions? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants