Skip to content

Commit

Permalink
Add support for style settings plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Eskild Steensen committed Mar 17, 2023
1 parent a1d6c33 commit 332f450
Show file tree
Hide file tree
Showing 6 changed files with 173 additions and 132 deletions.
2 changes: 2 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const DEFAULT_SETTINGS: DigitalGardenSettings = {
updatedTimestampKey: "dg-updated",
timestampFormat: "MMM dd, yyyy h:mm a",

styleSettingsCss: '',

defaultNoteSettings: {
dgHomeLink: true,
dgPassFrontmatter: false,
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "digitalgarden",
"name": "Digital Garden",
"version": "2.40.0",
"version": "2.41.0",
"minAppVersion": "0.12.0",
"description": "Publish your notes to the web for others to enjoy. For free.",
"author": "Ole Eskild Steensen",
Expand Down
2 changes: 2 additions & 0 deletions src/DigitalGardenSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export default interface DigitalGardenSettings {

timestampFormat: string;

styleSettingsCss: string;

defaultNoteSettings: {
dgHomeLink: boolean;
dgPassFrontmatter: boolean;
Expand Down
1 change: 1 addition & 0 deletions src/DigitalGardenSiteManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default class DigitalGardenSiteManager implements IDigitalGardenSiteManag
envSettings += `\nNOTE_ICON_FILETREE=${this.settings.showNoteIconInFileTree}`;
envSettings+=`\nNOTE_ICON_INTERNAL_LINKS=${this.settings.showNoteIconOnInternalLink}`;
envSettings+=`\nNOTE_ICON_BACK_LINKS=${this.settings.showNoteIconOnBackLink}`;
envSettings+=`\nSTYLE_SETTINGS_CSS=\"${this.settings.styleSettingsCss}\"`;

const defaultNoteSettings = {...this.settings.defaultNoteSettings};
for(const key of Object.keys(defaultNoteSettings)) {
Expand Down
Loading

0 comments on commit 332f450

Please sign in to comment.