mirror of
				https://github.com/imfing/hextra.git
				synced 2025-11-04 08:14:54 -05:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			aaf76c2ec3
			...
			931ae6e6ed
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					931ae6e6ed | 
@@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com
 | 
			
		||||
! tailwindcss v3.4.9 | MIT License | https://tailwindcss.com
 | 
			
		||||
*//*
 | 
			
		||||
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
 | 
			
		||||
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
 | 
			
		||||
 
 | 
			
		||||
@@ -54,7 +54,7 @@ jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    env:
 | 
			
		||||
      HUGO_VERSION: 0.131.0
 | 
			
		||||
      HUGO_VERSION: 0.121.2
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
@@ -64,7 +64,7 @@ jobs:
 | 
			
		||||
      - name: Setup Go
 | 
			
		||||
        uses: actions/setup-go@v5
 | 
			
		||||
        with:
 | 
			
		||||
          go-version: '1.22'
 | 
			
		||||
          go-version: '1.21'
 | 
			
		||||
      - name: Setup Pages
 | 
			
		||||
        id: pages
 | 
			
		||||
        uses: actions/configure-pages@v4
 | 
			
		||||
@@ -146,7 +146,7 @@ For more details, check out:
 | 
			
		||||
3. If you are not using [hextra-starter-template][hextra-starter-template], configure the following manually:
 | 
			
		||||
   - Configure the Build command to `hugo --gc --minify`
 | 
			
		||||
   - Specify the Publish directory to `public`
 | 
			
		||||
   - Add Environment variable `HUGO_VERSION` and set to `0.132.2`
 | 
			
		||||
   - Add Environment variable `HUGO_VERSION` and set to `0.119.0`
 | 
			
		||||
4. Deploy!
 | 
			
		||||
 | 
			
		||||
Check [Hugo on Netlify](https://docs.netlify.com/integrations/frameworks/hugo/) for more details.
 | 
			
		||||
 
 | 
			
		||||
@@ -117,18 +117,18 @@ Hugo از سینتکس [مارکداون](https://en.wikipedia.org/wiki/Markd
 | 
			
		||||
 | 
			
		||||
### عکسها
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
```markdown {filename=Markdown}
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
با توضیحات:
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
```markdown {filename=Markdown}
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## پیکربندی
 | 
			
		||||
 
 | 
			
		||||
@@ -117,18 +117,18 @@ Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-
 | 
			
		||||
 | 
			
		||||
### Images
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
```markdown {filename=Markdown}
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
With caption:
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
```markdown {filename=Markdown}
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Configuration
 | 
			
		||||
 
 | 
			
		||||
@@ -117,18 +117,18 @@ Hugo 支持 [Markdown](https://en.wikipedia.org/wiki/Markdown) 来书写内容
 | 
			
		||||
 | 
			
		||||
### 图片
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
```markdown {filename=Markdown}
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
带有标题:
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
```markdown {filename=Markdown}
 | 
			
		||||

 | 
			
		||||

 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## 配置
 | 
			
		||||
 
 | 
			
		||||
@@ -9,6 +9,7 @@ next: /docs/guide/shortcodes/callout
 | 
			
		||||
 | 
			
		||||
Hextra provides a collection of beautiful shortcodes to enhance your content.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{{< cards >}}
 | 
			
		||||
  {{< card link="callout" title="Callout" icon="warning" >}}
 | 
			
		||||
  {{< card link="cards" title="Cards" icon="card" >}}
 | 
			
		||||
@@ -18,11 +19,3 @@ Hextra provides a collection of beautiful shortcodes to enhance your content.
 | 
			
		||||
  {{< card link="steps" title="Steps" icon="one" >}}
 | 
			
		||||
  {{< card link="tabs" title="Tabs" icon="collection" >}}
 | 
			
		||||
{{< /cards >}}
 | 
			
		||||
 | 
			
		||||
<div style="padding-top:4rem"></div>
 | 
			
		||||
 | 
			
		||||
Additional shortcodes provided by Hugo and Hextra:
 | 
			
		||||
 | 
			
		||||
{{< cards >}}
 | 
			
		||||
  {{< card link="others" title="Others" icon="view-grid" >}}
 | 
			
		||||
{{< /cards >}}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,43 +0,0 @@
 | 
			
		||||
---
 | 
			
		||||
title: Other Shortcodes
 | 
			
		||||
linkTitle: Others
 | 
			
		||||
sidebar:
 | 
			
		||||
  exclude: true
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
{{< callout emoji="ℹ️" >}}
 | 
			
		||||
  Some of these are Hugo built-in shortcodes.
 | 
			
		||||
  These shortcodes are considered less stable and may be changed anytime.
 | 
			
		||||
{{< /callout >}}
 | 
			
		||||
 | 
			
		||||
## YouTube
 | 
			
		||||
 | 
			
		||||
Embed a YouTube video.
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
{{</* youtube VIDEO_ID */>}}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Result:
 | 
			
		||||
 | 
			
		||||
{{< youtube id=dQw4w9WgXcQ loading=lazy >}}
 | 
			
		||||
 | 
			
		||||
For more information, see [Hugo's YouTube Shortcode](https://gohugo.io/content-management/shortcodes/#youtube).
 | 
			
		||||
 | 
			
		||||
## PDF
 | 
			
		||||
 | 
			
		||||
With PDF shortcode, you can embed a PDF file in your content.
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
{{</* pdf "https://example.com/sample.pdf" */>}}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
You can also place the PDF file in your project directory and use the relative path.
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
{{</* pdf "path/to/file.pdf" */>}}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Example:
 | 
			
		||||
 | 
			
		||||
{{< pdf "https://upload.wikimedia.org/wikipedia/commons/1/13/Example.pdf" >}}
 | 
			
		||||
@@ -25,11 +25,6 @@ This is the third step.
 | 
			
		||||
 | 
			
		||||
## Usage
 | 
			
		||||
 | 
			
		||||
{{< callout emoji="ℹ️" >}}
 | 
			
		||||
  Please note that this shortcode is intended **only for Markdown content**.
 | 
			
		||||
  If you put HTML content or other shortcodes as step content, it may not render as expected.
 | 
			
		||||
{{< /callout >}}
 | 
			
		||||
 | 
			
		||||
Put Markdown h3 header within `steps` shortcode.
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,6 @@
 | 
			
		||||
      "head",
 | 
			
		||||
      "hr",
 | 
			
		||||
      "html",
 | 
			
		||||
      "iframe",
 | 
			
		||||
      "img",
 | 
			
		||||
      "input",
 | 
			
		||||
      "kbd",
 | 
			
		||||
@@ -222,7 +221,6 @@
 | 
			
		||||
      "hextra-filetree",
 | 
			
		||||
      "hextra-filetree-folder",
 | 
			
		||||
      "hextra-footer",
 | 
			
		||||
      "hextra-pdf",
 | 
			
		||||
      "hextra-scrollbar",
 | 
			
		||||
      "hextra-sidebar-collapsible-button",
 | 
			
		||||
      "hextra-tabs-panel",
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,10 @@
 | 
			
		||||
{{- with site.Config.Services.GoogleAnalytics.ID }}
 | 
			
		||||
{{/* site.GoogleAnalytics is deprecated in Hugo v0.120.0 */}}
 | 
			
		||||
{{/* it will be removed in a future version */}}
 | 
			
		||||
{{- $gtagID := "" -}}
 | 
			
		||||
{{- with site.GoogleAnalytics -}}{{ $gtagID = . }}{{- end -}}
 | 
			
		||||
{{- with site.Config.Services.GoogleAnalytics.ID -}}{{ $gtagID = . }}{{- end -}}
 | 
			
		||||
 | 
			
		||||
{{- with $gtagID }}
 | 
			
		||||
  <!-- Global site tag (gtag.js) - Google Analytics -->
 | 
			
		||||
  <script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
 | 
			
		||||
  <script>
 | 
			
		||||
 
 | 
			
		||||
@@ -30,11 +30,12 @@
 | 
			
		||||
  {{ partialCached "head-css.html" . }}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<!-- Google Analytics -->
 | 
			
		||||
{{- if and (eq hugo.Environment "production") .Site.Config.Services.GoogleAnalytics.ID }}
 | 
			
		||||
  <link rel="preconnect" href="https://www.googletagmanager.com" crossorigin />
 | 
			
		||||
  {{ partial "google-analytics.html" . }}
 | 
			
		||||
{{- end }}
 | 
			
		||||
  <!-- Google Analytics -->
 | 
			
		||||
  {{- if and (eq hugo.Environment "production") (or .Site.GoogleAnalytics .Site.Config.Services.GoogleAnalytics.ID) }}
 | 
			
		||||
    <link rel="preconnect" href="https://www.googletagmanager.com" crossorigin />
 | 
			
		||||
    {{ partial "google-analytics.html" . }}
 | 
			
		||||
  {{- end }}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  <script>
 | 
			
		||||
    /* Initialize light/dark mode */
 | 
			
		||||
 
 | 
			
		||||
@@ -4,9 +4,8 @@
 | 
			
		||||
  class="hextra-tabs-panel hx-rounded hx-pt-6 hx-hidden data-[state=selected]:hx-block"
 | 
			
		||||
  id="tabs-panel-{{ .Ordinal }}"
 | 
			
		||||
  role="tabpanel"
 | 
			
		||||
  {{- if eq .Ordinal $defaultIndex }} tabindex="0" {{ end -}}
 | 
			
		||||
  {{- if eq .Ordinal $defaultIndex }} data-state="selected" {{ end -}}
 | 
			
		||||
  {{ if eq .Ordinal $defaultIndex }}tabindex="0"{{ end }}
 | 
			
		||||
  {{ if eq .Ordinal $defaultIndex }}data-state="selected"{{ end }}
 | 
			
		||||
>
 | 
			
		||||
  {{- .InnerDeindent | markdownify -}}
 | 
			
		||||
  {{ .InnerDeindent | markdownify }}
 | 
			
		||||
</div>
 | 
			
		||||
{{- /* Drop trailing newlines */ -}}
 | 
			
		||||
 
 | 
			
		||||
@@ -13,9 +13,9 @@
 | 
			
		||||
        role="tab"
 | 
			
		||||
        type="button"
 | 
			
		||||
        aria-controls="tabs-panel-{{ $i }}"
 | 
			
		||||
        {{- if eq $i $defaultIndex }} aria-selected="true" {{ end -}}
 | 
			
		||||
        {{- if eq $i $defaultIndex }} tabindex="0" {{ end -}}
 | 
			
		||||
        {{- if eq $i $defaultIndex }} data-state="selected"{{ end -}}
 | 
			
		||||
        {{ if eq $i $defaultIndex }}aria-selected="true"{{ end }}
 | 
			
		||||
        {{ if eq $i $defaultIndex }}tabindex="0"{{ end }}
 | 
			
		||||
        {{ if eq $i $defaultIndex }}data-state="selected"{{ end }}
 | 
			
		||||
      >
 | 
			
		||||
        {{- $item -}}
 | 
			
		||||
      </button>
 | 
			
		||||
@@ -23,6 +23,5 @@
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
<div>
 | 
			
		||||
  {{- .Inner -}}
 | 
			
		||||
  {{ .Inner }}
 | 
			
		||||
</div>
 | 
			
		||||
{{- /* Drop trailing newlines */ -}}
 | 
			
		||||
 
 | 
			
		||||
@@ -7,6 +7,6 @@ command = "cd exampleSite && hugo --gc --minify --themesDir ../.. -b ${DEPLOY_PR
 | 
			
		||||
ignore = "false"
 | 
			
		||||
 | 
			
		||||
[build.environment]
 | 
			
		||||
HUGO_VERSION = "0.132.2"
 | 
			
		||||
HUGO_VERSION = "0.126.1"
 | 
			
		||||
GO_VERSION = "1.22.3"
 | 
			
		||||
NODE_VERSION = "22.2.0"
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										24
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										24
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -582,9 +582,9 @@
 | 
			
		||||
      "license": "MIT"
 | 
			
		||||
    },
 | 
			
		||||
    "node_modules/electron-to-chromium": {
 | 
			
		||||
      "version": "1.5.11",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.11.tgz",
 | 
			
		||||
      "integrity": "sha512-R1CccCDYqndR25CaXFd6hp/u9RaaMcftMkphmvuepXr5b1vfLkRml6aWVeBhXJ7rbevHkKEMJtz8XqPf7ffmew==",
 | 
			
		||||
      "version": "1.5.6",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.6.tgz",
 | 
			
		||||
      "integrity": "sha512-jwXWsM5RPf6j9dPYzaorcBSUg6AiqocPEyMpkchkvntaH9HGfOOMZwxMJjDY/XEs3T5dM7uyH1VhRMkqUU9qVw==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "license": "ISC"
 | 
			
		||||
    },
 | 
			
		||||
@@ -815,9 +815,9 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "node_modules/ignore": {
 | 
			
		||||
      "version": "5.3.2",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
 | 
			
		||||
      "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
 | 
			
		||||
      "version": "5.3.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz",
 | 
			
		||||
      "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "license": "MIT",
 | 
			
		||||
      "engines": {
 | 
			
		||||
@@ -1376,9 +1376,9 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "node_modules/postcss-selector-parser": {
 | 
			
		||||
      "version": "6.1.2",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",
 | 
			
		||||
      "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",
 | 
			
		||||
      "version": "6.1.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.1.tgz",
 | 
			
		||||
      "integrity": "sha512-b4dlw/9V8A71rLIDsSwVmak9z2DuBUB7CA1/wSdelNEzqsjoSPeADTWNO09lpH49Diy3/JIZ2bSPB1dI3LJCHg==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "license": "MIT",
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
@@ -1745,9 +1745,9 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "node_modules/tailwindcss": {
 | 
			
		||||
      "version": "3.4.10",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.10.tgz",
 | 
			
		||||
      "integrity": "sha512-KWZkVPm7yJRhdu4SRSl9d4AK2wM3a50UsvgHZO7xY77NQr2V+fIrEuoDGQcbvswWvFGbS2f6e+jC/6WJm1Dl0w==",
 | 
			
		||||
      "version": "3.4.9",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.9.tgz",
 | 
			
		||||
      "integrity": "sha512-1SEOvRr6sSdV5IDf9iC+NU4dhwdqzF4zKKq3sAbasUWHEM6lsMhX+eNN5gkPx1BvLFEnZQEUFbXnGj8Qlp83Pg==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "license": "MIT",
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user