Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

New to Grav - html/ posts page display issues

Started by abbey shannon 8 years ago · 2 replies · 642 views
8 years ago

Hi was just trying to add in something like this

title : mexican food bowl
cookingtime: 25mins
cals: 400
kjs: 2300

and then call it doing like {{ post.cookingtime }} or {{cookingtime}}

but I can't get anything working. Basically I want to have like a page on nutrition which then is pulling recipes into it but i can't get it showing up things like post.summary or those extra ones i added in.

Where i am going wrong here? Again i'm totally new to it and was basically wanting to convert my html to grav site as i had it in wordpress but rewritten in as wordpress was too slow and i didnt want all the extra plugins etc.

Can anyone give me some advice?

code-plus|471x500

Also - I was searching for answers online but couldn't find any - is there a way i can strip the <p> tag that gets output on some of the markdown content at all?

last edited 02/12/19 by abbey shannon
8 years ago

OK so i figured out i needed post.header.cal etc for these to display.

Was wondering though is there a way I can get the cal info from the header into the content markdown as well instead of writing it twice?

8 years ago

ok..i actually figured that out as well :face_with_hand_over_mouth:, JUST wondering - when i've finished the local setup is it as easy as transferring everything to the server or is there a special deployment process?

Suggested topics

Topic Participants Replies Views Activity
General · by jean-louis67, 3 weeks ago
2 312 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 312 3 weeks ago
General · by Veehem, 4 weeks ago
0 264 4 weeks ago
General · by milkboy, 4 weeks ago
0 267 4 weeks ago
General · by ian russell, 1 month ago
2 338 1 month ago