velsa / notehost

Free Hosting for Notion Sites!
MIT License
107 stars 10 forks source link

Icon and font not working with latest version and not custom code #16

Closed zanhk closed 8 months ago

zanhk commented 8 months ago

With the latest version and no custom code injected, font and icons doesn't seem to be working

https://majestico.dev/

my current configuration is this:

import { NoteHostSiteConfig, googleTag } from "notehost";
import { PAGE_SCRIPT_JS_STRING } from "./_page-script-js-string";

// Set this to your Google Tag ID from Google Analytics
const GOOGLE_TAG_ID = "";

export const SITE_CONFIG: NoteHostSiteConfig = {
    domain: "majestico.dev",

    // Metatags, optional
    // For main page link preview
    siteName: "Majestico",
    siteDescription: "Documentation for majestico products and services",
    siteImage: "https://majestico.co/images/meta/majestico_share.gif",

    // Map slugs (short page names) to Notion page IDs
    // Empty slug is your main page
    slugToPage: {
        "": "3e3e231fc34d4bc2b3166f9faa1566bf",
        templates: "282a8b3376ae497e988432c7b007d7f4",
        "templates/astros": "fe8a249c2c58419b9146b78db8e35bcf",
        guides: "bfacd9a19c1f42369b6dee8bc3f19ae2",
    },

    // Subdomain redirects are optional
    // But it is recommended to have one for www
    subDomains: {
        www: {
            redirect: "https://majestico.dev",
        },
    },

    // The 404 (not found) page is optional
    // If you don't have one, the default 404 page will be used
    fof: {
        page: "78b0d54f81124f6584c0aa3d73431963",
        slug: "404", // default
    },

    // Google Font name, you can choose from https://fonts.google.com
    googleFont: "Inter",

    // Custom JS for head and body of a Notion page
    customHeadJS: googleTag(GOOGLE_TAG_ID),
    customBodyJS: PAGE_SCRIPT_JS_STRING,
};

Did I miss some configuration in the new update?

thanks

velsa commented 8 months ago

There was a bug in one of the latest versions.

I've released a new update: 1.0.17, which should fix it.

zanhk commented 8 months ago

Thanks, will try this evening

zanhk commented 8 months ago

Seem to be fixing, thanks!