mirror of
				https://github.com/imfing/hextra.git
				synced 2025-11-04 10:54:52 -05:00 
			
		
		
		
	Compare commits
	
		
			9 Commits
		
	
	
		
			v0.9.0
			...
			2fc1b93a72
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					2fc1b93a72 | ||
| 
						 | 
					bc778ee243 | ||
| 
						 | 
					f377609eba | ||
| 
						 | 
					a9b992436e | ||
| 
						 | 
					7f5a7f2f5a | ||
| 
						 | 
					30fddec3fa | ||
| 
						 | 
					da56d153aa | ||
| 
						 | 
					5c0698c3c0 | ||
| 
						 | 
					ebdaf0fd4a | 
							
								
								
									
										15
									
								
								.github/FUNDING.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								.github/FUNDING.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
# These are supported funding model platforms
 | 
			
		||||
 | 
			
		||||
github: imfing
 | 
			
		||||
patreon: # Replace with a single Patreon username
 | 
			
		||||
open_collective: # Replace with a single Open Collective username
 | 
			
		||||
ko_fi: # Replace with a single Ko-fi username
 | 
			
		||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
 | 
			
		||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
 | 
			
		||||
liberapay: # Replace with a single Liberapay username
 | 
			
		||||
issuehunt: # Replace with a single IssueHunt username
 | 
			
		||||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
 | 
			
		||||
polar: # Replace with a single Polar username
 | 
			
		||||
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
 | 
			
		||||
thanks_dev: # Replace with a single thanks.dev username
 | 
			
		||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/pages.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/pages.yml
									
									
									
									
										vendored
									
									
								
							@@ -31,7 +31,7 @@ jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    env:
 | 
			
		||||
      HUGO_VERSION: 0.136.5
 | 
			
		||||
      HUGO_VERSION: 0.138.0
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 
 | 
			
		||||
@@ -54,7 +54,7 @@ jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    env:
 | 
			
		||||
      HUGO_VERSION: 0.131.0
 | 
			
		||||
      HUGO_VERSION: 0.138.0
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@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.138.0`, or alternatively, set it in `netlify.toml` file
 | 
			
		||||
4. Deploy!
 | 
			
		||||
 | 
			
		||||
Check [Hugo on Netlify](https://docs.netlify.com/integrations/frameworks/hugo/) for more details.
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<footer class="hextra-footer hx-bg-gray-100 hx-pb-[env(safe-area-inset-bottom)] dark:hx-bg-neutral-900 print:hx-bg-transparent">
 | 
			
		||||
  {{- if $enableFooterSwitches -}}
 | 
			
		||||
  {{- if and $enableFooterSwitches (or hugo.IsMultilingual $displayThemeToggle) -}}
 | 
			
		||||
    <div class="hx-mx-auto hx-flex hx-gap-2 hx-py-2 hx-px-4 {{ $footerWidth }}">
 | 
			
		||||
      {{- partial "language-switch.html" (dict "context" .) -}}
 | 
			
		||||
      {{- with $displayThemeToggle }}{{ partial "theme-toggle.html" }}{{ end -}}
 | 
			
		||||
 
 | 
			
		||||
@@ -31,6 +31,8 @@
 | 
			
		||||
    {{- range .Site.Menus.main -}}
 | 
			
		||||
      {{- if eq .Params.type "search" -}}
 | 
			
		||||
        {{- partial "search.html" (dict "params" .Params) -}}
 | 
			
		||||
      {{- else if eq .Params.type "theme-toggle" -}}
 | 
			
		||||
        {{- partial "theme-toggle.html" (dict "navbar" true "hideLabel" (.Params.hideLabel | default true)) -}}
 | 
			
		||||
      {{- else -}}
 | 
			
		||||
        {{- $link := .URL -}}
 | 
			
		||||
        {{- $external := strings.HasPrefix $link "http" -}}
 | 
			
		||||
@@ -67,4 +69,4 @@
 | 
			
		||||
      {{- partial "utils/icon.html" (dict "name" "hamburger-menu" "attributes" "height=24") -}}
 | 
			
		||||
    </button>
 | 
			
		||||
  </nav>
 | 
			
		||||
</div>
 | 
			
		||||
</div>
 | 
			
		||||
@@ -1,3 +1,10 @@
 | 
			
		||||
{{- $navbar := .navbar | default false -}}
 | 
			
		||||
{{- $height_px := 12 -}}
 | 
			
		||||
{{- $height_tw := "hx-text-xs" -}}
 | 
			
		||||
{{- if $navbar -}}
 | 
			
		||||
  {{- $height_px = 24 -}}
 | 
			
		||||
  {{- $height_tw = "hx-text-sm" -}}
 | 
			
		||||
{{- end -}}
 | 
			
		||||
{{- $hideLabel := .hideLabel | default false -}}
 | 
			
		||||
 | 
			
		||||
{{- $changeTheme := (T "changeTheme") | default "Change theme" -}}
 | 
			
		||||
@@ -8,14 +15,14 @@
 | 
			
		||||
<button
 | 
			
		||||
  title="{{ $changeTheme }}"
 | 
			
		||||
  data-theme="light"
 | 
			
		||||
  class="theme-toggle hx-group hx-h-7 hx-rounded-md hx-px-2 hx-text-left hx-text-xs hx-font-medium hx-text-gray-600 hx-transition-colors dark:hx-text-gray-400 hover:hx-bg-gray-100 hover:hx-text-gray-900 dark:hover:hx-bg-primary-100/5 dark:hover:hx-text-gray-50"
 | 
			
		||||
  class="theme-toggle hx-group hx-h-7 hx-rounded-md hx-px-2 hx-text-left {{ $height_tw }} hx-font-medium hx-text-gray-600 hx-transition-colors dark:hx-text-gray-400 hover:hx-bg-gray-100 hover:hx-text-gray-900 dark:hover:hx-bg-primary-100/5 dark:hover:hx-text-gray-50"
 | 
			
		||||
  type="button"
 | 
			
		||||
  aria-label="{{ $changeTheme }}"
 | 
			
		||||
>
 | 
			
		||||
  <div class="hx-flex hx-items-center hx-gap-2 hx-capitalize">
 | 
			
		||||
    {{- partial "utils/icon.html" (dict "name" "sun" "attributes" "height=12 class=\"group-data-[theme=light]:hx-hidden\"") -}}
 | 
			
		||||
    {{- partial "utils/icon.html" (dict "name" "sun" "attributes" (printf "height=%d class=\"group-data-[theme=light]:hx-hidden\"" $height_px)) -}}
 | 
			
		||||
    {{- if not $hideLabel }}<span class="group-data-[theme=light]:hx-hidden">{{ $light }}</span>{{ end -}}
 | 
			
		||||
    {{- partial "utils/icon.html" (dict "name" "moon" "attributes" "height=12 class=\"group-data-[theme=dark]:hx-hidden\"") -}}
 | 
			
		||||
    {{- partial "utils/icon.html" (dict "name" "moon" "attributes" (printf "height=%d class=\"group-data-[theme=dark]:hx-hidden\"" $height_px)) -}}
 | 
			
		||||
    {{- if not $hideLabel }}<span class="group-data-[theme=dark]:hx-hidden">{{ $dark }}</span>{{ end -}}
 | 
			
		||||
  </div>
 | 
			
		||||
</button>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										14
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										14
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -523,11 +523,10 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "node_modules/cross-spawn": {
 | 
			
		||||
      "version": "7.0.3",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
 | 
			
		||||
      "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
 | 
			
		||||
      "version": "7.0.6",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
 | 
			
		||||
      "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "license": "MIT",
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
        "path-key": "^3.1.0",
 | 
			
		||||
        "shebang-command": "^2.0.0",
 | 
			
		||||
@@ -1031,9 +1030,9 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "node_modules/nanoid": {
 | 
			
		||||
      "version": "3.3.7",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
 | 
			
		||||
      "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
 | 
			
		||||
      "version": "3.3.8",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",
 | 
			
		||||
      "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "funding": [
 | 
			
		||||
        {
 | 
			
		||||
@@ -1041,7 +1040,6 @@
 | 
			
		||||
          "url": "https://github.com/sponsors/ai"
 | 
			
		||||
        }
 | 
			
		||||
      ],
 | 
			
		||||
      "license": "MIT",
 | 
			
		||||
      "bin": {
 | 
			
		||||
        "nanoid": "bin/nanoid.cjs"
 | 
			
		||||
      },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user