mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
50488dfb51
* 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
30 lines
474 B
Markdown
30 lines
474 B
Markdown
---
|
|
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 >}}
|