Add social buttons at the bottom of blog posts.

Also, update the siteConfig api docs
This commit is contained in:
Joel Marcey 2017-12-13 20:05:43 -08:00
parent f8af0e3f58
commit 317fa99572
3 changed files with 15 additions and 4 deletions

View file

@ -92,6 +92,10 @@ customDocsPath: "website-docs"
`gaTrackingId` - Google Analytics tracking ID to track page views.
`facebookAppId` - If you want Facebook Like/Share buttons at the bottom of your blog posts, provide a [Facebook application id](https://www.facebook.com/help/audiencenetwork/804209223039296), and the buttons will show up on all blog posts.
`twitter` - set this to `true` if you want a Twitter social button to appear at the bottom of your blog posts.
`highlight` - [Syntax highlighting](api-doc-markdown.md) options:
- `theme` is the name of the theme used by Highlight.js when highlighting code.
@ -169,8 +173,9 @@ const siteConfig = {
}
],
scripts: [ "https://docusaurus.io/slash.js" ],
stylesheets: [ "https://docusaurus.io/style.css" ]
stylesheets: [ "https://docusaurus.io/style.css" ],
facebookAppId: "1615782811974223",
twitter: "true"
};
module.exports = siteConfig;

View file

@ -73,3 +73,7 @@ Or this.
Docusaurus provides a simple RSS feed for your blog posts. Both RSS and Atom feed formats are supported. This data is automatically to your website page's HTML <HEAD> tag.
A summary of the post's text is provided in the RSS feed up to the `<!--truncate-->`. If no `<!--truncate-->` tag is found, then all text up 250 chacters are used.
## Social Buttons
If you want Facebook and/or Twitter social buttons at the bottom of your blog posts, set the `facebookAppId` and/or `twitter` [site configuration](api-site-config.md) options in `siteConfig.js`.

View file

@ -102,7 +102,9 @@ const siteConfig = {
theme: "solarized-dark"
},
scripts: ["https://buttons.github.io/buttons.js"],
gaTrackingId: "UA-44373548-31"
gaTrackingId: "UA-44373548-31",
facebookAppId: "1615782811974223",
twitter: "true",
};
module.exports = siteConfig;