News
NEWeSAR for NBA Accreditation of Electronics & Communication Engineering Department Submitted to NBA – View Document(27 Feb 2026)NEWAdmissions Open for Academic Year 2026-27 – Apply Now via ACPDC Portal(1 Feb 2026)NEWGTU Winter Examination 2025 – Revised Timetable Published(25 Jan 2026)NEWGuest Faculty Recruitment 2026 – Applications Invited for Engineering Departments(20 Jan 2026)SSIP Grant 2025-26 – Submit Your Innovation Proposals by 28 February 2026(15 Jan 2026)Annual Technical Fest "INNOVATE 2026" – Registration Open for All Events(10 Jan 2026)GTU Semester 3 Examination Results Declared – Check Results on GTU Portal(5 Jan 2026)Library: 250+ New Technical Books Added – Available for Borrowing from 1 Feb 2026(2 Jan 2026)Holiday List for Year 2026 Published – View Official Calendar(1 Jan 2026)NEW(27 Feb 2026)NEW(1 Feb 2026)NEW(25 Jan 2026)NEW(20 Jan 2026)(15 Jan 2026)(10 Jan 2026)GTU Semester 3 Examination Results Declared – Check Results on GTU Portal(5 Jan 2026)(2 Jan 2026)(1 Jan 2026)

Blowfish Shortcode Compatibility Test

Blowfish Shortcode Compatibility Test

This page tests the exact Hugo Blowfish shortcode API compatibility. All shortcodes below should work identically in both Hugo Blowfish and this Next.js implementation.

Alert Shortcodes

Basic Alert

This is a basic alert with default styling. {{< /alert >}}

Alert with Custom Icon

Success! This alert uses a custom check icon. {{< /alert >}}

Alert with Custom Colors

This is a custom styled alert with red background and white text. {{< /alert >}}

Positional Parameter Alert

This alert uses positional parameters (icon as first parameter). {{< /alert >}}

Badge Shortcodes

Here are some example badges:

New Feature {{< /badge >}}
v2.87.0 {{< /badge >}}
In Progress {{< /badge >}}

Button Shortcodes

Basic Button

Visit Blowfish Theme {{< /button >}}

Button with Target

Hugo Documentation {{< /button >}}

Timeline Shortcodes

Started working on the Hugo to Next.js migration project. The goal was to maintain full compatibility with Blowfish shortcodes while leveraging Next.js capabilities. {{< /timelineItem >}}
Implemented all major Blowfish shortcodes with exact API compatibility: - Alert with custom styling support - Badge components - Button with href/target support - Timeline and TimelineItem - GitHub repository cards {{< /timelineItem >}}
Testing all shortcodes to ensure 100% API compatibility between Hugo Blowfish and Next.js implementation. This allows seamless content migration between platforms. {{< /timelineItem >}}

{{< /timeline >}}

GitHub Repository Cards

Basic GitHub Card

GitHub Card with Thumbnail

GitHub Card without Thumbnail

Testing shortcode processing - if you see this as a styled alert, shortcodes are working!{{< /alert >}}

Mermaid Diagrams

Flowchart

flowchart TD A[Hugo Blowfish] --> B{Migration Decision} B -->|Keep Hugo| C[Continue with Hugo] B -->|Migrate| D[Next.js Implementation] D --> E[Exact API Compatibility] E --> F[Seamless Content Migration] {{< /mermaid >}}

Sequence Diagram

sequenceDiagram participant Hugo participant NextJS participant Content
Hugo->>Content: Parse Shortcodes
Content->>NextJS: Migrate with Same API
NextJS->>Content: Render Identically
Content->>Hugo: Still Compatible

{{< /mermaid >}}

Compatibility Verification

✅ Exact API Match

  • Alert: icon, cardColor, iconColor, textColor + positional parameters
  • Badge: Simple content wrapper with Blowfish styling
  • Button: href, target, rel parameters
  • Timeline/TimelineItem: icon, header, badge, subheader parameters
  • GitHub: repo, showThumbnail parameters
  • Mermaid: Direct diagram content support

✅ Styling Compatibility

All components use exact Blowfish CSS classes and color schemes:

  • bg-primary-600, text-neutral, dark:bg-primary-800
  • border-l-2 border-primary-500 dark:border-primary-300
  • text-white bg-primary-600 hover:bg-primary-700

✅ Markdown Hot-Swappable

Content files can be moved between Hugo Blowfish and this Next.js implementation without any modifications to shortcode syntax.

Testing Instructions

  1. Copy this file to your Hugo Blowfish project's content/ directory
  2. Compare rendering between Hugo and Next.js
  3. Verify identical behavior for all shortcodes
  4. Test parameter variations to ensure full compatibility

All shortcodes should render identically in both environments! 🎉

Related Posts

# Extended Blowfish Shortcodes Test This page tests the newly implemented Blowfish shortcodes to ensure they work identically to Hugo Blowfish. ## ...

blowfish
shortcodes
testing

# Hugo Shortcodes Demo This page demonstrates all the Hugo shortcodes that have been converted to React components for the Next.js migration. ## Vi...

demo
shortcodes
react
+2
Shortcodes

Shortcodes

October 25, 2026

In addition to all the [default Hugo shortcodes](https://gohugo.io/content-management/shortcodes/), Blowfish adds a few extras for additional functio...

shortcodes
mermaid
icon
+2