Skip to content

Commit

Permalink
include text source only if filled
Browse files Browse the repository at this point in the history
  • Loading branch information
fmatter committed Apr 13, 2024
1 parent 7e9dc78 commit 3b5b129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lingdocs/data/model_templates/html_util.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{%else%}
{% set page_string = ""%}
{% endif %}
<a href='#source-{{ref.source.id}}'>{{ref.source.refkey(year_brackets=None)}}</a>{{page_string}}{% elif "Text_ID" in ctx.data %}
<a href='#source-{{ref.source.id}}'>{{ref.source.refkey(year_brackets=None)}}</a>{{page_string}}{% elif "Text_ID" in ctx.data and ctx.data["Text_ID"] %}
{{txt_src(ctx.data)}}{% else %}
{% endif %}
{%- endmacro %}
Expand Down

0 comments on commit 3b5b129

Please sign in to comment.