mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
refactor: adjust the loading order and output path of theme resources (#635)
* refactor: update config script handling to support dynamic target paths * refactor: refactor the output paths of the script and style shortcodes, and add test cases * fix: remove redundant console log in script-style-test.md and update MathJax and Mermaid plugin configurations in assets.html
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
---
|
||||
title: Custom Script & Style Test
|
||||
date: 2025-09-16T09:57:28+08:00
|
||||
collections:
|
||||
- Tests
|
||||
categories:
|
||||
- Shortcodes
|
||||
tags:
|
||||
- Script
|
||||
- Style
|
||||
---
|
||||
|
||||
Testing custom script and style by shortcode in FixIt theme.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## Script
|
||||
|
||||
{{< script >}}
|
||||
console.log('Hello FixIt!');
|
||||
{{< /script >}}
|
||||
|
||||
See the output in the console of the developer tool.
|
||||
|
||||
## Style
|
||||
|
||||
{{< style "text-align:right; strong{color:#00b1ff;}" >}}
|
||||
This is a **right-aligned** paragraph.
|
||||
{{< /style >}}
|
||||
Reference in New Issue
Block a user