Skip to content

Commit

Permalink
some tempalte updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed May 10, 2024
1 parent 4a42e2a commit 5f09b29
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion list.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@
},
"letter_with_signature": {
"url": "v1/letter/letter_with_signature.jinja",
"description": null
"description": "A simple, vertically centered letter, with frontmatter, and content in a variable called \"data\".\n\nIt will also add the `{{signature}}` variable, and, if `references` is defined, will add those afterwards.\n\n\n"
}
}
2 changes: 1 addition & 1 deletion v1/biosketch/nih_biosketch_v2.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ piinfo: True
- {{ item.year }} {{ item.title }}{% endfor %}

{%endif%}
{% if contribution_list is defined %}
{% if contribution_list is defined and contribution_list is not none %}

# C. Contributions to Science

Expand Down
2 changes: 1 addition & 1 deletion v1/generic.jinja
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{ _global_frontmatter.fenced }}{{ data }}
{{ _global_frontmatter.fenced }}{{ content }}
2 changes: 2 additions & 0 deletions v1/grant/progress_report.jinja
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Progress report

Lab members are annotated in *italics*.

{% for item in references %}
#. {% if item.crednote != "" %}{{item.author | replace("Sheffield", "\*Sheffield")}}{% else %}{{ item.author }}{% endif %}. {{ item.title }}. **{{ item.year }}**. *{{ item.journal }}*{% if item.volume != "" %} {{ item.volume }}{% endif %}{% if item.pages != "" %}:{{ item.pages }}{% endif %}.{% if item.doi != "" %} {% if item.pmcid != "" %}PMCID:{{ item.pmcid }}{% endif %} DOI: [{{ item.doi }}](http://dx.doi.org/{{ item.doi }}).{% endif %}{% if item.crednote != "" %} \*{{item.crednote}}.{% endif %}{% if item.funding_sources != "" %}
- \small Funding sources: {{item.funding_sources}} {% if item.funding_contribution != "" %}
Expand Down
5 changes: 5 additions & 0 deletions v1/letter/README_letter_with_signature.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
A simple, vertically centered letter, with frontmatter, and content in a variable called "data".

It will also add the `{{signature}}` variable, and, if `references` is defined, will add those afterwards.


6 changes: 6 additions & 0 deletions v1/letter/letter_with_signature.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@
{{ signature }}

\vspace*{\fill}

{% if _global_frontmatter.dict.references %}
# References

<div class="multi-refs"></div>
{% endif %}

0 comments on commit 5f09b29

Please sign in to comment.