diff --git a/core/modules/system/templates/time.html.twig b/core/modules/system/templates/time.html.twig index 521df56..183b834 100644 --- a/core/modules/system/templates/time.html.twig +++ b/core/modules/system/templates/time.html.twig @@ -25,4 +25,4 @@ * @see http://www.w3.org/TR/html5-author/the-time-element.html#attr-time-datetime */ #} -{{ html ? text|raw : text }} +{{ html ? text|raw : text }} diff --git a/core/themes/classy/templates/time.html.twig b/core/themes/classy/templates/time.html.twig new file mode 100644 index 0000000..521df56 --- /dev/null +++ b/core/themes/classy/templates/time.html.twig @@ -0,0 +1,28 @@ +{# +/** + * @file + * Default theme implementation for a date / time element. + * + * Available variables + * - timestamp: (optional) A UNIX timestamp for the datetime attribute. If the + * datetime cannot be represented as a UNIX timestamp, use a valid datetime + * attribute value in attributes.datetime. + * - text: (optional) The content to display within the