Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
53830ff
1
Parent(s):
e901053
Swap text/image column in papers.md
Browse files- docs/generate_papers.py +8 -10
docs/generate_papers.py
CHANGED
@@ -66,22 +66,20 @@ with open(output_file, "w") as f:
|
|
66 |
paper_snippet = f"""
|
67 |
<div class="row">
|
68 |
|
69 |
-
<!-- Image column: -->
|
70 |
-
<div class="image_column">
|
71 |
-
|
72 |
-
![](images/{image_file})\n\n
|
73 |
-
|
74 |
-
</div>
|
75 |
|
76 |
<!-- Text column: -->
|
77 |
<div class="text_column"><div class="center">
|
|
|
|
|
|
|
|
|
78 |
|
79 |
-
|
|
|
|
|
|
|
80 |
|
81 |
-
**Abstract:** {abstract}
|
82 |
|
83 |
-
</div></div>
|
84 |
-
|
85 |
</div>"""
|
86 |
clean_paper_snippet = dedent(paper_snippet)
|
87 |
f.write(clean_paper_snippet)
|
|
|
66 |
paper_snippet = f"""
|
67 |
<div class="row">
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
|
70 |
<!-- Text column: -->
|
71 |
<div class="text_column"><div class="center">
|
72 |
+
<a href="{link}">{title}</a><br>{authors}<br><small>{affiliations}</small><br>\n\n
|
73 |
+
**Abstract:** {abstract}\n\n
|
74 |
+
</div></div>
|
75 |
+
|
76 |
|
77 |
+
<!-- Image column: -->
|
78 |
+
<div class="image_column">\n
|
79 |
+
![](images/{image_file})\n\n
|
80 |
+
</div>
|
81 |
|
|
|
82 |
|
|
|
|
|
83 |
</div>"""
|
84 |
clean_paper_snippet = dedent(paper_snippet)
|
85 |
f.write(clean_paper_snippet)
|