Skip to content

Commit 62e2644

Browse files
committed
WIP adding support page. Running into a yaml-frontmatter-loader issue where its creating null data from the markdown
1 parent 6d92544 commit 62e2644

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

antwar.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,17 @@ module.exports = {
152152
}
153153
),
154154

155+
support: section(
156+
'Support',
157+
function() {
158+
return require.context(
159+
'json-loader!yaml-frontmatter-loader!./content/support',
160+
false,
161+
/^\.\/.*\.md$/
162+
);
163+
}
164+
),
165+
155166
vote: {
156167
path() {
157168
return require('./components/vote/list.jsx').default

components/navigation/navigation.jsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ let Sections = [
3232
{
3333
title: 'Blog',
3434
url: '//medium.com/webpack'
35+
},
36+
{
37+
title: 'Support',
38+
url: 'support'
3539
}
3640
];
3741

@@ -83,15 +87,15 @@ export default class Navigation extends React.Component {
8387
onClick={ this._toggleSearch.bind(this) } />
8488
</div>
8589

86-
<Link
87-
className="navigation__icon"
90+
<Link
91+
className="navigation__icon"
8892
title="GitHub Repository"
8993
to="//github.com/webpack/webpack">
9094
<i className="sidecar__icon icon-github" />
9195
</Link>
9296

93-
<Link
94-
className="navigation__icon"
97+
<Link
98+
className="navigation__icon"
9599
title="See Questions on Stack Overflow"
96100
to="//stackoverflow.com/questions/tagged/webpack">
97101
<i className="sidecar__icon icon-stack-overflow" />

0 commit comments

Comments
 (0)