KosmosisDire / obsidian-webpage-export

Export html from single files, canvas pages, or whole vaults. Direct access to the exported HTML files allows you to publish your digital garden anywhere. Focuses on flexibility, features, and style parity.
https://docs.obsidianweb.net/
MIT License
813 stars 69 forks source link

[Bug] [1.8.01]: head.html not getting pulled in #444

Open TechLifeWeb opened 4 months ago

TechLifeWeb commented 4 months ago

What happened?

I created a file called head.html that I expected to become part of my exported files (unless I'm misunderstanding it). When I look at the rendered html files (in web server mode), I don't see the values from my head.html file. However, the head.html does get pulled into "\lib\html\custom-head-content.html" so that part appears to work.

Reproduction

Create head.html Point to it in plugin settings Export to HTML for Web Server Open and exported HTML file in a text editor such as Notepad++

Last Working Version

Don't know, just started using this

Version

1.8.01

Operating System

Windows

Obsidian Version

1.5.12

Which browsers can you reproduce this in?

Microsoft Edge

Relevant log output

Log:
[WARNING]   Unable to minify CSS file.
[INFO]  No old files to delete
[INFO]  Closing render window
[INFO]  No old files to delete
[INFO]  Closing render window
[INFO]  No old files to delete
[INFO]  Closing render window
[INFO]  No old files to delete
[INFO]  Closing render window

Settings:
    settingsVersion --------- 1.8.01
    makeOfflineCompatible     true
    inlineAssets ------------ false
    includePluginCSS          1 plugins included
    includeSvelteCSS -------- true
    titleProperty             title
    customHeadContentPath --- .\\GardenExport\\assets\\head.html
    faviconPath               .\\GardenExport\\assets\\images\\favicon.ico
    documentWidth ----------- 40em
    sidebarWidth              20em
    minOutlineCollapse ------ 2
    startOutlineCollapsed     false
    allowFoldingHeadings ---- false
    allowFoldingLists         false
    allowResizingSidebars --- true
    logLevel                  warning
    minifyHTML -------------- true
    makeNamesWebStyle         true
    onlyExportModified ------ true
    deleteOldFiles            true
    addThemeToggle ---------- true
    addOutline                false
    addFileNav -------------- true
    addSearchBar              true
    addGraphView ------------ true
    addTitle                  true
    addRSSFeed -------------- true
    siteURL                   https://techlifeweb.com/garden/
    authorName -------------- Scott
    vaultTitle                TLW_Garden
    exportPreset ------------ website
    openAfterExport           false
    graphAttractionForce ---- 1
    graphLinkLength           10
    graphRepulsionForce ----- 150
    graphCentralForce         3
    graphEdgePruning -------- 100
    graphMinNodeSize          3
    graphMaxNodeSize -------- 7
    showDefaultTreeIcons      true
    emojiStyle -------------- Native
    defaultFileIcon           lucide//file
    defaultFolderIcon ------- lucide//folder
    defaultMediaIcon          lucide//file-image
    exportPath -------------- C:\\\\Users\\zz\\MyFiles\\07 Synced_Separate\\TLW_Garden\\GardenExport
    filesToExport             2

Enabled Plugins:
    Webpage HTML Export
    Templater
    Dataview

Additional Info

No response

KosmosisDire commented 4 months ago

Hmm interesting, I will look into this and see if I can reproduce. Thanks

nicolasassi commented 6 days ago

Same problem here with the latest obsidian version. Any updates?

KosmosisDire commented 6 days ago

Hi this will be fixed in the next release. You can also try one of the beta versions before 1.9 (it doesn't work in 1.9) and see if it works there, not sure if it does or not. But I know it is fixed in the internal branch so when I make another release it'll work