- {% if node.title %}**{{ node.title }}**{% else %}Journal Entry{% endif %}
  id:: {{ node.id }}
  {% if node.tags and node.tags | length > 0 -%}
  tags:: {% for tag in node.tags %}#[[{{ tag }}]]{% if not loop.last %}, {% endif %}{% endfor %}
  {% endif -%}
  {% if node.project -%}
  project:: [[{{ node.project }}]]
  {% endif -%}
  -
  {{ node.content | replace(from="\n", to="\n  ") }}
  {% if node.metadata.tasks and node.metadata.tasks | length > 0 %}
  - ## Tasks
    {% for task in node.metadata.tasks %}
    - {% if task.completed %}DONE{% else %}TODO{% endif %} {{ task.description }}
    {% endfor %}
  {% endif %}
  {% if node.metadata.highlights and node.metadata.highlights | length > 0 %}
  - ## Highlights
    {% for highlight in node.metadata.highlights %}
    - {{ highlight }}
    {% endfor %}
  {% endif %}
  {% if node.metadata.learnings and node.metadata.learnings | length > 0 %}
  - ## Learnings
    {% for learning in node.metadata.learnings %}
    - {{ learning }}
    {% endfor %}
  {% endif %}
  {% if node.relates_to and node.relates_to | length > 0 %}
  - ## Related
    {% for rel in node.relates_to %}
    - [[{{ rel }}]]
    {% endfor %}
  {% endif %}
