Theme - Display author and date variables twig code error

Created on 20 September 2023, over 1 year ago
Updated 4 October 2023, about 1 year ago

Hello all,

Problem/Motivation

On the file templates/content/node.html.twig, the twig code is written like this:

{% trans %} Submitted by %author_name% on %date% {% endtrans %}

Steps to reproduce

  • Install the theme
  • Activate "Display author and date information" on any content type
  • Create a content on that type
  • It doesn't print the info

Proposed resolution

Changing the code like this would work:

{% trans %} Submitted by {{ author_name }} on {{ date }} {% endtrans %}

Best,
Orkut

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇹🇷Turkey orkut murat yılmaz Istanbul

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024