|
13 | 13 | * <script src="https://dhanur.me/js/shell.js" defer></script> |
14 | 14 | * |
15 | 15 | * Configuration (set before this script loads): |
16 | | - * <script> |
| 16 | + * Create a file `js/shell-config.js`: |
17 | 17 | * window.SiteNavConfig = { |
18 | 18 | * nav: [ |
19 | 19 | * { name: "Home", url: "/", icon: "fa-solid fa-house" }, |
20 | 20 | * { name: "Docs", url: "/docs/", icon: "fa-solid fa-book" } |
21 | 21 | * ], |
22 | 22 | * activePath: "/docs/", |
23 | | - * logo: { |
24 | | - * href: "/", |
25 | | - * text: "~/myapp", // text logo (uses .logo-gradient) |
26 | | - * darkImage: "/images/logo-light.png", // image shown in dark mode |
27 | | - * lightImage: "/images/logo-dark.png", // image shown in light mode |
28 | | - * imagePadding: "15px" // optional padding on img |
29 | | - * }, |
30 | | - * badge: { text: "BETA", class: "badge-warning" }, |
31 | | - * favicon: true, // true | false | "/custom/icons/" |
| 23 | + * logo: { href: "/", text: "~/myapp" }, |
32 | 24 | * showAppsGrid: true, |
33 | 25 | * showThemeToggle: true, |
34 | 26 | * showAccount: true, |
35 | 27 | * noCSS: false |
36 | 28 | * }; |
37 | | - * </script> |
| 29 | + * |
| 30 | + * Then load it before shell.js: |
| 31 | + * <script src="/js/shell-config.js"></script> |
38 | 32 | * <script src="https://dhanur.me/js/shell.js" defer></script> |
39 | 33 | * |
40 | 34 | * Script tag attributes: |
|
51 | 45 | var MAIN_SITE = "https://dhanur.me"; |
52 | 46 |
|
53 | 47 | var APPS = [ |
54 | | - { name: "Auth", url: "https://auth.dhanur.me", icon: "fa-solid fa-key" }, |
| 48 | + { name: "Home", url: "https://dhanur.me", icon: "fa-solid fa-globe" }, |
| 49 | + { name: "Linkr", url: "https://linkr.dhanur.me", icon: "fa-solid fa-link" }, |
55 | 50 | { name: "Tasks", url: "https://tasks.dhanur.me", icon: "fa-solid fa-list-check" }, |
56 | | - { name: "Docs", url: "https://docs.dhanur.me", icon: "fa-solid fa-book" }, |
57 | | - { name: "Code", url: "https://code.dhanur.me", icon: "fa-solid fa-code" }, |
58 | | - { name: "Links", url: MAIN_SITE + "/links/", icon: "fa-solid fa-link" }, |
59 | | - { name: "Blog", url: MAIN_SITE + "/blog/", icon: "fa-solid fa-pen-nib" }, |
60 | | - { name: "Design", url: MAIN_SITE + "/design/", icon: "fa-solid fa-palette" }, |
61 | | - { name: "About", url: MAIN_SITE + "/about/", icon: "fa-solid fa-user" }, |
62 | | - { name: "Main", url: "https://dhanur.me", icon: "fa-solid fa-globe" }, |
63 | 51 | ]; |
64 | 52 |
|
65 | 53 | var SVG_HAMBURGER = |
|
0 commit comments