Make Gruvbox the default blog theme (active CSS + theme switcher default)
This commit is contained in:
@@ -94,7 +94,7 @@ pointing the `shareCss` relation at the matching note – see
|
|||||||
| `lib/highlight.js` | vendored highlight.js | code, `application/javascript` |
|
| `lib/highlight.js` | vendored highlight.js | code, `application/javascript` |
|
||||||
| `lib/3d/*` | three.js + OrbitControls + STLLoader + occt-wasm (OCCT V8 bundle + WASM) for the 3D viewer | code / file |
|
| `lib/3d/*` | three.js + OrbitControls + STLLoader + occt-wasm (OCCT V8 bundle + WASM) for the 3D viewer | code / file |
|
||||||
| `lib/hljs_line_numbers.js` | highlight.js line-numbers plugin | code |
|
| `lib/hljs_line_numbers.js` | highlight.js line-numbers plugin | code |
|
||||||
| `scripts/blog_theme_picker.js` | theme switcher dropdown in the header (client-side, localStorage, default Tokyo Night) | code, `text/html` |
|
| `scripts/blog_theme_picker.js` | theme switcher dropdown in the header (client-side, localStorage, default Gruvbox) | code, `text/html` |
|
||||||
| `scripts/*.js` | frontend share snippets (content is pasted **verbatim** into a code note, including the `<script>`/`<style>` wrapper) | code |
|
| `scripts/*.js` | frontend share snippets (content is pasted **verbatim** into a code note, including the `<script>`/`<style>` wrapper) | code |
|
||||||
| `app/3d-model-viewer-app.jsx` | JSX widget that renders the 3D viewer for model file notes inside the Trilium app (label `#widget=3dModelViewer`) | code, `text/jsx` |
|
| `app/3d-model-viewer-app.jsx` | JSX widget that renders the 3D viewer for model file notes inside the Trilium app (label `#widget=3dModelViewer`) | code, `text/jsx` |
|
||||||
| `app/3d-worker.js` | Web Worker (STEP parsing) loaded by the app widget from a code note (CSP-safe) | code, `text/javascript` |
|
| `app/3d-worker.js` | Web Worker (STEP parsing) loaded by the app widget from a code note (CSP-safe) | code, `text/javascript` |
|
||||||
|
|||||||
@@ -17,14 +17,14 @@
|
|||||||
// Replace the __THEME_*_ID__ placeholders with the note IDs of your theme notes
|
// Replace the __THEME_*_ID__ placeholders with the note IDs of your theme notes
|
||||||
// (code notes, mime text/css, living under the .blog system note).
|
// (code notes, mime text/css, living under the .blog system note).
|
||||||
var THEMES = [
|
var THEMES = [
|
||||||
|
{ id: "gruvbox", name: "Gruvbox", url: "api/notes/__THEME_GRUVBOX_ID__/download" },
|
||||||
{ id: "tokyonight", name: "Tokyo Night", url: "api/notes/__THEME_TOKYO_ID__/download" },
|
{ id: "tokyonight", name: "Tokyo Night", url: "api/notes/__THEME_TOKYO_ID__/download" },
|
||||||
{ id: "solarized", name: "Solarized", url: "api/notes/__THEME_SOLARIZED_ID__/download" },
|
{ id: "solarized", name: "Solarized", url: "api/notes/__THEME_SOLARIZED_ID__/download" },
|
||||||
{ id: "coffee", name: "Coffee", url: "api/notes/__THEME_COFFEE_ID__/download" },
|
{ id: "coffee", name: "Coffee", url: "api/notes/__THEME_COFFEE_ID__/download" },
|
||||||
{ id: "harbor", name: "Harbor", url: "api/notes/__THEME_HARBOR_ID__/download" },
|
{ id: "harbor", name: "Harbor", url: "api/notes/__THEME_HARBOR_ID__/download" }
|
||||||
{ id: "gruvbox", name: "Gruvbox", url: "api/notes/__THEME_GRUVBOX_ID__/download" }
|
|
||||||
];
|
];
|
||||||
var KEY = "blogTheme";
|
var KEY = "blogTheme";
|
||||||
var DEFAULT = "tokyonight";
|
var DEFAULT = "gruvbox";
|
||||||
var currentLink = null;
|
var currentLink = null;
|
||||||
|
|
||||||
function chosen() {
|
function chosen() {
|
||||||
|
|||||||
Reference in New Issue
Block a user