Rename dev.to
This commit is contained in:
parent
6f64574f5c
commit
66d680e2ec
12
README.md
12
README.md
@ -176,9 +176,9 @@ const config = {
|
||||
to: '2014',
|
||||
},
|
||||
],
|
||||
// Display blog posts from your medium or dev.to account. (Optional)
|
||||
// Display blog posts from your medium or dev account. (Optional)
|
||||
blog: {
|
||||
source: 'dev.to', // medium | dev.to
|
||||
source: 'dev', // medium | dev
|
||||
username: 'arifszn',
|
||||
limit: 5, // How many posts to display. Max is 10.
|
||||
},
|
||||
@ -336,7 +336,7 @@ Your avatar and bio will be fetched from GitHub automatically.
|
||||
|
||||
### Social Links
|
||||
|
||||
You can link your social media services you're using, including LinkedIn, Twitter, Facebook, Dribbble, Behance, Medium, dev.to, personal website, phone and email.
|
||||
You can link your social media services you're using, including LinkedIn, Twitter, Facebook, Dribbble, Behance, Medium, dev, personal website, phone and email.
|
||||
|
||||
```js
|
||||
// gitprofile.config.js
|
||||
@ -349,7 +349,7 @@ module.exports = {
|
||||
dribbble: '',
|
||||
behance: '',
|
||||
medium: '',
|
||||
devto: '',
|
||||
dev: '',
|
||||
website: 'https://arifszn.github.io',
|
||||
phone: '',
|
||||
email: '',
|
||||
@ -447,14 +447,14 @@ module.exports = {
|
||||
|
||||
### Blog Posts
|
||||
|
||||
If you have [medium](https://medium.com) or [dev.to](https://dev.to) account, you can show your recent blog posts in here just by providing your medium/dev.to username. You can limit how many posts to display (Max is `10`).
|
||||
If you have [medium](https://medium.com) or [dev](https://dev.to) account, you can show your recent blog posts in here just by providing your medium/dev username. You can limit how many posts to display (Max is `10`).
|
||||
|
||||
```js
|
||||
// gitprofile.config.js
|
||||
module.exports = {
|
||||
// ...
|
||||
blog: {
|
||||
source: 'dev.to',
|
||||
source: 'dev',
|
||||
username: 'arifszn',
|
||||
limit: 5,
|
||||
},
|
||||
|
||||
@ -17,7 +17,7 @@ const config = {
|
||||
dribbble: '',
|
||||
behance: '',
|
||||
medium: '',
|
||||
devto: 'arifszn',
|
||||
dev: 'arifszn',
|
||||
website: 'https://arifszn.github.io',
|
||||
phone: '',
|
||||
email: 'arifulalamszn@gmail.com',
|
||||
@ -76,9 +76,9 @@ const config = {
|
||||
to: '2012',
|
||||
},
|
||||
],
|
||||
// Display blog posts from your medium or dev.to account. (Optional)
|
||||
// Display blog posts from your medium or dev account. (Optional)
|
||||
blog: {
|
||||
source: 'dev.to', // medium | dev.to
|
||||
source: 'dev', // medium | dev
|
||||
username: 'arifszn',
|
||||
limit: 3, // How many posts to display. Max is 10.
|
||||
},
|
||||
|
||||
@ -238,7 +238,7 @@ GitProfile.propTypes = {
|
||||
dribbble: PropTypes.string,
|
||||
behance: PropTypes.string,
|
||||
medium: PropTypes.string,
|
||||
devto: PropTypes.string,
|
||||
dev: PropTypes.string,
|
||||
website: PropTypes.string,
|
||||
phone: PropTypes.string,
|
||||
email: PropTypes.string,
|
||||
|
||||
@ -30,7 +30,7 @@ const Blog = ({ loading, blog, googleAnalytics }) => {
|
||||
}).then((res) => {
|
||||
setArticles(res);
|
||||
});
|
||||
} else if (blog.source === 'dev.to') {
|
||||
} else if (blog.source === 'dev') {
|
||||
getDevPost({
|
||||
user: blog.username,
|
||||
}).then((res) => {
|
||||
|
||||
@ -136,12 +136,12 @@ const Details = ({ profile, loading, social, github }) => {
|
||||
link={`https://medium.com/@${social.medium}`}
|
||||
/>
|
||||
)}
|
||||
{typeof social.devto !== 'undefined' && social.devto && (
|
||||
{typeof social.dev !== 'undefined' && social.dev && (
|
||||
<ListItem
|
||||
icon={<FaDev className="mr-2" />}
|
||||
title="Dev:"
|
||||
value={social.devto}
|
||||
link={`https://dev.to/${social.devto}`}
|
||||
value={social.dev}
|
||||
link={`https://dev.to/${social.dev}`}
|
||||
/>
|
||||
)}
|
||||
{typeof social.website !== 'undefined' && social.website && (
|
||||
|
||||
@ -206,10 +206,10 @@ export const sanitizeConfig = (config) => {
|
||||
typeof config.social.medium !== 'undefined'
|
||||
? config.social.medium
|
||||
: '',
|
||||
devto:
|
||||
dev:
|
||||
typeof config.social !== 'undefined' &&
|
||||
typeof config.social.devto !== 'undefined'
|
||||
? config.social.devto
|
||||
typeof config.social.dev !== 'undefined'
|
||||
? config.social.dev
|
||||
: '',
|
||||
website:
|
||||
typeof config.social !== 'undefined' &&
|
||||
|
||||
6
types/index.d.ts
vendored
6
types/index.d.ts
vendored
@ -70,9 +70,9 @@ export interface Social {
|
||||
medium?: string;
|
||||
|
||||
/**
|
||||
* dev.to
|
||||
* dev
|
||||
*/
|
||||
devto?: string;
|
||||
dev?: string;
|
||||
|
||||
/**
|
||||
* Website
|
||||
@ -92,7 +92,7 @@ export interface Social {
|
||||
|
||||
export interface Blog {
|
||||
/**
|
||||
* medium | dev.to
|
||||
* medium | dev
|
||||
*/
|
||||
source?: string;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user