Skip to content

Commit 34f1589

Browse files
committed
Add favicon and social media tags for webR app
1 parent 6fd9dc1 commit 34f1589

File tree

7 files changed

+27
-1
lines changed

7 files changed

+27
-1
lines changed

src/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ HTML_DIST = $(addprefix $(DIST)/,$(HTML_TEMPLATES))
2323
$(DIST)/webr.mjs: $(TS_SOURCES) $(HTML_DIST) \
2424
Makefile webR/config.ts node_modules esbuild.ts
2525
cp $(DIST)/$(HTML_INDEX) $(DIST)/index.html
26+
mkdir -p $(DIST)/assets
27+
cp -r assets/* $(DIST)/assets/
2628
npm run build -- --prod
2729

2830
$(DIST)/%.html: templates/%.html

src/assets/banner.png

60 KB
Loading

src/assets/favicon.ico

14.7 KB
Binary file not shown.

src/assets/favicon.svg

Lines changed: 3 additions & 0 deletions
Loading

src/assets/webR.png

308 KB
Loading

src/docs/images/webR.png

-308 KB
Binary file not shown.

src/docs/images/webR.png

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../assets/webR.png

src/templates/repl.html

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,28 @@
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
77
<link href="repl.css" rel="stylesheet" />
8-
<title>webR REPL app</title>
8+
<title>webR - R in the browser</title>
9+
10+
<!-- favicon-->
11+
<link rel="icon" type="image/svg+xml" href="/assets/favicon.svg" />
12+
<link rel="shortcut icon" href="/assets/favicon.ico" />
13+
14+
<!-- Open Graph meta tags for social media -->
15+
<meta property="og:title" content="webR - R in the browser" />
16+
<meta property="og:description" content="Interactive R environment running in your browser. Execute R code, create plots, and analyze data without installing anything." />
17+
<meta property="og:image" content="https://webr.sh/assets/banner.png" />
18+
<meta property="og:image:alt" content="webR logo - R in the browser" />
19+
<meta property="og:logo" content="https://webr.sh/assets/webR.png" />
20+
<meta property="og:url" content="https://webr.sh" />
21+
<meta property="og:type" content="website" />
22+
<meta property="og:site_name" content="webR" />
23+
24+
<!-- Twitter Card meta tags -->
25+
<meta name="twitter:card" content="summary_large_image" />
26+
<meta name="twitter:title" content="webR - R in the browser" />
27+
<meta name="twitter:description" content="Interactive R environment running in your browser. Execute R code, create plots, and analyze data without installing anything." />
28+
<meta name="twitter:image" content="https://webr.sh/assets/banner.png" />
29+
<meta name="twitter:image:alt" content="webR logo - R in the browser" />
930
</head>
1031

1132
<body>

0 commit comments

Comments
 (0)