From f2650de4f62c1867f28519288a9bed92f77dc70d Mon Sep 17 00:00:00 2001 From: rwirch Date: Wed, 8 Nov 2023 13:47:04 -0500 Subject: [PATCH 1/3] add reference title to marker --- custom_jinja_filters.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/custom_jinja_filters.py b/custom_jinja_filters.py index d4c4b2911eb..03c170b441b 100644 --- a/custom_jinja_filters.py +++ b/custom_jinja_filters.py @@ -12,6 +12,7 @@ "[{}]' @@ -20,7 +21,8 @@ "' + 'data-reference="{}"' + 'title="{}">' "[{}]" ) @@ -98,10 +100,10 @@ def get_html_citation(citations, citation_name): citation["number"] = ref_number if not citation.get("url"): - reference_html = reference_marker_template_no_url.format(ref_number, ref_number, citation_name, ref_number) + reference_html = reference_marker_template_no_url.format(ref_number, ref_number, citation_name, citation_name, ref_number) else: reference_html = reference_marker_template.format( - ref_number, ref_number, citation_name, citation["url"], ref_number - 1, ref_number - 1, ref_number + ref_number, ref_number, citation_name, citation_name, citation["url"], ref_number - 1, ref_number - 1, ref_number ) return reference_html From 6859f785a3880c34fabdcd4af4cea93313f17a49 Mon Sep 17 00:00:00 2001 From: rwirch Date: Mon, 13 Nov 2023 10:59:01 -0500 Subject: [PATCH 2/3] display citation description --- custom_jinja_filters.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/custom_jinja_filters.py b/custom_jinja_filters.py index 03c170b441b..569e969b661 100644 --- a/custom_jinja_filters.py +++ b/custom_jinja_filters.py @@ -7,7 +7,7 @@ from modules import site_config -# Template for HTML references inside of STIX data +# Template for HTML references inside of STIX dat reference_marker_template = ( " Date: Tue, 28 Nov 2023 14:06:33 -0600 Subject: [PATCH 3/3] Update custom_jinja_filters.py --- custom_jinja_filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_jinja_filters.py b/custom_jinja_filters.py index 569e969b661..654d694ff53 100644 --- a/custom_jinja_filters.py +++ b/custom_jinja_filters.py @@ -7,7 +7,7 @@ from modules import site_config -# Template for HTML references inside of STIX dat +# Template for HTML references inside of STIX data reference_marker_template = ( "