Skip to content

Commit ea29056

Browse files
committed
Catch undefined vars
1 parent 70e1008 commit ea29056

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

roles/generate-jenkins/templates/DOCUMENTATION.j2-CUSTOM

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
{% from 'common_macros.j2' import noter with context %}
33
---
44
title: {{ project_name }}
5+
{% if project_categories is defined and project_blurb is defined %}
56
{% if project_categories and project_blurb %}
67
tags:
78
{% for tag in project_categories.split(",") %}
89
- {{ tag | title }}
910
{% endfor %}
1011
description: "{{ noter(project_blurb) | trim }}"
1112
{% endif %}
13+
{% endif %}
1214
---
1315
{% include "README_SNIPPETS/DO_NOT_EDIT.j2" | trim %}
1416

0 commit comments

Comments
 (0)