File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -248,10 +248,11 @@ class App extends React.Component {
248
248
249
249
render ( ) {
250
250
const { navigatorOpened, workspaceWeights, editorTabIndex } = this . state ;
251
+
251
252
const files = getFiles ( this . props . current ) ;
252
253
const titleArray = getTitleArray ( this . props . current ) ;
253
-
254
254
const gistSaved = this . isGistSaved ( ) ;
255
+ const title = `${ gistSaved ? '' : '(Unsaved) ' } ${ titleArray . join ( ' - ' ) } ` ;
255
256
const description = this . getDescription ( ) ;
256
257
const file = files [ editorTabIndex ] ;
257
258
@@ -269,8 +270,10 @@ class App extends React.Component {
269
270
return (
270
271
< div className = { styles . app } >
271
272
< Helmet >
272
- < title > { gistSaved ? '' : '(Unsaved) ' } { titleArray . join ( ' - ' ) } </ title >
273
+ < title > { title } </ title >
273
274
< meta name = "description" content = { description } />
275
+ < meta property = "og:title" content = { title } />
276
+ < meta property = "og:description" content = { description } />
274
277
</ Helmet >
275
278
< Header className = { styles . header } onClickTitleBar = { ( ) => this . toggleNavigatorOpened ( ) }
276
279
navigatorOpened = { navigatorOpened } loadScratchPapers = { ( ) => this . loadScratchPapers ( ) }
Original file line number Diff line number Diff line change 16
16
< meta http-equiv ="x-ua-compatible " content ="ie=edge ">
17
17
< meta name ="viewport " content ="width=device-width ">
18
18
< meta name ="theme-color " content ="#393939 ">
19
+ < meta property ="og:image " content ="https://raw.githubusercontent.com/algorithm-visualizer/algorithm-visualizer/master/branding/screenshot.png " />
20
+ < meta property ="og:site_name " content ="Algorithm Visualizer " />
19
21
< link rel ="shortcut icon " href ="/favicon.png " type ="image/png ">
20
22
< link rel ="manifest " href ="/manifest.json ">
21
23
< link href ="https://fonts.googleapis.com/css?family=Roboto:400,700 " rel ="stylesheet ">
22
24
</ head >
23
25
< body >
24
26
< div id ="root " style ="height: 100% "> </ div >
25
27
</ body >
26
- </ html >
28
+ </ html >
You can’t perform that action at this time.
0 commit comments