yoyurec / logseq-banners-plugin

136 stars 10 forks source link

Default Journal Banner from local path won't load when coming back from another page #84

Open u-4589 opened 4 months ago

u-4589 commented 4 months ago

I've been experiencing the issue of re-loading the journal banner (defaultJournalBanner) from a local path (under my Logseq's folder) - ../assets/notebook.jpg.

Maybe it is related with these issues?

These issues were experienced differently, though.

The issue

Whenever I leave the journal page and come back to it, the banner (or lack of) from the previous page persists - the default journal page banner doesn't load again.

Context:

Note: I have disabled the other plugins and removed any style sheet in case that was affecting or causing this behavior.

Here are my settings.json:

{
  "generalHeading": null,
  "hidePluginProps": true,
  "widgetsCalendarHeading": null,
  "widgetsCalendarEnabled": "off",
  "widgetsCalendarWidth": "380px",
  "widgetsWeatherHeading": null,
  "widgetsWeatherEnabled": "off",
  "widgetsWeatherID": "7QOWaH4IPGGaAr4puql2",
  "widgetsQuoteHeading": null,
  "widgetsQuoteEnabled": "off",
  "widgetsQuoteTag": "#quote",
  "widgetsQuoteMaxWidth": "48ch",
  "widgetsQuoteSize": "100%",
  "widgetsCustomHeading": null,
  "widgetsCustomEnabled": "off",
  "widgetsCustomCode": "<iframe id=\"banner-widgets-pomo\" src=\"https://pomofocus.io/app\"></iframe>",
  "journalHeading": null,
  "defaultJournalBanner": "../assets/notebook.jpg",
  "journalBannerHeight": "280px",
  "journalBannerAlign": "40%",
  "defaultJournalIcon": "",
  "journalIconWidth": "50px",
  "pageHeading": null,
  "defaultPageBanner": "",
  "pageBannerHeight": "280px",
  "pageBannerAlign": "50%",
  "defaultPageIcon": "",
  "pageIconWidth": "40px",
  "advancedHeading": null,
  "customPropsConfig": {
    "pageType": {
      "evrgrn": {
        "pageIcon": "🌳",
        "banner": "https://images.unsplash.com/photo-1502082553048-f009c37129b9?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80",
        "bannerHeight": "200px",
        "bannerAlign": "50%"
      },
      "seed": {
        "pageIcon": "🌱",
        "banner": "https://images.unsplash.com/photo-1631949454967-6c6d07fb59cd?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80",
        "bannerHeight": "200px",
        "bannerAlign": "50%"
      }
    },
    "anotherCamalCasedPropName": {}
  },
  "additional": {
    "quoteWidget": {
      "cleanupRegExps_before": [],
      "cleanupRegExps_after": []
    }
  },
  "disabled": false
}
cysecnoob commented 3 months ago

Same issue here!