From 85e8e09249192ca8abe198181fa4e3a28c06402b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=9A=28noham=29=C2=B2?= <100566912+NohamR@users.noreply.github.com> Date: Sun, 1 Feb 2026 15:28:11 +0100 Subject: [PATCH] Restructure Hugo module; add root go.mod --- README.md | 10 +++++++++- {module/assets => assets}/css/extended/asm.css | 0 go.mod | 3 +++ module/hugo.toml => hugo.toml | 0 {module/layouts => layouts}/shortcodes/asm.html | 0 module/go.mod | 3 --- 6 files changed, 12 insertions(+), 4 deletions(-) rename {module/assets => assets}/css/extended/asm.css (100%) create mode 100644 go.mod rename module/hugo.toml => hugo.toml (100%) rename {module/layouts => layouts}/shortcodes/asm.html (100%) delete mode 100644 module/go.mod diff --git a/README.md b/README.md index bf89150..9c17646 100644 --- a/README.md +++ b/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 - **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 ### As a Hugo Module @@ -26,7 +34,7 @@ Add to your `hugo.toml`: ### 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/` - `assets/css/extended/asm.css` → your site's `assets/css/extended/` diff --git a/module/assets/css/extended/asm.css b/assets/css/extended/asm.css similarity index 100% rename from module/assets/css/extended/asm.css rename to assets/css/extended/asm.css diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..83f6dc0 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/NohamR/hugo-asm-shortcode + +go 1.21 diff --git a/module/hugo.toml b/hugo.toml similarity index 100% rename from module/hugo.toml rename to hugo.toml diff --git a/module/layouts/shortcodes/asm.html b/layouts/shortcodes/asm.html similarity index 100% rename from module/layouts/shortcodes/asm.html rename to layouts/shortcodes/asm.html diff --git a/module/go.mod b/module/go.mod deleted file mode 100644 index 2c15150..0000000 --- a/module/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module hugo-asm-shortcode - -go 1.21