Skip to content

Commit

Permalink
✨ Support for custom header title
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Jan 23, 2020
1 parent d8d1198 commit dd24347
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .staartrc
@@ -1,5 +1,6 @@
{
"title": "Staart Site",
"headerTitle": "Staart Site Example",
"author": "[O15Y](https://o15y.com)",
"noDelayWithoutToken": "true",
"algoliaApiKey": "e4fc84ee7abe50d5e67ce42f91235da4",
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@staart/site",
"version": "1.13.2",
"version": "1.13.3",
"module": "dist/module.js",
"main": "dist/index.js",
"bin": "./dist/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/data.ts
Expand Up @@ -63,6 +63,7 @@ export const getData = async () => {
config.data.author = (await getSiteMeta("author")).split(" <")[0];
if (!config.ignoreReplaceYear)
config.data.year = new Date().getFullYear().toString();
config.data.headerTitle = config.headerTitle || config.data.title;
let assets: any = {};
try {
const listOfFiles = (
Expand Down
2 changes: 1 addition & 1 deletion src/templates/header.html
Expand Up @@ -7,7 +7,7 @@
{{else if assets_icon-white_png}}
<img class="icon" alt="" src="/assets/icon-white.png" />
{{/if}}
<h1>{{ title }}</h1>
<h1>{{ headerTitle }}</h1>
</a>
</div>
</div>
Expand Down

1 comment on commit dd24347

@vercel
Copy link

@vercel vercel bot commented on dd24347 Jan 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.