Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
gautam Member
@gautamz07 · Joined 8 years ago · 16 posts · 6 topics · 0 reputation
Badges
Recent posts
-
How to add common conditional banner image for blog post headers
· 8 years ago
Alright issue resolved , apparently i needed to add the following line of code to my blog.md file:  without this the image i believe is not picked
-
How to add common conditional banner image for blog post headers
· 8 years ago
ok almost there , thanks for your patience in helping me out @paul . So i have the following lines of code now: {% set generic_main_banner_image = page.parent.media.images|first %} {% set blog_image
-
How to add common conditional banner image for blog post headers
· 8 years ago
My folder structure is the following: images 01.home 02.blog my-first-blog-post default.md blog.md someimage.jpg What i want to do is access the image inside the images folder and add it as a ba
-
How to add common conditional banner image for blog post headers
· 8 years ago
How do i set the blog_image to the image in my images folder ( name of default image is default_banner_image.jpg ). The path of my images folder is user/pages/images.
-
How do i select all tags in my twig template in grav?
· 8 years ago
Thanks for that @hugoaf , what exactly is \blog-path here though ? is it something set in the header of the main blog page ? can you show me an example of how blog-path would look ?
-
How to add common conditional banner image for blog post headers
· 8 years ago
I have added the images folder inside my pages folder, now in my template that loads each indivisual blog post , i have the following code: {% set blog_image = page.find('/images').media['indivisual-a
-
How to turn indivisual blog page <h1> into <h4> on listing page?
· 8 years ago
Thanks @paul , i instead just did this: --- title: 'My Blog post one' visible: true summery: 'Pellentesque ornare mi nec elementum fringilla. Nam aliquam urna metus, vel convallis leo vulputate ut. Se
-
How to turn indivisual blog page <h1> into <h4> on listing page?
· 8 years ago
I have the following test page for my blog in grav : --- title: 'My Blog post one' visible: true --- #My blog post one Pellentesque ornare mi nec elementum fringilla. Nam aliquam urna metus, vel co
-
How to change the highlight code css theme to something other then default?
· 8 years ago
Got it , i have to edit the highlight.yaml file. Thanks for the help !! 🙂
-
How to change the highlight code css theme to something other then default?
· 8 years ago
@dimitrilongo: title: Sample Code With Custom Theme highlight: theme: monokai Thanks @dimitrilongo , but what if i want to set a global theme for all my blog pages ?