eclipsefdn-hugo-solstice-theme 0.0.167 → 0.0.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ Versions of Hugo 0.60 and beyond do not support raw HTML in markdown files by de
|
|
|
59
59
|
## Contributing
|
|
60
60
|
|
|
61
61
|
1. [Fork](https://docs.gitlab.com/ee/user/project/repository/forking_workflow.html) the [solstice-assets](https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/) repository
|
|
62
|
-
2. Clone repository: `git clone https://gitlab.eclipse.org/[
|
|
62
|
+
2. Clone repository: `git clone https://gitlab.eclipse.org/[your_gitlab_username]/hugo-solstice-theme.git`
|
|
63
63
|
3. Create your feature branch: `git checkout -b my-new-feature`
|
|
64
64
|
4. Commit your changes: `git commit -m 'Add some feature' -s`
|
|
65
65
|
5. Push feature branch: `git push origin my-new-feature`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Canonical URL - Testing LangAbsURL
|
|
3
|
+
hide_sidebar: true
|
|
4
|
+
canonical_url: ./params
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
This page tests whether or not `absLangURL` gets applied correctly to `canonical_url` param.
|
|
8
|
+
|
|
9
|
+
The `canonical_url` is set to `./params`.
|
|
10
|
+
|
|
11
|
+
The `href` value of the `<link rel="canonical" ...>` element should be `"//<domain>/fr/params"`.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Canonical URL
|
|
3
|
+
hide_sidebar: true
|
|
4
|
+
canonical_url: https://google.com
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The `canonical_url` config parameter sets the canonical url of the page. The value must be an *absolute url*.
|
|
8
|
+
|
|
9
|
+
If `canonical_url` is not specified, the canonical URL will be the pages' default url.
|
|
10
|
+
|
|
11
|
+
```md
|
|
12
|
+
title: Canonical URL
|
|
13
|
+
hide_sidebar: true
|
|
14
|
+
canonical_url: https://google.com
|
|
15
|
+
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Metatag Robots Config Parameter
|
|
3
|
+
hide_sidebar: true
|
|
4
|
+
metatag_robots: noindex, nofollow
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The `metatag_robots` config parameter grants the ability to add a "robots" metatag with the set `content` attribute.
|
|
8
|
+
|
|
9
|
+
If blank, no meta tag will be created for "robots".
|
|
10
|
+
|
|
11
|
+
Usage:
|
|
12
|
+
```md
|
|
13
|
+
title: Metatag Robots Config Parameter
|
|
14
|
+
hide_sidebar: true
|
|
15
|
+
metatag_robots: noindex, nofollow
|
|
16
|
+
```
|
|
17
|
+
|
|
@@ -35,6 +35,9 @@
|
|
|
35
35
|
{{- with .Params.page_favicon | default .Site.Params.favicon | default "https://www.eclipse.org/favicon.ico"}}
|
|
36
36
|
<link href='{{ . | relURL }}' rel='icon' type='image/x-icon'/>
|
|
37
37
|
{{- end -}}
|
|
38
|
+
{{- with .Page.Params.metatag_robots }}
|
|
39
|
+
<meta name="robots" content="{{ . }}">
|
|
40
|
+
{{- end }}
|
|
38
41
|
<!-- Social Media Tags -->
|
|
39
42
|
{{- with .Params.share_img | default .Params.image | default .Site.Params.share_img | default .Site.Params.logo }}
|
|
40
43
|
<meta property="og:image" content="{{ . | relURL }}" />
|
|
@@ -57,7 +60,8 @@
|
|
|
57
60
|
<!-- Hugo Version number -->
|
|
58
61
|
{{ hugo.Generator -}}
|
|
59
62
|
<!-- Links and stylesheets -->
|
|
60
|
-
|
|
63
|
+
{{ $canonical_url := (.Page.Params.canonical_url | default .Permalink) | absLangURL }}
|
|
64
|
+
<link rel="canonical" href="{{ $canonical_url }}" />
|
|
61
65
|
{{ with .OutputFormats.Get "RSS" }}
|
|
62
66
|
<link rel="alternate" href="{{ .RelPermalink }}" type="application/rss+xml" title="">
|
|
63
67
|
{{ end }}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "webpack.min.js",
|
|
5
5
|
"author": "Christopher Guindon",
|
|
6
6
|
"license": "EPL-2.0",
|
|
7
|
-
"version": "0.0.
|
|
7
|
+
"version": "0.0.169",
|
|
8
8
|
"bugs": {
|
|
9
9
|
"url": "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues"
|
|
10
10
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"readmeFilename": "README.md",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"axios": "^0.21.1",
|
|
27
|
-
"eclipsefdn-solstice-assets": "^0.0.
|
|
27
|
+
"eclipsefdn-solstice-assets": "^0.0.207",
|
|
28
28
|
"json2yaml": "^1.1.0",
|
|
29
29
|
"toml": "^3.0.0"
|
|
30
30
|
},
|