Skip to content

Commit 7da074b

Browse files
author
Splitter
committed
feat: standardize page resource links via links + hugoblox.ids
1 parent cc2884a commit 7da074b

File tree

7 files changed

+82
-53
lines changed

7 files changed

+82
-53
lines changed

content/event/example/index.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ image:
3636
caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/bzdhc5b3Bxs)'
3737
focal_point: Right
3838

39-
#links:
40-
# - icon: twitter
41-
# icon_pack: fab
42-
# name: Follow
43-
# url: https://twitter.com/georgecushen
44-
url_code: 'https://github.com'
45-
url_pdf: ''
46-
url_slides: 'https://slideshare.net'
47-
url_video: 'https://youtube.com'
39+
links:
40+
- type: code
41+
url: https://github.com
42+
- type: slides
43+
url: https://slideshare.net
44+
- type: video
45+
url: https://youtube.com
4846

4947
# Markdown Slides (optional).
5048
# Associate this talk with Markdown slides.
@@ -68,8 +66,8 @@ Click on the **Slides** button above to view the built-in slides feature.
6866

6967
Slides can be added in a few ways:
7068

71-
- **Create** slides using Hugo Blox Builder's [_Slides_](https://docs.hugoblox.com/reference/content-types/) feature and link using `slides` parameter in the front matter of the talk file
72-
- **Upload** an existing slide deck to `static/` and link using `url_slides` parameter in the front matter of the talk file
69+
- **Create** slides using Hugo Blox Builder's [_Slides_](https://docs.hugoblox.com/reference/content-types/) feature and link using the `slides` parameter in the front matter of the talk file
70+
- **Upload** an existing slide deck to this page bundle and link it using `links: [{ type: slides, url: path/to/file } ]` in front matter
7371
- **Embed** your slides (e.g. Google Slides) or presentation video on this page using [shortcodes](https://docs.hugoblox.com/reference/markdown/).
7472

7573
Further event details, including [page elements](https://docs.hugoblox.com/reference/markdown/) such as image galleries, can be added to the body of this page.

content/project/pandas/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
title: Pandas
33
date: 2023-10-26
4-
external_link: https://github.com/pandas-dev/pandas
4+
links:
5+
- type: site
6+
url: https://github.com/pandas-dev/pandas
57
tags:
68
- Hugo
79
- Wowchemy

content/project/pytorch/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
title: PyTorch
33
date: 2023-10-26
4-
external_link: https://github.com/pytorch/pytorch
4+
links:
5+
- type: site
6+
url: https://github.com/pytorch/pytorch
57
tags:
68
- Hugo
79
- Wowchemy

content/project/scikit/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
title: scikit-learn
33
date: 2023-10-26
4-
external_link: https://github.com/scikit-learn/scikit-learn
4+
links:
5+
- type: site
6+
url: https://github.com/scikit-learn/scikit-learn
57
tags:
68
- Hugo
79
- Wowchemy

content/publication/conference-paper/index.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ author_notes:
1414
- 'Equal contribution'
1515

1616
date: '2013-07-01T00:00:00Z'
17-
doi: ''
1817

1918
# Schedule page publish date (NOT publication's date).
2019
publishDate: '2017-01-01T00:00:00Z'
@@ -39,19 +38,25 @@ tags:
3938
# Display this page in the Featured widget?
4039
featured: true
4140

42-
# Custom links (uncomment lines below)
43-
# links:
44-
# - name: Custom Link
45-
# url: http://example.org
46-
47-
url_pdf: ''
48-
url_code: 'https://github.com/HugoBlox/hugo-blox-builder'
49-
url_dataset: 'https://github.com/HugoBlox/hugo-blox-builder'
50-
url_poster: ''
51-
url_project: ''
52-
url_slides: ''
53-
url_source: 'https://github.com/HugoBlox/hugo-blox-builder'
54-
url_video: 'https://youtube.com'
41+
# Standard identifiers for auto-linking
42+
hugoblox:
43+
ids:
44+
doi: 10.5555/123456
45+
46+
# Custom links
47+
links:
48+
- type: pdf
49+
url: ""
50+
- type: code
51+
url: https://github.com/HugoBlox/hugo-blox-builder
52+
- type: dataset
53+
url: https://github.com/HugoBlox/hugo-blox-builder
54+
- type: slides
55+
url: https://www.slideshare.net/
56+
- type: source
57+
url: https://github.com/HugoBlox/hugo-blox-builder
58+
- type: video
59+
url: https://youtube.com
5560

5661
# Featured image
5762
# To use, add an image named `featured.jpg/png` to your page's folder.
@@ -73,7 +78,7 @@ projects:
7378
# Simply enter your slide deck's filename without extension.
7479
# E.g. `slides: "example"` references `content/slides/example/index.md`.
7580
# Otherwise, set `slides: ""`.
76-
slides: example
81+
slides: ""
7782
---
7883

7984
{{% callout note %}}

content/publication/journal-article/index.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ author_notes:
77
- "Equal contribution"
88
- "Equal contribution"
99
date: "2015-09-01T00:00:00Z"
10-
doi: ""
1110

1211
# Schedule page publish date (NOT publication's date).
1312
publishDate: "2017-01-01T00:00:00Z"
@@ -30,17 +29,27 @@ tags:
3029
- Source Themes
3130
featured: false
3231

33-
# links:
34-
# - name: ""
35-
# url: ""
36-
url_pdf: http://arxiv.org/pdf/1512.04133v1
37-
url_code: 'https://github.com/HugoBlox/hugo-blox-builder'
38-
url_dataset: ''
39-
url_poster: ''
40-
url_project: ''
41-
url_slides: ''
42-
url_source: ''
43-
url_video: ''
32+
hugoblox:
33+
ids:
34+
arxiv: 1512.04133v1
35+
36+
links:
37+
- type: pdf
38+
url: http://arxiv.org/pdf/1512.04133v1
39+
- type: code
40+
url: https://github.com/HugoBlox/hugo-blox-builder
41+
- type: dataset
42+
url: ""
43+
- type: poster
44+
url: ""
45+
- type: project
46+
url: ""
47+
- type: slides
48+
url: https://www.slideshare.net/
49+
- type: source
50+
url: ""
51+
- type: video
52+
url: ""
4453

4554
# Featured image
4655
# To use, add an image named `featured.jpg/png` to your page's folder.
@@ -61,7 +70,7 @@ projects: []
6170
# Simply enter your slide deck's filename without extension.
6271
# E.g. `slides: "example"` references `content/slides/example/index.md`.
6372
# Otherwise, set `slides: ""`.
64-
slides: example
73+
slides: ""
6574
---
6675

6776
{{% callout note %}}

content/publication/preprint/index.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: "An example preprint / working paper"
33
authors:
44
- admin
55
date: "2019-04-07T00:00:00Z"
6-
doi: ""
76

87
# Schedule page publish date (NOT publication's date).
98
publishDate: "2017-01-01T00:00:00Z"
@@ -27,17 +26,29 @@ tags:
2726

2827
featured: true
2928

29+
hugoblox:
30+
ids:
31+
arxiv: 1512.04133v1
32+
3033
links:
31-
- name: Custom Link
34+
- type: preprint
35+
provider: arxiv
36+
id: 1512.04133v1
37+
- type: code
38+
url: https://github.com/HugoBlox/hugo-blox-builder
39+
- type: slides
40+
url: https://www.slideshare.net/
41+
- type: dataset
42+
url: "#"
43+
- type: poster
44+
url: "#"
45+
- type: source
46+
url: "#"
47+
- type: video
48+
url: https://youtube.com
49+
- type: custom
50+
label: Custom Link
3251
url: http://example.org
33-
url_pdf: http://arxiv.org/pdf/1512.04133v1
34-
url_code: 'https://github.com/HugoBlox/hugo-blox-builder'
35-
url_dataset: '#'
36-
url_poster: '#'
37-
url_project: ''
38-
url_slides: ''
39-
url_source: '#'
40-
url_video: '#'
4152

4253
# Featured image
4354
# To use, add an image named `featured.jpg/png` to your page's folder.
@@ -59,7 +70,7 @@ projects:
5970
# Simply enter your slide deck's filename without extension.
6071
# E.g. `slides: "example"` references `content/slides/example/index.md`.
6172
# Otherwise, set `slides: ""`.
62-
slides: example
73+
slides: ""
6374
---
6475

6576
This work is driven by the results in my [previous paper](/publication/conference-paper/) on LLMs.

0 commit comments

Comments
 (0)