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

Pedro M Regular

@pmoreno · Joined 6 years ago · 412 posts · 108 topics · 102 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Page without Primary Image · 3 years ago

    @Thorben, Future2021 and Editorial themes already have implemented the option to show or not the primary image You can see them in above links to reuse the code in your project

  • Collection without pages that have a certain header-value · 3 years ago

    @pamtbaau I was thinking in that option too. 👍 Great

  • Collection without pages that have a certain header-value · 3 years ago

    Maybe you could try something like this: {% set collection = page.collection() %} {% for child in collection %} {% if child.header.hide_teaser == false or child.header.hide_teaser is not defined %

  • Show custom meta data on page content · 3 years ago

    I think you should concatenate site title with page metadata. For example: <h3>{{ site.title|e('html') }} - {{ page.metadata.slogan|raw }}</h3>

  • TNT search plugin - image in search result · 3 years ago

    Try with: {% set banner = page.media.images|first %} {% if banner %} <div class="search-image"> <a href="{{ page.url }}">{{ banner.cropZoom(100,100).html|raw }}&lt

  • Need help to get cropZoom and IMG tag working · 3 years ago

    @ezpz, I think you could try the following: {% set image = page.media.images|first %} {% if image %} {{ image.cropZoom(600,200).html()|raw }} {% endif %}

  • Custom.css not working at all with default quark theme · 3 years ago

    @eurico, Have you tried loading your custom.css file with higher priority over other styles documents? For example: {% do assets.addCss('theme://assets/css/custom.css', {'priority': 10}) %}

  • Need help with display selected option key · 3 years ago

    You could the following: In social.yaml: header.social_media: name: social type: list label: My socila links fields: .title: type: select label: Name of network

  • Automatic image resize in blog post · 3 years ago

    @ratm if you insert an image into the blog page content (in markdown format), with the editorial theme you can use the 'image fit' class and it will fit 100% width. You can try the following: ![Some A

  • Automatic image resize in blog post · 3 years ago

    Hi @ratm. Hello. I'm working on a new version of the Editorial theme, including the option to set the width and height of the featured image on each page (just like the Future2021 theme), which might