mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-01-06 19:25:14 +01:00
Compare commits
2 commits
ab18989a41
...
137ebf6fdc
Author | SHA1 | Date | |
---|---|---|---|
|
137ebf6fdc | ||
|
11a51f8e9f |
37 changed files with 166 additions and 21 deletions
|
@ -11,7 +11,12 @@
|
|||
{{ end }}
|
||||
{{ $block_path := printf "blox/%s.html" $block_type }}
|
||||
{{ if not (templates.Exists (printf "partials/%s" $block_path)) }}
|
||||
{{ errorf "%s uses a `%s` block but the `%s` block was not found at `layouts/partials/%s`" $block.File.Path $block_type $block_type $block_path }}
|
||||
{{ $block_path_community := printf "blox/community/%s.html" $block_type }}
|
||||
{{ if not (templates.Exists (printf "partials/%s" $block_path_community)) }}
|
||||
{{ errorf "%s uses a `%s` blox but the `%s` blox was not found. Check the name of the blox and try again. For a custom or community blox, upload it first to `hugo-blox/blox/community/%s.html`. For an All Access blox, upload it first to `hugo-blox/blox/all-access/%s.html`" $page.File.Path $block_type $block_type $block_type $block_type }}
|
||||
{{ else }}
|
||||
{{ $block_path = $block_path_community }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Mermaid block: Workaround to make Hugo's .Page.Store.Set cascade up to the parent of headless pages */}}
|
||||
|
|
|
@ -69,6 +69,16 @@
|
|||
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" />
|
||||
{{ end }}
|
||||
|
||||
{{/* Load community blox styles */}}
|
||||
{{ $hb_community_styles := resources.Match "dist/community/blox/**.css" }}
|
||||
{{ with $hb_community_styles }}
|
||||
{{ $hb_community_styles = $hb_community_styles | resources.Concat "css/community-hugo-blox.css" }}
|
||||
{{- if hugo.IsProduction -}}
|
||||
{{- $hb_community_styles = $hb_community_styles | minify | fingerprint "sha256" -}}
|
||||
{{- end -}}
|
||||
<link href="{{ $hb_community_styles.RelPermalink }}" rel="stylesheet" />
|
||||
{{ end }}
|
||||
|
||||
{{ if fileExists "assets/css/custom.css" }}
|
||||
{{ $styles := resources.Get "css/custom.css" | minify | fingerprint "sha256" }}
|
||||
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" />
|
||||
|
|
2
starters/blog/.github/workflows/publish.yaml
vendored
2
starters/blog/.github/workflows/publish.yaml
vendored
|
@ -1,7 +1,7 @@
|
|||
name: Deploy website to GitHub Pages
|
||||
|
||||
env:
|
||||
WC_HUGO_VERSION: '0.125.1'
|
||||
WC_HUGO_VERSION: '0.125.2'
|
||||
|
||||
on:
|
||||
# Trigger the workflow every time you push to the `main` branch
|
||||
|
|
|
@ -7,3 +7,17 @@
|
|||
imports:
|
||||
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
|
||||
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind
|
||||
|
||||
# Install any Hugo Blox within the `hugo-blox/blox/` folder
|
||||
mounts:
|
||||
- source: hugo-blox/blox/community
|
||||
target: layouts/partials/blox/community/
|
||||
includeFiles: '**.html'
|
||||
- source: hugo-blox/blox/all-access
|
||||
target: layouts/partials/blox/
|
||||
includeFiles: '**.html'
|
||||
- source: hugo-blox/blox
|
||||
target: assets/dist/community/blox/
|
||||
includeFiles: '**.css'
|
||||
- source: layouts
|
||||
target: layouts
|
||||
|
|
|
@ -4,5 +4,5 @@ go 1.19
|
|||
|
||||
require (
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231125204555-f431a4a2c705
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240420123751-9547f9a844cf
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240420214532-11a51f8e9f01
|
||||
)
|
||||
|
|
7
starters/blog/hugo-blox/blox/all-access/README.md
Normal file
7
starters/blog/hugo-blox/blox/all-access/README.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Hugo Blox Builder: All Access
|
||||
|
||||
Elevate your web projects with [All Access](https://hugoblox.com/sponsor/), our premium Tailwind blox collection!
|
||||
|
||||
Get access to a diverse range of professionally designed, responsive components — from sleek pricing sections to interactive forms. Save time with our ready-to-use blox, fully customizable to fit your brand, and focus on creating unique features that set your website apart. Optimize your development process and enhance your designs effortlessly with our Tailwind blox!
|
||||
|
||||
Upload All Access blox to this folder and they will be automatically installed to your site, [ready for use in your pages](https://docs.hugoblox.com/getting-started/page-builder/).
|
5
starters/blog/hugo-blox/blox/community/README.md
Normal file
5
starters/blog/hugo-blox/blox/community/README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Hugo Blox Builder: Community Blox
|
||||
|
||||
Upload custom or community Hugo Blox to this folder and they will be automatically installed to your site, [ready for use in your pages](https://docs.hugoblox.com/getting-started/page-builder/).
|
||||
|
||||
Creating your own blox? [Follow the step-by-step tutorial](https://docs.hugoblox.com/getting-started/page-builder/).
|
|
@ -1,2 +1,2 @@
|
|||
build:
|
||||
hugo_version: '0.125.1'
|
||||
hugo_version: '0.125.2'
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
publish = "public"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.125.1"
|
||||
HUGO_VERSION = "0.125.2"
|
||||
GO_VERSION = "1.21.5"
|
||||
NODE_VERSION = "21.1.0"
|
||||
HUGO_ENABLEGITINFO = "true"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: Deploy website to GitHub Pages
|
||||
|
||||
env:
|
||||
WC_HUGO_VERSION: '0.125.1'
|
||||
WC_HUGO_VERSION: '0.125.2'
|
||||
|
||||
on:
|
||||
# Trigger the workflow every time you push to the `main` branch
|
||||
|
|
|
@ -7,3 +7,17 @@
|
|||
imports:
|
||||
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
|
||||
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind
|
||||
|
||||
# Install any Hugo Blox within the `hugo-blox/blox/` folder
|
||||
mounts:
|
||||
- source: hugo-blox/blox/community
|
||||
target: layouts/partials/blox/community/
|
||||
includeFiles: '**.html'
|
||||
- source: hugo-blox/blox/all-access
|
||||
target: layouts/partials/blox/
|
||||
includeFiles: '**.html'
|
||||
- source: hugo-blox/blox
|
||||
target: assets/dist/community/blox/
|
||||
includeFiles: '**.css'
|
||||
- source: layouts
|
||||
target: layouts
|
||||
|
|
|
@ -4,5 +4,5 @@ go 1.15
|
|||
|
||||
require (
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20240217212918-ae7f0c597978
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240420123751-9547f9a844cf
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240420214532-11a51f8e9f01
|
||||
)
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
# Hugo Blox Builder: All Access
|
||||
|
||||
Elevate your web projects with [All Access](https://hugoblox.com/sponsor/), our premium Tailwind blox collection!
|
||||
|
||||
Get access to a diverse range of professionally designed, responsive components — from sleek pricing sections to interactive forms. Save time with our ready-to-use blox, fully customizable to fit your brand, and focus on creating unique features that set your website apart. Optimize your development process and enhance your designs effortlessly with our Tailwind blox!
|
||||
|
||||
Upload All Access blox to this folder and they will be automatically installed to your site, [ready for use in your pages](https://docs.hugoblox.com/getting-started/page-builder/).
|
|
@ -0,0 +1,5 @@
|
|||
# Hugo Blox Builder: Community Blox
|
||||
|
||||
Upload custom or community Hugo Blox to this folder and they will be automatically installed to your site, [ready for use in your pages](https://docs.hugoblox.com/getting-started/page-builder/).
|
||||
|
||||
Creating your own blox? [Follow the step-by-step tutorial](https://docs.hugoblox.com/getting-started/page-builder/).
|
|
@ -1,2 +1,2 @@
|
|||
build:
|
||||
hugo_version: '0.125.1'
|
||||
hugo_version: '0.125.2'
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
publish = "public"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.125.1"
|
||||
HUGO_VERSION = "0.125.2"
|
||||
HUGO_ENABLEGITINFO = "true"
|
||||
|
||||
[context.production.environment]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: Deploy website to GitHub Pages
|
||||
|
||||
env:
|
||||
WC_HUGO_VERSION: '0.125.1'
|
||||
WC_HUGO_VERSION: '0.125.2'
|
||||
|
||||
on:
|
||||
# Trigger the workflow every time you push to the `main` branch
|
||||
|
|
|
@ -7,3 +7,17 @@
|
|||
imports:
|
||||
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
|
||||
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind
|
||||
|
||||
# Install any Hugo Blox within the `hugo-blox/blox/` folder
|
||||
mounts:
|
||||
- source: hugo-blox/blox/community
|
||||
target: layouts/partials/blox/community/
|
||||
includeFiles: '**.html'
|
||||
- source: hugo-blox/blox/all-access
|
||||
target: layouts/partials/blox/
|
||||
includeFiles: '**.html'
|
||||
- source: hugo-blox/blox
|
||||
target: assets/dist/community/blox/
|
||||
includeFiles: '**.css'
|
||||
- source: layouts
|
||||
target: layouts
|
||||
|
|
|
@ -4,5 +4,5 @@ go 1.19
|
|||
|
||||
require (
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240420123751-9547f9a844cf
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240420214532-11a51f8e9f01
|
||||
)
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
# Hugo Blox Builder: All Access
|
||||
|
||||
Elevate your web projects with [All Access](https://hugoblox.com/sponsor/), our premium Tailwind blox collection!
|
||||
|
||||
Get access to a diverse range of professionally designed, responsive components — from sleek pricing sections to interactive forms. Save time with our ready-to-use blox, fully customizable to fit your brand, and focus on creating unique features that set your website apart. Optimize your development process and enhance your designs effortlessly with our Tailwind blox!
|
||||
|
||||
Upload All Access blox to this folder and they will be automatically installed to your site, [ready for use in your pages](https://docs.hugoblox.com/getting-started/page-builder/).
|
5
starters/landing-page/hugo-blox/blox/community/README.md
Normal file
5
starters/landing-page/hugo-blox/blox/community/README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Hugo Blox Builder: Community Blox
|
||||
|
||||
Upload custom or community Hugo Blox to this folder and they will be automatically installed to your site, [ready for use in your pages](https://docs.hugoblox.com/getting-started/page-builder/).
|
||||
|
||||
Creating your own blox? [Follow the step-by-step tutorial](https://docs.hugoblox.com/getting-started/page-builder/).
|
|
@ -1,2 +1,2 @@
|
|||
build:
|
||||
hugo_version: '0.125.1'
|
||||
hugo_version: '0.125.2'
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
publish = "public"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.125.1"
|
||||
HUGO_VERSION = "0.125.2"
|
||||
HUGO_ENABLEGITINFO = "true"
|
||||
|
||||
[context.production.environment]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: Deploy website to GitHub Pages
|
||||
|
||||
env:
|
||||
WC_HUGO_VERSION: '0.125.1'
|
||||
WC_HUGO_VERSION: '0.125.2'
|
||||
|
||||
on:
|
||||
# Trigger the workflow every time you push to the `main` branch
|
||||
|
|
|
@ -7,3 +7,17 @@
|
|||
imports:
|
||||
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
|
||||
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind
|
||||
|
||||
# Install any Hugo Blox within the `hugo-blox/blox/` folder
|
||||
mounts:
|
||||
- source: hugo-blox/blox/community
|
||||
target: layouts/partials/blox/community/
|
||||
includeFiles: '**.html'
|
||||
- source: hugo-blox/blox/all-access
|
||||
target: layouts/partials/blox/
|
||||
includeFiles: '**.html'
|
||||
- source: hugo-blox/blox
|
||||
target: assets/dist/community/blox/
|
||||
includeFiles: '**.css'
|
||||
- source: layouts
|
||||
target: layouts
|
||||
|
|
|
@ -4,5 +4,5 @@ go 1.19
|
|||
|
||||
require (
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240420123751-9547f9a844cf
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240420214532-11a51f8e9f01
|
||||
)
|
||||
|
|
7
starters/link-in-bio/hugo-blox/blox/all-access/README.md
Normal file
7
starters/link-in-bio/hugo-blox/blox/all-access/README.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Hugo Blox Builder: All Access
|
||||
|
||||
Elevate your web projects with [All Access](https://hugoblox.com/sponsor/), our premium Tailwind blox collection!
|
||||
|
||||
Get access to a diverse range of professionally designed, responsive components — from sleek pricing sections to interactive forms. Save time with our ready-to-use blox, fully customizable to fit your brand, and focus on creating unique features that set your website apart. Optimize your development process and enhance your designs effortlessly with our Tailwind blox!
|
||||
|
||||
Upload All Access blox to this folder and they will be automatically installed to your site, [ready for use in your pages](https://docs.hugoblox.com/getting-started/page-builder/).
|
5
starters/link-in-bio/hugo-blox/blox/community/README.md
Normal file
5
starters/link-in-bio/hugo-blox/blox/community/README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Hugo Blox Builder: Community Blox
|
||||
|
||||
Upload custom or community Hugo Blox to this folder and they will be automatically installed to your site, [ready for use in your pages](https://docs.hugoblox.com/getting-started/page-builder/).
|
||||
|
||||
Creating your own blox? [Follow the step-by-step tutorial](https://docs.hugoblox.com/getting-started/page-builder/).
|
|
@ -1,2 +1,2 @@
|
|||
build:
|
||||
hugo_version: '0.125.1'
|
||||
hugo_version: '0.125.2'
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
publish = "public"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.125.1"
|
||||
HUGO_VERSION = "0.125.2"
|
||||
HUGO_ENABLEGITINFO = "true"
|
||||
|
||||
[context.production.environment]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: Deploy website to GitHub Pages
|
||||
|
||||
env:
|
||||
WC_HUGO_VERSION: '0.125.1'
|
||||
WC_HUGO_VERSION: '0.125.2'
|
||||
|
||||
on:
|
||||
# Trigger the workflow every time you push to the `main` branch
|
||||
|
|
|
@ -7,3 +7,17 @@
|
|||
imports:
|
||||
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
|
||||
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind
|
||||
|
||||
# Install any Hugo Blox within the `hugo-blox/blox/` folder
|
||||
mounts:
|
||||
- source: hugo-blox/blox/community
|
||||
target: layouts/partials/blox/community/
|
||||
includeFiles: '**.html'
|
||||
- source: hugo-blox/blox/all-access
|
||||
target: layouts/partials/blox/
|
||||
includeFiles: '**.html'
|
||||
- source: hugo-blox/blox
|
||||
target: assets/dist/community/blox/
|
||||
includeFiles: '**.css'
|
||||
- source: layouts
|
||||
target: layouts
|
||||
|
|
|
@ -4,5 +4,5 @@ go 1.19
|
|||
|
||||
require (
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231125200520-804c70f7efb8
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240420123751-9547f9a844cf
|
||||
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240420214532-11a51f8e9f01
|
||||
)
|
||||
|
|
7
starters/resume/hugo-blox/blox/all-access/README.md
Normal file
7
starters/resume/hugo-blox/blox/all-access/README.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Hugo Blox Builder: All Access
|
||||
|
||||
Elevate your web projects with [All Access](https://hugoblox.com/sponsor/), our premium Tailwind blox collection!
|
||||
|
||||
Get access to a diverse range of professionally designed, responsive components — from sleek pricing sections to interactive forms. Save time with our ready-to-use blox, fully customizable to fit your brand, and focus on creating unique features that set your website apart. Optimize your development process and enhance your designs effortlessly with our Tailwind blox!
|
||||
|
||||
Upload All Access blox to this folder and they will be automatically installed to your site, [ready for use in your pages](https://docs.hugoblox.com/getting-started/page-builder/).
|
5
starters/resume/hugo-blox/blox/community/README.md
Normal file
5
starters/resume/hugo-blox/blox/community/README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Hugo Blox Builder: Community Blox
|
||||
|
||||
Upload custom or community Hugo Blox to this folder and they will be automatically installed to your site, [ready for use in your pages](https://docs.hugoblox.com/getting-started/page-builder/).
|
||||
|
||||
Creating your own blox? [Follow the step-by-step tutorial](https://docs.hugoblox.com/getting-started/page-builder/).
|
|
@ -1,2 +1,2 @@
|
|||
build:
|
||||
hugo_version: '0.125.1'
|
||||
hugo_version: '0.125.2'
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
publish = "public"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.125.1"
|
||||
HUGO_VERSION = "0.125.2"
|
||||
HUGO_ENABLEGITINFO = "true"
|
||||
|
||||
[context.production.environment]
|
||||
|
|
Loading…
Reference in a new issue