Skip to content

Commit fe1942b

Browse files
author
Mark Robinson
committed
Add support for twitter cards
1 parent 3fd8852 commit fe1942b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/resources/templates/workflow.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
<head>
2323
<meta charset="UTF-8" />
2424
<meta name="viewport" content="width=device-width, initial-scale=1" />
25+
<meta name="twitter:card" content="summary_large_image" />
26+
<meta name="twitter:site" content="@commonwl" />
27+
<meta name="twitter:title" th:content="${'CWL Workflow: ' + workflow.label}" />
28+
<meta name="twitter:description" th:if="${workflow.doc != null}" th:content="${workflow.doc}" />
29+
<meta name="twitter:image" th:content="${appURL + '/workflows/' + workflow.id + '/graph/png'}" />
2530
<title>Common Workflow Language Viewer</title>
2631
<link rel="stylesheet" type="text/css" th:href="@{/css/main.css}" href="../static/css/main.css" />
2732
<link rel="stylesheet" th:href="@{/bower_components/bootstrap/dist/css/bootstrap.min.css}" href="../static/bower_components/bootstrap/dist/css/bootstrap.min.css" />

0 commit comments

Comments
 (0)