mirror of
https://github.com/NohamR/hugo-asm-shortcode.git
synced 2026-02-21 18:15:42 +00:00
Restructure Hugo module; add root go.mod
This commit is contained in:
10
README.md
10
README.md
@@ -12,6 +12,14 @@ A Hugo shortcode for displaying assembly code blocks with syntax highlighting, h
|
|||||||
- **Capitalization option** for hex bytes and addresses
|
- **Capitalization option** for hex bytes and addresses
|
||||||
- **Dark/light mode** compatible
|
- **Dark/light mode** compatible
|
||||||
|
|
||||||
|
## Module Structure
|
||||||
|
|
||||||
|
This project is structured as a Hugo module with the following components:
|
||||||
|
- `layouts/shortcodes/asm.html` - The shortcode template
|
||||||
|
- `assets/css/extended/asm.css` - Styling for assembly code blocks
|
||||||
|
- `hugo.toml` - Module mount configuration
|
||||||
|
- `go.mod` - Go module definition
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### As a Hugo Module
|
### As a Hugo Module
|
||||||
@@ -26,7 +34,7 @@ Add to your `hugo.toml`:
|
|||||||
|
|
||||||
### Manual Installation
|
### Manual Installation
|
||||||
|
|
||||||
Copy the contents of `module/` to your Hugo site:
|
Copy the following files to your Hugo site:
|
||||||
- `layouts/shortcodes/asm.html` → your site's `layouts/shortcodes/`
|
- `layouts/shortcodes/asm.html` → your site's `layouts/shortcodes/`
|
||||||
- `assets/css/extended/asm.css` → your site's `assets/css/extended/`
|
- `assets/css/extended/asm.css` → your site's `assets/css/extended/`
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
module hugo-asm-shortcode
|
|
||||||
|
|
||||||
go 1.21
|
|
||||||
Reference in New Issue
Block a user