Skip to content

Commit c91d458

Browse files
committed
og support added
1 parent 55226ab commit c91d458

5 files changed

Lines changed: 6 additions & 31 deletions

File tree

public/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
<head>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6-
<meta name="theme-color" content="#000000">
6+
<meta name="theme-color" content="#464646">
7+
<meta property="og:title" content="ডেভেলপার চিটশিট - বাংলা চিটশিটের ভান্ডার">
8+
<meta property="og:description" content="ডেভেলপারদের জন্যে প্রয়োজনীয় সব চিটশিট একসাথে এবং সম্পূর্ণ বাংলা ভাষায়। নিজের মাতৃভাষায় চিটশিটের ভান্ডার সমৃদ্ধ করতে আপনিও যোগ দিন">
9+
<meta property="og:image" content="https://with.zonayed.me/wp-content/uploads/2018/11/devsonket.png">
710
<!--
811
manifest.json provides metadata used when your web app is added to the
912
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/

public/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
],
1111
"start_url": "./index.html",
1212
"display": "standalone",
13-
"theme_color": "#000000",
14-
"background_color": "#ffffff"
13+
"theme_color": "#464646",
14+
"background_color": "#f2f2f2"
1515
}

src/components/Content.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import HeaderContent from './HeaderContent';
88
import Page404 from './404';
99
import Footer from './Footer';
1010

11-
import ogTag from '../utils/ogTag';
12-
1311
class Content extends Component {
1412
state = {
1513
data: '',
@@ -26,16 +24,11 @@ class Content extends Component {
2624
document.title = `${title} - ডেভেলপার চিটশীট`;
2725
}
2826

29-
setOGMeta = ({title, description}) => {
30-
ogTag(title, description);
31-
}
32-
3327
getData = async(id) => {
3428
try {
3529
const { data } = await axios(`https://raw.githubusercontent.com/devsonket/devsonket.github.io/master/data/${id}.json`);
3630
this.setState({data});
3731
this.setTitle();
38-
this.setOGMeta(this.state.data);
3932
} catch(e) {
4033
this.setState({redirect: true})
4134
}

src/utils/devsonket.jpg

-20.1 KB
Binary file not shown.

src/utils/ogTag.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)