mirror of
https://github.com/zeon-studio/hugoplate.git
synced 2026-09-10 07:06:19 -04:00
chore: upgrade Hugo min version to 0.158.0, rename LLM config keys, and add agent skill documentation.
This commit is contained in:
parent
7dadc3221e
commit
4acb4365d7
93
.agent/hugoplate-best-practices/SKILL.md
Normal file
93
.agent/hugoplate-best-practices/SKILL.md
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
---
|
||||
name: hugoplate-best-practices
|
||||
description: Best practices and architectural patterns for working with the Hugoplate Hugo boilerplate. Use this when modifying theme tokens, configuration, content, layouts, or Tailwind v4 styles in a Hugoplate project.
|
||||
license: MIT
|
||||
---
|
||||
|
||||
# Hugoplate Agent Skill
|
||||
|
||||
This skill provides the best practices and architectural patterns for working with the **Hugoplate** boilerplate. Use this as your primary guide when modifying theme tokens, configuration, content, or layouts.
|
||||
|
||||
## 1. Core Architecture
|
||||
|
||||
Hugoplate is a modern Hugo boilerplate built with:
|
||||
- **Hugo (Extended)**: Static site generator.
|
||||
- **Tailwind CSS v4**: Utility-first CSS using Hugo Pipes and the `@theme` directive.
|
||||
- **Hugo Modules**: Theme and feature functionality are imported as modules.
|
||||
- **Theme Generator**: A custom Node.js script (`scripts/themeGenerator.js`) that syncs `data/theme.json` with Tailwind CSS variables.
|
||||
|
||||
## 2. Design System (`theme.json`)
|
||||
|
||||
All design tokens (colors, fonts, sizes) are managed in `exampleSite/data/theme.json`.
|
||||
|
||||
### 2.1 Color Tokens
|
||||
- **Default (Light)**: `colors.default.theme_color` and `colors.default.text_color`.
|
||||
- **Dark Mode**: `colors.darkmode.theme_color` and `colors.darkmode.text_color`.
|
||||
- **Logic**: The `themeGenerator.js` script maps these to CSS variables (e.g., `--color-primary`, `--color-darkmode-primary`).
|
||||
|
||||
### 2.2 Typography
|
||||
- **Google Fonts**: Defined in `fonts.font_family`. Use the syntax `Family:wght@weights` (e.g., `Inter:wght@400;700`).
|
||||
- **Scale**: `fonts.font_size.scale` controls the heading hierarchy (H1-H6).
|
||||
- **Base**: `fonts.font_size.base` sets the root font size in pixels.
|
||||
|
||||
### 2.3 Workflow: Design Changes
|
||||
1. **Modify `theme.json`**: Update colors or fonts.
|
||||
2. **Run Dev Server**: `npm run dev` or `yarn dev`. This automatically runs `themeGenerator.js` and `hugo server`.
|
||||
3. **Verify**: Check `assets/css/generated-theme.css` to see the updated variables.
|
||||
|
||||
## 3. Configuration System
|
||||
|
||||
Configuration is split across several files in `exampleSite/config/_default/`:
|
||||
- `hugo.toml`: Core site settings, build options, and asset fingerprinting.
|
||||
- `params.toml`: Theme-specific toggles (dark mode, search, navigation, etc.).
|
||||
- `menus.en.toml`: Menu structures for English.
|
||||
- `languages.toml`: Multilingual setup.
|
||||
- `module.toml`: Import declarations for Hugo Modules.
|
||||
|
||||
### 3.1 Feature Toggles (`params.toml`)
|
||||
Most UI components (e.g., `preloader`, `announcement`, `cookies`) have an `enable` flag. Toggle them here without touching the code.
|
||||
|
||||
## 4. Content Development
|
||||
|
||||
Content is located in `exampleSite/content/english/`.
|
||||
|
||||
### 4.1 Section Content
|
||||
Files in `content/english/sections/` are typically used for homepage sections. They often use `build.render = "never"` because they are pulled into `index.html` via `site.GetPage`.
|
||||
|
||||
### 4.2 Front Matter Standards
|
||||
Always include `title`, `description` (for SEO), and `image` (feature image). Use `draft: false` to publish.
|
||||
|
||||
## 5. Layouts & Templates
|
||||
|
||||
- **Base**: `layouts/baseof.html` is the master wrapper.
|
||||
- **Homepage**: `layouts/index.html` iterates through section files.
|
||||
- **Partials**: Reusable fragments in `layouts/partials/`.
|
||||
- **Overriding Modules**: To override a module partial, create a file with the same path in your local `layouts/` directory.
|
||||
|
||||
## 6. CSS & Tailwind Best Practices
|
||||
|
||||
- **Tailwind v4**: Uses `@theme` in `assets/css/main.css`. Avoid creating `tailwind.config.js` as it's not the primary way to configure v4 in this project.
|
||||
- **Layers**: Add custom CSS to `assets/css/custom.css` or within `@layer` blocks in `main.css`.
|
||||
- **Images**: Use the `partial "image"` for automatic Hugo responsive processing and WebP conversion.
|
||||
|
||||
## 7. Development Commands
|
||||
|
||||
| Command | Purpose |
|
||||
|---------|---------|
|
||||
| `npm run dev` | Start dev server with theme watching. |
|
||||
| `npm run build` | Production build with minification and fingerprinting. |
|
||||
| `npm run update-modules` | Clean and update Hugo modules to latest. |
|
||||
| `npm run remove-darkmode` | Permanently remove dark mode functionality. |
|
||||
| `npm run remove-multilang` | Permanently remove multilingual support. |
|
||||
|
||||
## 8. Troubleshooting
|
||||
|
||||
- **Styles not updating**: Ensure `npm run dev` is running (it needs to regenerate `generated-theme.css`).
|
||||
- **Classes missing**: Tailwind v4 in this project scans `hugo_stats.json`. If a new class isn't working, try a full rebuild.
|
||||
- **Google Fonts error**: Check for spaces or incorrect weight syntax in `theme.json`.
|
||||
|
||||
## 9. AI Agent Guidelines
|
||||
|
||||
- **Always Read Context**: Before modifying a layout, check if a partial exists in `layouts/partials/essentials/` that might already handle it.
|
||||
- **Prefer Tokens**: Never hardcode hex colors in CSS. Add them to `theme.json` and use the generated Tailwind classes.
|
||||
- **Check Params**: Before writing logic to hide/show a section, check `params.toml` for an existing toggle.
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
FROM node:23
|
||||
|
||||
# Set environment variables for versions
|
||||
ARG HUGO_VERSION=0.151.0
|
||||
ARG HUGO_VERSION=0.158.0
|
||||
ARG GO_VERSION=1.24.0
|
||||
|
||||
# Install dependencies
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
"dockerfile": "Dockerfile",
|
||||
"args": {
|
||||
"GO_VERSION": "1.24.0",
|
||||
"HUGO_VERSION": "0.151.0"
|
||||
"HUGO_VERSION": "0.158.0"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
|
|
|
|||
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
|
@ -20,7 +20,7 @@ defaults:
|
|||
# Environment variables available to all jobs and steps in this workflow
|
||||
env:
|
||||
HUGO_ENV: production
|
||||
HUGO_VERSION: "0.151.0"
|
||||
HUGO_VERSION: "0.158.0"
|
||||
GO_VERSION: "1.23.3"
|
||||
TINA_CLIENT_ID: ${{ secrets.TINA_CLIENT_ID }}
|
||||
TINA_TOKEN: ${{ secrets.TINA_TOKEN }}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ stages:
|
|||
|
||||
variables:
|
||||
HUGO_ENV: production
|
||||
HUGO_VERSION: "0.151.0"
|
||||
HUGO_VERSION: "0.158.0"
|
||||
GO_VERSION: "1.23.3"
|
||||
NODE_VERSION: "18.16.1"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,338 +0,0 @@
|
|||
# Documentation
|
||||
|
||||
Explains how to change colors, fonts, configuration, content, and layouts. Provide this to an AI agent as context when asking it to modify the project.
|
||||
|
||||
---
|
||||
|
||||
## 1. Quick Facts
|
||||
|
||||
- Stack: Hugo (extended) + Tailwind CSS (Hugo Pipes) + Hugo Modules.
|
||||
- Theme Tokens: `exampleSite/data/theme.json`.
|
||||
- Config: `exampleSite/hugo.toml` + `exampleSite/config/_default/*.toml`.
|
||||
- Content Root (English): `exampleSite/content/english`.
|
||||
- Layouts & Partials: `layouts/`.
|
||||
- CSS Source: `assets/css/` (`main.css` is the Tailwind entry).
|
||||
- Tailwind Plugins (custom): `exampleSite/tailwind-plugin/`.
|
||||
- Output (built site): `public/` (do not edit).
|
||||
|
||||
---
|
||||
|
||||
## 2. Theme Design Tokens (`theme.json`)
|
||||
|
||||
File: `exampleSite/data/theme.json`
|
||||
|
||||
```json
|
||||
{
|
||||
"colors": {
|
||||
"default": {
|
||||
"theme_color": {
|
||||
"primary": "#121212",
|
||||
"body": "#fff",
|
||||
"border": "#eaeaea",
|
||||
"light": "#f6f6f6",
|
||||
"dark": "#040404"
|
||||
},
|
||||
"text_color": {
|
||||
"text": "#444444",
|
||||
"text_dark": "#040404",
|
||||
"text_light": "#717171"
|
||||
}
|
||||
},
|
||||
"darkmode": {
|
||||
"theme_color": {
|
||||
"primary": "#fff",
|
||||
"body": "#1c1c1c",
|
||||
"border": "#3E3E3E",
|
||||
"light": "#222222",
|
||||
"dark": "#fff"
|
||||
},
|
||||
"text_color": {
|
||||
"text": "#B4AFB6",
|
||||
"text_dark": "#fff",
|
||||
"text_light": "#B4AFB6"
|
||||
}
|
||||
}
|
||||
},
|
||||
"fonts": {
|
||||
"font_family": {
|
||||
"primary": "Heebo:wght@400;600",
|
||||
"primary_type": "sans-serif",
|
||||
"secondary": "Signika:wght@500;700",
|
||||
"secondary_type": "sans-serif"
|
||||
},
|
||||
"font_size": {
|
||||
"base": "16",
|
||||
"scale": "1.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### 2.1 Changing Colors
|
||||
|
||||
- Edit light mode colors under `colors.default.theme_color` and `colors.default.text_color`.
|
||||
- Edit dark mode analogs under `colors.darkmode.*`.
|
||||
- Common keys:
|
||||
- `primary`: Brand accent (buttons / highlights).
|
||||
- `body`: Background.
|
||||
- `border`: Neutral stroke.
|
||||
- `light` / `dark`: Surface utilities.
|
||||
- Text keys differentiate tone.
|
||||
- Add new semantic tokens (e.g. `accent`, `success`) then expose them via Tailwind plugin (see Section 7).
|
||||
|
||||
### 2.2 Changing Fonts
|
||||
|
||||
- `font_family.primary` & `secondary` use Google Fonts syntax: `Family:wght@weights`.
|
||||
- The partial `layouts/partials/essentials/style.html` injects a dynamic `<link>` using these values.
|
||||
- Change fonts by replacing those strings (example: `Inter:wght@400;600;700`).
|
||||
- `*_type` is CSS generic fallback (`sans-serif`, `serif`, etc.).
|
||||
|
||||
### 2.3 Font Sizing
|
||||
|
||||
- `font_size.base`: Root size in px (string of number). Avoid large jumps (>18) unless deliberate.
|
||||
- `font_size.scale`: Modular scale multiplier consumed by custom Tailwind theme plugin for heading hierarchy.
|
||||
|
||||
### 2.4 Example AI Prompt (Theme Change)
|
||||
|
||||
"Update primary color to #0F62FE (light) and #FFFFFF (dark mode), change primary font to `Inter:wght@400;600;700`, base font size to 17, scale to 1.22, and expose a new `accent` color #FF9900 in Tailwind classes."
|
||||
|
||||
---
|
||||
|
||||
## 3. Configuration Overview
|
||||
|
||||
Location: `exampleSite/hugo.toml` and `exampleSite/config/_default/`
|
||||
|
||||
| File | Purpose |
|
||||
|------|---------|
|
||||
| `hugo.toml` | Site core settings (baseURL, outputs, pagination, modules, imaging, markup). |
|
||||
| `params.toml` | Theme/runtime parameters (logos, switches, search, metadata, UI feature toggles). |
|
||||
| `menus.en.toml` | Main & footer navigation (English). |
|
||||
| `languages.toml` | Multilingual language definitions. |
|
||||
| `module.toml` | Hugo module imports (theme + feature modules). |
|
||||
|
||||
### 3.1 Critical Keys (`hugo.toml`)
|
||||
|
||||
- `baseURL`: Must be set for production (SEO, sitemap, canonical).
|
||||
- `title`: Global site title.
|
||||
- `[services.googleAnalytics].ID`: GA4 ID.
|
||||
- `[services.disqus].shortname`: Enable Disqus comments.
|
||||
- `[pagination].pagerSize`: Items per list page.
|
||||
- `[outputs].home`: Add / remove formats (`SearchIndex`, `RSS`, etc.).
|
||||
- `[[params.plugins.css]]` & `[[params.plugins.js]]` arrays: Declare additional CSS/JS (local or plugin assets) with optional `lazy` flag.
|
||||
|
||||
### 3.2 Theme Parameters (`params.toml`)
|
||||
|
||||
Notable sections:
|
||||
|
||||
- Branding: `favicon`, `logo`, `logo_darkmode`, `logo_width`, `logo_height`, `logo_webp`.
|
||||
- Theme: `navbar_fixed`, `theme_switcher`, `theme_default` (light|dark|system).
|
||||
- Sections: `mainSections` (used for listing content like blog on various pages/widgets).
|
||||
- Tracking & Ads: `google_tag_manager`, `google_adsense`.
|
||||
- Inline script: `custom_script`.
|
||||
- Feature Tables: `[preloader]`, `[navigation_button]`, `[search]`, `[announcement]`, `[metadata]`, `[site_verification]`, `[cookies]`, `[mermaid]`, `[widgets]`, `[google_map]`, `[subscription]`.
|
||||
|
||||
Enable/disable features with `enable = true|false` inside each table.
|
||||
|
||||
### 3.3 Menus (`menus.en.toml`)
|
||||
|
||||
- Use multiple `[[main]]` and `[[footer]]` blocks.
|
||||
- Fields: `name`, `url`, `weight`, optional `parent` for nested dropdown.
|
||||
- External link: begin with `https://`.
|
||||
|
||||
### 3.4 Languages (`languages.toml`)
|
||||
|
||||
Example entry:
|
||||
|
||||
```toml
|
||||
[en]
|
||||
languageName = "En"
|
||||
languageCode = "en-us"
|
||||
contentDir = "content/english"
|
||||
weight = 1
|
||||
```
|
||||
|
||||
Add new language by copying block, pointing `contentDir` to a parallel directory (e.g. `content/spanish`). Duplicate menus & translations.
|
||||
|
||||
### 3.5 Modules (`module.toml`)
|
||||
|
||||
- Lists theme + functional modules (search, pwa, seo tools, sliders, etc.).
|
||||
- Comment out unused modules to slim build.
|
||||
- Ensure `hugoVersion.min` aligns with installed CLI version.
|
||||
|
||||
---
|
||||
|
||||
## 4. Content Authoring
|
||||
|
||||
English root: `exampleSite/content/english/`
|
||||
|
||||
Common blog front matter example:
|
||||
|
||||
```yaml
|
||||
---
|
||||
title: "Post Title"
|
||||
meta_title: "(Optional meta override)"
|
||||
description: "SEO summary"
|
||||
date: 2025-01-01T00:00:00Z
|
||||
image: "/images/feature.png"
|
||||
categories: ["CategoryA", "CategoryB"]
|
||||
author: "John Doe"
|
||||
tags: ["tag-a", "tag-b"]
|
||||
draft: false
|
||||
---
|
||||
```
|
||||
|
||||
Key subdirectories:
|
||||
|
||||
- `blog/` (posts)
|
||||
- `authors/` (author pages / profiles if used)
|
||||
- `sections/` (homepage sectional content: e.g. `testimonial.md`, `call-to-action.md`) — often contain `build.render = "never"` to avoid page output.
|
||||
|
||||
Shortcodes (from imported modules) include: button, notice, accordion, tab, modal, etc.
|
||||
|
||||
Example shortcode usage:
|
||||
|
||||
```markdown
|
||||
{{< button label="Get Started" link="/contact" >}}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. Layouts & Partials
|
||||
|
||||
Key templates:
|
||||
|
||||
- Base layout: `layouts/baseof.html` (wraps all pages; includes head, header, footer, script/style partials).
|
||||
- Single page: `layouts/single.html`.
|
||||
- List page: `layouts/list.html`.
|
||||
- Homepage: `layouts/index.html` (banner, features iteration, testimonial section).
|
||||
- Partials: `layouts/partials/essentials/*` (head/style/script/footer), `layouts/partials/components/`, `layouts/partials/widgets/`.
|
||||
|
||||
Override strategy: Place a file with same relative path in your project (or site) to supersede module version.
|
||||
|
||||
Block pattern example:
|
||||
|
||||
```html
|
||||
{{ define "main" }}
|
||||
<!-- page-specific markup -->
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
### 5.1 Add a Homepage Section
|
||||
|
||||
1. Create `content/english/sections/your-section.md` with front matter `enable: true` and any custom fields.
|
||||
1. Insert block into `layouts/index.html`:
|
||||
|
||||
```html
|
||||
{{ with site.GetPage "sections/your-section" }}
|
||||
{{ if .Params.enable }}
|
||||
<!-- custom markup using .Params fields -->
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
1. Reference images via `partial "image"` for responsive processing.
|
||||
|
||||
### 5.2 Page Header Customization
|
||||
|
||||
- Edit `layouts/partials/page-header.html` to change hero/header style for pages & list views.
|
||||
|
||||
---
|
||||
|
||||
## 6. Assets (CSS & JS)
|
||||
|
||||
- Tailwind entry: `assets/css/main.css` (imports Tailwind + custom layers + plugin directives).
|
||||
- Custom plugin JS (for Tailwind theme & grid): `exampleSite/tailwind-plugin/`.
|
||||
- Additional CSS/JS added via `[[params.plugins.css]]` & `[[params.plugins.js]]` arrays in `hugo.toml`.
|
||||
- Lazy CSS uses the media="print" + onload swap pattern (see `style.html`).
|
||||
- Production build fingerprints (cache busts) & optionally minifies assets.
|
||||
|
||||
Change or extend styles by adding files in `assets/css/` and importing them inside the correct Tailwind layer (`@layer base|components|utilities`).
|
||||
|
||||
---
|
||||
|
||||
## 7. Extending Theme Tokens (Tailwind)
|
||||
|
||||
Files: `exampleSite/tailwind-plugin/tw-theme.js`, `exampleSite/tailwind-plugin/tw-bs-grid.js`.
|
||||
|
||||
To add a new color token:
|
||||
|
||||
1. Add key(s) to both `colors.default.theme_color` and `colors.darkmode.theme_color` in `theme.json` (example: `"accent": "#FF5733"`).
|
||||
1. Update the Tailwind theme plugin to read and expose the new token (search for existing color mapping logic in `tw-theme.js`).
|
||||
1. Rebuild; then you can use classes like `text-accent` or create custom utilities referencing that token.
|
||||
|
||||
Font scale or base changes propagate automatically if the plugin consumes `font_size` values.
|
||||
|
||||
---
|
||||
|
||||
## 8. Internationalization (i18n)
|
||||
|
||||
- Translation files: `i18n/en.yaml` (add new languages: `i18n/<code>.yaml`).
|
||||
- Configure new language in `languages.toml` and create matching `content/<lang>/` directory.
|
||||
- Duplicate menus (`menus.<lang>.toml`) if language-specific navigation is needed.
|
||||
|
||||
---
|
||||
|
||||
## 9. Images & Media
|
||||
|
||||
- Prefer `partial "image"` to leverage Hugo image processing & responsive sizes.
|
||||
- Provide `Src`, `Alt`, and optional size keys (`DisplayXL`, `DisplayLG`, etc.).
|
||||
- Logos & favicon paths configured in `params.toml`.
|
||||
- WebP generation for logos depends on `logo_webp` flag.
|
||||
|
||||
---
|
||||
|
||||
## 10. Search
|
||||
|
||||
- Provided by search module (imported in `module.toml`).
|
||||
- Output format `SearchIndex` enabled in `[outputs].home`.
|
||||
- Configure via `[search]` block in `params.toml` (toggle `enable`, sections included, whether to show images, descriptions, tags, categories).
|
||||
|
||||
---
|
||||
|
||||
## 11. Dark Mode
|
||||
|
||||
- If `theme_switcher = true`, UI toggle script manages `.dark` class.
|
||||
- If disabled, `<html>` gets a static class with `theme_default` (light|dark) from `baseof.html` logic.
|
||||
- All dark colors come from `colors.darkmode.*` tokens.
|
||||
|
||||
---
|
||||
|
||||
## 12. Third-Party & Custom Scripts
|
||||
|
||||
- Add or remove plugin entries in `[[params.plugins.js]]` or `[[params.plugins.css]]` in `hugo.toml`.
|
||||
- One-off inline JS: use `custom_script` param (string of HTML/script tag) or create a new partial and include it in `baseof.html` or an existing essentials partial.
|
||||
|
||||
---
|
||||
|
||||
## 13. Troubleshooting
|
||||
|
||||
| Issue | Likely Cause | Fix |
|
||||
|-------|--------------|-----|
|
||||
| Style changes not visible | Hugo cache | Run `hugo server --ignoreCache` or delete `resources/_gen`. |
|
||||
| Font not loading | Wrong Google Fonts syntax | Use `Family:wght@400;600;700` without spaces. |
|
||||
| New color missing in classes | Tailwind plugin not updated | Edit `tw-theme.js`, restart build. |
|
||||
| Dark mode mismatch | Missing `.dark` or tokens not adjusted | Ensure `theme_switcher` true or set `theme_default = "dark"` and update `darkmode` colors. |
|
||||
| 404 on image | Incorrect path or not processed | Verify original file exists & path relative to site root. |
|
||||
| Search not indexing | Section not included | Add section to `include_sections` in `[search]` params. |
|
||||
|
||||
---
|
||||
|
||||
## 14. Change Workflow Summary
|
||||
|
||||
1. Adjust design tokens in `data/theme.json`.
|
||||
1. Modify site behavior & features in `params.toml`.
|
||||
1. Add or edit content in relevant section directory.
|
||||
1. Change or extend layouts/partials in `layouts/`.
|
||||
1. Extend Tailwind tokens via plugin if adding new theme keys.
|
||||
1. Build & verify; commit & deploy.
|
||||
|
||||
---
|
||||
|
||||
## 15. Glossary (AI-Friendly)
|
||||
|
||||
- TOKEN: Configurable value in `theme.json` (e.g. color hex, font family).
|
||||
- PARAM: User-adjustable runtime setting in `params.toml`.
|
||||
- SECTION CONTENT: Markdown file in `content/<lang>/sections/` used by layout via `site.GetPage`.
|
||||
- PARTIAL: Reusable template fragment included with `partial` / `partialCached`.
|
||||
- MODULE: External Hugo module imported in `module.toml`.
|
||||
- PLUGIN ENTRY: An object inside `[[params.plugins.css]]` or `[[params.plugins.js]]` describing an asset.
|
||||
|
|
@ -4,11 +4,11 @@ frontend:
|
|||
preBuild:
|
||||
commands:
|
||||
- yum install -y curl
|
||||
- curl -LO "https://github.com/gohugoio/hugo/releases/download/v0.151.0/hugo_extended_0.151.0_Linux-64bit.tar.gz"
|
||||
- tar -xvf hugo_extended_0.151.0_Linux-64bit.tar.gz
|
||||
- curl -LO "https://github.com/gohugoio/hugo/releases/download/v0.158.0/hugo_extended_0.158.0_Linux-64bit.tar.gz"
|
||||
- tar -xvf hugo_extended_0.158.0_Linux-64bit.tar.gz
|
||||
- mv hugo /usr/local/bin/
|
||||
- rm hugo_extended_0.151.0_Linux-64bit.tar.gz
|
||||
- echo "HUGO 0.151.0 INSTALLED"
|
||||
- rm hugo_extended_0.158.0_Linux-64bit.tar.gz
|
||||
- echo "HUGO 0.158.0 INSTALLED"
|
||||
- curl -LO "https://dl.google.com/go/go1.23.3.linux-amd64.tar.gz"
|
||||
- tar -C /usr/local -xzf go1.23.3.linux-amd64.tar.gz
|
||||
- export PATH=$PATH:/usr/local/go/bin
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
################ English language ##################
|
||||
[en]
|
||||
languageName = "En"
|
||||
languageCode = "en-us"
|
||||
label = "En"
|
||||
locale = "en-us"
|
||||
contentDir = "content/english"
|
||||
weight = 1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[hugoVersion]
|
||||
extended = true
|
||||
min = "0.151.0"
|
||||
max = "0.160.0"
|
||||
min = "0.158.0"
|
||||
max = "0.165.0"
|
||||
|
||||
[[imports]]
|
||||
path = "github.com/zeon-studio/hugoplate"
|
||||
|
|
|
|||
|
|
@ -41,16 +41,15 @@ enable = true
|
|||
label = "Github"
|
||||
link = "https://github.com/zeon-studio/hugoplate"
|
||||
|
||||
# LLMs Configuration
|
||||
# LLMs module: https://github.com/gethugothemes/hugo-modules/tree/master/llms-txt
|
||||
[llms]
|
||||
# Set to false to disable /llms.txt generation
|
||||
enable = true
|
||||
|
||||
generate_llms_txt = true
|
||||
# Set to false to disable /llms-full.txt generation
|
||||
enable_full = true
|
||||
|
||||
generate_llms_full_txt = true
|
||||
# Limit to specific paths (e.g. "/about/", "/blog/*", "/blog/**"). Empty = all pages.
|
||||
include = []
|
||||
|
||||
# Exclude specific paths (same wildcard formats as include). Include takes priority on conflicts.
|
||||
exclude = []
|
||||
|
||||
|
|
|
|||
|
|
@ -3,29 +3,29 @@ module hugoplate.netlify.app
|
|||
go 1.21
|
||||
|
||||
require (
|
||||
github.com/gethugothemes/hugo-modules/accordion v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/adsense v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/components/announcement v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/images v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/llms-txt v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/modal v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/pwa v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/search v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/shortcodes/mermaid v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/tab v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/videos v0.0.0-20260413073804-f14a74af2674 // indirect
|
||||
github.com/gethugothemes/hugo-modules/accordion v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/adsense v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/components/announcement v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/images v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/llms-txt v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/modal v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/pwa v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/search v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/shortcodes/mermaid v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/tab v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
github.com/gethugothemes/hugo-modules/videos v0.0.0-20260506045356-8668811322e7 // indirect
|
||||
)
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
</div>
|
||||
<div class="lg:col-3 mb-8 text-center lg:mb-0 lg:mt-0 lg:text-right">
|
||||
<ul class="social-icons">
|
||||
{{ range site.Data.social.main }}
|
||||
{{ range hugo.Data.social.main }}
|
||||
<li>
|
||||
<a
|
||||
target="_blank"
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
<link rel="dns-prefetch" href="//platform.twitter.com" />
|
||||
|
||||
<!-- google fonts -->
|
||||
{{ $pf:= site.Data.theme.fonts.font_family.primary }}
|
||||
{{ $sf:= site.Data.theme.fonts.font_family.secondary }}
|
||||
{{ $pf:= hugo.Data.theme.fonts.font_family.primary }}
|
||||
{{ $sf:= hugo.Data.theme.fonts.font_family.secondary }}
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<script>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
class="{{- if not site.Params.theme_switcher -}}
|
||||
{{- site.Params.theme_default -}}
|
||||
{{- end -}}"
|
||||
lang="{{ site.LanguageCode | default `en-US` }}"
|
||||
lang="{{ site.Language.Locale | default `en-US` }}"
|
||||
itemtype="http://schema.org/WebPage">
|
||||
<head>
|
||||
<!-- head (don't cache it) -->
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@ publish = "public"
|
|||
command = "yarn project-setup; yarn build"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.151.0"
|
||||
HUGO_VERSION = "0.158.0"
|
||||
GO_VERSION = "1.25.1"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "hugoplate",
|
||||
"description": "hugo tailwindcss boilerplate",
|
||||
"version": "3.4.5",
|
||||
"version": "3.5.0",
|
||||
"license": "MIT",
|
||||
"author": "zeon.studio",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@
|
|||
</h2>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/gohugoio/hugo/releases/tag/v0.151.0" alt="Contributors">
|
||||
<img alt="hugo version" src="https://img.shields.io/static/v1?label=min-HUGO-version&message=0.151.0&color=f00&logo=hugo" />
|
||||
<a href="https://github.com/gohugoio/hugo/releases/tag/v0.158.0" alt="Contributors">
|
||||
<img alt="hugo version" src="https://img.shields.io/static/v1?label=min-HUGO-version&message=0.158.0&color=f00&logo=hugo" />
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/zeon-studio/hugoplate/blob/main/LICENSE">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ licenselink = "https://github.com/zeon-studio/hugoplate/blob/main/LICENSE"
|
|||
description = "Hugoplate is a free starter template built with Hugo, and TailwindCSS, providing everything you need to jumpstart your Hugo project and save valuable time."
|
||||
homepage = "https://github.com/zeon-studio/hugoplate"
|
||||
demosite = "https://zeon.studio/preview?project=hugoplate"
|
||||
min_version = "0.151.0"
|
||||
min_version = "0.158.0"
|
||||
|
||||
tags = [
|
||||
"blog",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# default versions
|
||||
GO_VERSION='1.25.1';
|
||||
HUGO_VERSION='0.151.0';
|
||||
HUGO_VERSION='0.158.0';
|
||||
|
||||
echo "USING NODE VERSION: $(node -v)"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue