picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.83k stars 617 forks source link

How can I show the Description in Metadata on the top of my page? #428

Closed Tyxiang closed 6 years ago

Tyxiang commented 6 years ago

Just like the official website. Thank you.

PhrozenByte commented 6 years ago

Unfortunately I'm not sure what you're trying to achieve, can you please further describe what you're trying to do?

Tyxiang commented 6 years ago

Thank you for your attention. I want to implement the layout in the picture: 20180427181054

I found that the contents of part A and part C come from the Metadata in the .md file.

PhrozenByte commented 6 years ago

You can access a page's meta data (e.g. the page's description) in your Twig template using {{ meta.description }}.

Tyxiang commented 6 years ago

I see!