Skip to content

Commit

Permalink
Add markdown metadata to migration template
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatsushita committed May 8, 2019
1 parent 797be82 commit 1895ad4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
19 changes: 16 additions & 3 deletions code/migrate/activity.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
---
id: {{id}}
name: {{title}}
description: {{description}}
name: {{{title}}}
description: {{{description}}}
{{#if origin}}origin: {{origin}}{{/if}}
{{#if origin_path}}origin_path: {{origin_path}}{{/if}}
{{#if authors}}authors: {{authors}}{{/if}}
{{#if org_size_under}}org_size_under: {{org_size_under}}{{/if}}
{{#if remote_options}}remote_options: {{remote_options}}{{/if}}
{{#if skills_required}}skills_required: {{skills_required}}{{/if}}
{{#if time_required_minutes}}time_required_minutes: {{time_required_minutes}}{{/if}}
{{#if approach_category}}approach: {{approach_category}}{{/if}}
{{#each tag}}
{{key}}: {{value}}
{{/each}}
Expand All @@ -29,7 +35,7 @@ description: {{description}}
{{/if}}

{{#if opsec}}
## Considerations
## Operational Security

{{{opsec}}}
{{/if}}
Expand All @@ -46,6 +52,13 @@ description: {{description}}
{{{recommendations}}}
{{/if}}


{{#if output}}
## Outputs

{{{output}}}
{{/if}}

{{#if special}}{{{special}}}{{/if}}

{{#if footnotes}}{{{footnotes}}}{{/if}}
2 changes: 1 addition & 1 deletion code/migrate/guide.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: {{id}}
title: {{title}}
title: {{{title}}}
layout: guide.pug
{{#if origin}}origin: {{origin}}{{/if}}
{{#if origin_path}}origin_path: {{origin_path}}{{/if}}
Expand Down
3 changes: 2 additions & 1 deletion code/migrate/method.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
id: {{id}}
name: {{title}}
name: {{{title}}}
description: {{{description}}}
layout: method.pug
{{#if origin}}origin: {{origin}}{{/if}}
{{#if origin_path}}origin_path: {{origin_path}}{{/if}}
Expand Down
3 changes: 2 additions & 1 deletion code/migrate/page.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
id: {{id}}
name: {{title}}
name: {{{title}}}
description: {{{description}}}
layout: page.pug
{{#if origin}}origin: {{origin}}{{/if}}
{{#if origin_path}}origin_path: {{origin_path}}{{/if}}
Expand Down

0 comments on commit 1895ad4

Please sign in to comment.