Welcome to my digital workspace—where I reflect, debug, and occasionally scream at my code.
Built with Hugo, JavaScript, and TailwindCSS. Deployed in Vercel.
A quick note for my future self.
hugo server --bind 0.0.0.0 --baseURL http://<YOUR_IP> --port 1313 --disableFastRender
This lets you access it from any device on the same network, including your phone.
Blog page has tags
, while Project page has featured
, categories
, and cover
in their front matter.
-
New Blog
hugo new --kind blog blog/2024-10-27-sample-post.md
-
New Project
hugo new --kind project project/2024-10-27-sample-project.md
-
Wrapper
{{< wrapper class="flex flex-wrap gap-x-4 gap-y-1 items-center justify-start" >}} Your content here! {{< /wrapper >}}
-
Table of Content Simple call, no parameters needed.
{{< toc >}}
-
Alerts:
note
,tip
,important
,warning
, andcaution
{{< note >}} Message here! {{< /note >}}
-
Image with caption
{{< image-caption src="path/to/image.jpg" alt="Image description" caption="This is a caption." >}}
-
Call-to-action/button (using icons from Iconoir)
{{< cta title="CTA Message" icon="icon-name" href="url_here" >}}
-
Icon (using icons from Simple Icons through Iconify)
{{< icon name="python" title="Python" url="https://www.python.org/" >}}
-
Work Experience
{{< work-experience startDate="" endDate="" title="" orgName="" orgLink="" >}} Your experience here {{< /work-experience >}}
Syntax | Shortcode Type | Content Processing | Use Case |
---|---|---|---|
{{< shortcode >}} |
Block | Markdown | Content formatted as Markdown. |
{{< shortcode >}} |
Inline/Self-closing | None | No content or inline shortcodes. |
{{% shortcode %}} |
Block | Raw HTML | Content is already HTML. |
{{% shortcode %}} |
Definition | Raw HTML | Shortcode template files (layouts/shortcodes/*.html ). |
Key takeaways:
- Angle brackets (
{{< >}}
) are the default for most block shortcodes, processing content as Markdown. - Percent signs (
{{% %}}
) are used for raw HTML content and within shortcode definition files. - Inline/self-closing shortcodes can use either syntax (usually angle brackets for consistency).