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 7 years ago · 2 replies · 525 views
7 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
7 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?

7 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 Hanns Mattes, 15 hours ago
1 19 7 hours ago
General · by Andy Miller, 8 hours ago
0 17 8 hours ago
General · by Jerry Hunt, 5 days ago
2 140 2 days ago
General · by pamtbaau, 2 days ago
1 95 2 days ago
General · by Andy Miller, 2 days ago
0 79 2 days ago