Skip to content

Commit 8ba9618

Browse files
committed
export/html: Fix node_field/title template: checking the presence of document type
1 parent 8ee7eda commit 8ba9618

File tree

1 file changed

+2
-1
lines changed
  • strictdoc/export/html/templates/components/node_field/title

1 file changed

+2
-1
lines changed

strictdoc/export/html/templates/components/node_field/title/index.jinja

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
{%- if sdoc_entity.reserved_title %}
33
<sdoc-node-title
44
data-level="{{ sdoc_entity.context.title_number_string }}"
5-
{%- if view_object.document_type.is_pdf() -%}
5+
{# FIXME: Find a better way than checking the presence of document type. #}
6+
{%- if view_object.document_type is defined and view_object.document_type.is_pdf() -%}
67
{# to make anchor: #}
78
id="{{ view_object.render_local_anchor(sdoc_entity) }}"
89
{%- endif -%}

0 commit comments

Comments
 (0)