mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-04-25 04:33:07 -04:00
Implement fixes for refreshed template system for Hugo v0.146.0+ (#1726)
This commit is contained in:
parent
149f12cea7
commit
7cf752f864
4
.github/ISSUE_TEMPLATE/bug.yaml
vendored
4
.github/ISSUE_TEMPLATE/bug.yaml
vendored
@ -39,8 +39,8 @@ body:
|
|||||||
label: Hugo Version
|
label: Hugo Version
|
||||||
description: What version of Hugo are you running?
|
description: What version of Hugo are you running?
|
||||||
options:
|
options:
|
||||||
- Hugo >= 0.125.7 (Recommended - Minimum version required for PaperMod)
|
- Hugo >= 0.146.0 (Recommended - Minimum version required for PaperMod)
|
||||||
- Hugo < 0.125.7 (Incompatible - Not recommended to build PaperMod on lower versions)
|
- Hugo < 0.146.0 (Incompatible - Not recommended to build PaperMod on lower versions)
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: input
|
- type: input
|
||||||
|
4
.github/workflows/gh-pages.yml
vendored
4
.github/workflows/gh-pages.yml
vendored
@ -15,7 +15,7 @@ on:
|
|||||||
hugoVersion:
|
hugoVersion:
|
||||||
description: "Hugo Version"
|
description: "Hugo Version"
|
||||||
required: false
|
required: false
|
||||||
default: "0.125.7"
|
default: "0.146.0"
|
||||||
|
|
||||||
# Allow one concurrent deployment
|
# Allow one concurrent deployment
|
||||||
concurrency:
|
concurrency:
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.125.7' }}
|
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.146.0' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install Hugo CLI
|
- name: Install Hugo CLI
|
||||||
run: |
|
run: |
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
**ExampleSite** can be found here: [**exampleSite**](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite). Demo is built up with [exampleSite](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite) as source.
|
**ExampleSite** can be found here: [**exampleSite**](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite). Demo is built up with [exampleSite](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite) as source.
|
||||||
|
|
||||||
[](https://themes.gohugo.io/themes/hugo-papermod/)
|
[](https://themes.gohugo.io/themes/hugo-papermod/)
|
||||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.125.7)
|
[](https://github.com/gohugoio/hugo/releases/tag/v0.146.0)
|
||||||
[](https://discord.gg/ahpmTvhVmp)
|
[](https://discord.gg/ahpmTvhVmp)
|
||||||
[](https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE)
|
[](https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE)
|
||||||

|

|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{- if lt hugo.Version "0.125.7" }}
|
{{- if lt hugo.Version "0.146.0" }}
|
||||||
{{- errorf "=> hugo v0.125.7 or greater is required for hugo-PaperMod to build " }}
|
{{- errorf "=> hugo v0.146.0 or greater is required for hugo-PaperMod to build " }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -150,8 +150,8 @@
|
|||||||
|
|
||||||
{{- /* Misc */}}
|
{{- /* Misc */}}
|
||||||
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
|
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
|
||||||
{{- template "_internal/google_analytics.html" . }}
|
{{- partial "google_analytics.html" . }}
|
||||||
{{- template "partials/templates/opengraph.html" . }}
|
{{- partial "templates/opengraph.html" . }}
|
||||||
{{- template "partials/templates/twitter_cards.html" . }}
|
{{- partial "templates/twitter_cards.html" . }}
|
||||||
{{- template "partials/templates/schema_json.html" . }}
|
{{- partial "templates/schema_json.html" . }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }},
|
{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }},
|
||||||
{{- end}}
|
{{- end}}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $images := partial "partials/templates/_funcs/get-page-images" . -}}
|
{{- $images := partial "templates/_funcs/get-page-images" . -}}
|
||||||
{{- with index $images 0 -}}
|
{{- with index $images 0 -}}
|
||||||
"image": {{ .Permalink }},
|
"image": {{ .Permalink }},
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<meta name="twitter:image" content="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}">
|
<meta name="twitter:image" content="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}">
|
||||||
{{- end}}
|
{{- end}}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $images := partial "partials/templates/_funcs/get-page-images" . -}}
|
{{- $images := partial "templates/_funcs/get-page-images" . -}}
|
||||||
{{- with index $images 0 -}}
|
{{- with index $images 0 -}}
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<meta name="twitter:image" content="{{ .Permalink }}">
|
<meta name="twitter:image" content="{{ .Permalink }}">
|
||||||
|
@ -38,7 +38,7 @@ features = [
|
|||||||
"scroll-to-top",
|
"scroll-to-top",
|
||||||
"search"
|
"search"
|
||||||
]
|
]
|
||||||
min_version = "0.125.7"
|
min_version = "0.146.0"
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
name = "Aditya Telange"
|
name = "Aditya Telange"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user