Skip to content

Commit

Permalink
Merge pull request #246 from jaredwray/Adding-in-githubPath-to-WritrData
Browse files Browse the repository at this point in the history
Adding in githubPath to WritrData
  • Loading branch information
jaredwray authored Feb 8, 2024
2 parents 7f40101 + 445232c commit 5494e9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "writr",
"version": "2.0.2",
"version": "2.0.3",
"description": "Beautiful Website for Your Projects",
"type": "module",
"exports": "./dist/index.js",
Expand Down
2 changes: 2 additions & 0 deletions src/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type WritrData = {
sitePath: string;
templatePath: string;
outputPath: string;
githubPath: string;
github?: GithubData;
templates?: WritrTemplates;
};
Expand Down Expand Up @@ -51,6 +52,7 @@ export class WritrBuilder {
sitePath: this.options.sitePath,
templatePath: this.options.templatePath,
outputPath: this.options.outputPath,
githubPath: this.options.githubPath,
};

// Get data from github
Expand Down
2 changes: 1 addition & 1 deletion template/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<body>
{{> landing/hero }}
<a class="github-fork-ribbon" href="https://github.com/jaredwray/writr" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
<a class="github-fork-ribbon" href="https://github.com/{{ githubPath }}" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
{{> landing/content }}
{{> footer}}

Expand Down

0 comments on commit 5494e9a

Please sign in to comment.