Skip to content

Commit 603a579

Browse files
committed
website hugo shortcodes
1 parent 4a5a4a4 commit 603a579

File tree

1 file changed

+135
-0
lines changed

1 file changed

+135
-0
lines changed
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
---
2+
lang: en-US
3+
title: Used Hugo Shortcodes Summary
4+
description: "Overview created Hugo shortcodes for this website"
5+
date: 2025-01-01T14:56:31.284Z
6+
layout: docs
7+
thumbnail:
8+
url: img/doitplaceholder.jpg
9+
origin: Copilot Designer
10+
author: d.o.
11+
tags:
12+
- Hugo
13+
categories:
14+
- Website
15+
draft: true
16+
---
17+
18+
## basketCalendar.html
19+
20+
- **Description**: Embeds a responsive Google Calendar iframe.
21+
- **Details**: The CSS styles ensure the iframe is responsive and adjusts its size based on the screen width. The iframe itself embeds a Google Calendar with a specific source URL.
22+
- **Usage**:
23+
24+
```hugo
25+
{{< basketCalendar >}}
26+
```
27+
28+
## basketCalendarJsonTable.html
29+
30+
- **Description**: Displays a table of basketball calendar events fetched from a JSON file.
31+
- **Details**: Includes filters for searching and date filtering, and provides both card and table views for the events.
32+
- **Usage**:
33+
34+
```hugo
35+
{{< basketCalendarJsonTable >}}
36+
```
37+
38+
## fullscreenAndPrintButton.html
39+
40+
- **Description**: Adds a fullscreen toggle button and a print button to the page.
41+
- **Details**: The fullscreen button is currently commented out, but the print button is active and triggers the browser's print functionality when clicked.
42+
- **Usage**:
43+
44+
```hugo
45+
{{< fullscreenAndPrintButton >}}
46+
```
47+
48+
## ghcode.html
49+
50+
- **Description**: Embeds and renders markdown content from a remote resource.
51+
- **Details**: Fetches the content from the specified URL and renders it as markdown.
52+
- **Usage**:
53+
54+
```hugo
55+
{{< ghcode "https://example.com/file.md" >}}
56+
```
57+
58+
## ghcodeHtml.html
59+
60+
- **Description**: Embeds and renders HTML content from a remote resource.
61+
- **Details**: Fetches the content from the specified URL and renders it as HTML with syntax highlighting.
62+
- **Usage**:
63+
64+
```hugo
65+
{{< ghcodeHtml "https://example.com/file.html" >}}
66+
```
67+
68+
## ics-table.html
69+
70+
- **Description**: Displays a table of events from an ICS (iCalendar) file.
71+
- **Details**: Fetches the ICS content from a remote URL, parses the events, and displays them in a table with columns for date, summary, and location.
72+
- **Usage**:
73+
74+
```hugo
75+
{{< ics-table url="https://example.com/calendar.ics" >}}
76+
```
77+
78+
## include.html
79+
80+
- **Description**: Includes the contents of another file within the current page.
81+
- **Details**: Reads the specified file, removes any front matter, and renders the content as safe HTML.
82+
- **Usage**:
83+
84+
```hugo
85+
{{< include "path/to/file.md" >}}
86+
```
87+
88+
## languageCode.html
89+
90+
- **Description**: Displays the current site language.
91+
- **Details**: Outputs the language code of the site.
92+
- **Usage**:
93+
94+
```hugo
95+
{{< languageCode >}}
96+
```
97+
98+
## redirectToProject.html
99+
100+
- **Description**: Redirects the user to the projects page in English.
101+
- **Details**: Removes any selected language from local storage and performs the redirection.
102+
- **Usage**:
103+
104+
```hugo
105+
{{< redirectToProject >}}
106+
```
107+
108+
## refLink.html
109+
110+
- **Description**: Creates a reference link or button.
111+
- **Details**: Supports both internal and external links, and can display the link as a button or a regular link based on the provided parameters.
112+
- **Usage**:
113+
114+
```hugo
115+
{{< refLink ref="https://example.com" text="Example Link" >}}
116+
```
117+
118+
## removeDefaultLanguage.html
119+
120+
- **Description**: Removes the selected language from local storage.
121+
- **Details**: Useful for resetting the language preference.
122+
- **Usage**:
123+
124+
```hugo
125+
{{< removeDefaultLanguage >}}
126+
```
127+
128+
## sitemap.html
129+
130+
- **Description**: Displays a sitemap of all pages on the site.
131+
- **Details**: Provides both list and card views for the pages, with a search input to filter the results.
132+
- **Usage**:
133+
134+
```hugo
135+
{{< sitemap >}}

0 commit comments

Comments
 (0)