Skip to content

Commit

Permalink
Add default weight to each category
Browse files Browse the repository at this point in the history
  • Loading branch information
itai-codefresh authored and Oleg Sucharevich committed Feb 14, 2018
1 parent 9cd2079 commit 7b65cb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/content/more/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "More"
weight = 40
title = "More..."
weight = 110
+++


Expand Down
2 changes: 1 addition & 1 deletion docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const updateCategoryFileContent = async (nestedCategory,command, existingContent
title = parentdocs.subCategory;
}
}
const headerString = `+++\ntitle = "${title}"\n+++\n\n`;
const headerString = `+++\ntitle = "${title}"\nweight = 100\n+++\n\n`;
finalCategoryFileString = finalCategoryFileString.replace('{{HEADER}}', headerString);
if (!finalCategoryFileString) {
finalCategoryFileString = headerString;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.8.20",
"version": "0.8.21",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit 7b65cb1

Please sign in to comment.