-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Attempt #1 Signed-off-by: Chris Reddington <[email protected]> * Fix search action (#74) Signed-off-by: Chris Reddington <[email protected]> * Fix search string Signed-off-by: Chris Reddington <[email protected]> * Search fix template Signed-off-by: Chris Reddington <[email protected]> * Update template Signed-off-by: Chris Reddington <[email protected]> * Adjust banner size Signed-off-by: Chris Reddington <[email protected]> * Resize images Signed-off-by: Chris Reddington <[email protected]> * SEO Fixes, Package-lock fix Signed-off-by: Chris Reddington <[email protected]> * Tweaks to GH Actions Workflow Signed-off-by: Chris Reddington <[email protected]> * Tweak to external Signed-off-by: Chris Reddington <[email protected]> * Adjust to Date Signed-off-by: Chris Reddington <[email protected]> * Bug fix for missing mode Signed-off-by: Chris Reddington <[email protected]> * Markdown image fix Signed-off-by: Chris Reddington <[email protected]> * Rudimentary custom style functionality Signed-off-by: Chris Reddington <[email protected]>
- Loading branch information
1 parent
1e3bb90
commit 3140426
Showing
21 changed files
with
305 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,35 @@ | ||
--- | ||
# Default hugo properties | ||
title: "" # Name of the Person | ||
description: "" # Used for SEO optimisation | ||
publishDate: "" # TODO: Differentiate between date | ||
date: "" # TODO: Differentiate between PublishDate | ||
title: "" # Name of the Person | ||
description: "" # Used for SEO optimisation | ||
publishDate: "" # TODO: Differentiate between date | ||
date: "" # TODO: Differentiate between PublishDate | ||
|
||
# Site-wide [required properties] | ||
image: "" # Displayed when referenced in listing pages | ||
images: # An array of images used in Social Sharing | ||
image: "" # Displayed when referenced in listing pages | ||
images: # An array of images used in Social Sharing | ||
- "" | ||
tags: # Used for SEO optimisation and browsing across the site. | ||
tags: # Used for SEO optimisation and browsing across the site. | ||
- "" | ||
- "" | ||
|
||
# Site-wide [optional properties] | ||
externalLink: "" # Full URL to override listing links to an external page | ||
series: # Array of series (i.e. filenames of the series this is a part of) | ||
series: # Array of series (i.e. filenames of the series this is a part of) | ||
- "" | ||
|
||
# Content-specific properties | ||
eventName: "" # Name of the organising group / event (e.g. Name of the conference) | ||
hosts: # Array of hosts in the episode (i.e. filenames of those people) | ||
event: | ||
attendanceType: "" # physical, virtual, hybrid | ||
organizerName: "" # Name of the organising group / event (e.g. Name of the conference) | ||
organizerUrl: "" # URL of the organising group | ||
eventUrl: "" # URL of the specific event, if applicable (e.g. a meetup talk, rather than the meetup group) | ||
type: "" # Type of event (e.g. Meetup, Conference, etc.) | ||
location: "" # Required for physical and hybrid events. | ||
cost: "" # Cost to attend the event | ||
costCurrency: "" # Cost currency for the event. Use a standard format - http://en.wikipedia.org/wiki/ISO_4217 | ||
available: "" # Whether registration/ticket purchases/etc. are still available (true/false). Defaults to false when event is in past. | ||
speakers: # Array of hosts in the episode (i.e. filenames of those people). | ||
- "" | ||
talkType: "" # String displayed on the talk page. Represents the type of talk. | ||
youtube: "" # ID of the YouTube video for this content | ||
youtube: "" # ID of the YouTube video for this content | ||
--- | ||
Input your talk description here. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"name": "hugo-creator", | ||
"version": "2.0.0", | ||
"lockfileVersion": 2, | ||
"requires": true, | ||
"packages": { | ||
"": { | ||
"name": "hugo-creator", | ||
"version": "2.0.0", | ||
"dependencies": { | ||
"@fortawesome/fontawesome-free": "^5.15.2", | ||
"bootstrap": "^5.0.0-beta2" | ||
} | ||
}, | ||
"node_modules/@fortawesome/fontawesome-free": { | ||
"version": "5.15.2", | ||
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.2.tgz", | ||
"integrity": "sha512-7l/AX41m609L/EXI9EKH3Vs3v0iA8tKlIOGtw+kgcoanI7p+e4I4GYLqW3UXWiTnjSFymKSmTTPKYrivzbxxqA==", | ||
"hasInstallScript": true, | ||
"engines": { | ||
"node": ">=6" | ||
} | ||
}, | ||
"node_modules/bootstrap": { | ||
"version": "5.0.0-beta2", | ||
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.0.0-beta2.tgz", | ||
"integrity": "sha512-e+uPbPHqTQWKyCX435uVlOmgH9tUt0xtjvyOC7knhKgOS643BrQKuTo+KecGpPV7qlmOyZgCfaM4xxPWtDEN/g==" | ||
} | ||
}, | ||
"dependencies": { | ||
"@fortawesome/fontawesome-free": { | ||
"version": "5.15.2", | ||
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.2.tgz", | ||
"integrity": "sha512-7l/AX41m609L/EXI9EKH3Vs3v0iA8tKlIOGtw+kgcoanI7p+e4I4GYLqW3UXWiTnjSFymKSmTTPKYrivzbxxqA==" | ||
}, | ||
"bootstrap": { | ||
"version": "5.0.0-beta2", | ||
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.0.0-beta2.tgz", | ||
"integrity": "sha512-e+uPbPHqTQWKyCX435uVlOmgH9tUt0xtjvyOC7knhKgOS643BrQKuTo+KecGpPV7qlmOyZgCfaM4xxPWtDEN/g==" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,32 @@ | ||
{{ if .Title }} | ||
<figure class="figure text-center"> | ||
<img class="img-fluid" src="{{ .Destination | safeURL }}" alt="{{ .Text }}" loading="lazy"> | ||
{{ template "image" (dict "context" . "page" .Page) }} | ||
<figcaption class="figure-caption">{{ .Title }}</figcaption> | ||
</figure> | ||
{{ else }} | ||
<img class="img-fluid" src="{{ .Destination | safeURL }}" alt="{{ .Text }}" loading="lazy"> | ||
{{ template "image" (dict "context" . "page" .Page) }} | ||
{{ end }} | ||
|
||
|
||
{{ define "image" }} | ||
{{ $context := .context }} | ||
{{ $page := .page }} | ||
{{ $image := $page.Resources.GetMatch $context.Destination }} | ||
{{ $tiny := ($image.Resize "480x webp") }} | ||
{{ $small := ($image.Resize "768x webp") }} | ||
{{ $medium := ($image.Resize "1024x webp") }} | ||
{{ $large := ($image.Resize "1366x webp") }} | ||
<img class="img-fluid" loading="lazy" | ||
srcset=" | ||
{{- with $tiny.RelPermalink -}}{{.}} 480w{{- end -}} | ||
{{- with $small.RelPermalink -}}, {{.}} 768w{{- end -}} | ||
{{- with $medium.RelPermalink -}}, {{.}} 1024w{{- end -}} | ||
{{- with $large.RelPermalink -}}, {{.}} 1366w{{- end -}}" | ||
src="{{ $image.RelPermalink }}" | ||
sizes="(max-width: 600px) 480px, | ||
(max-width: 800px) 768px, | ||
(max-width: 1050px) 1024px, | ||
1366px" | ||
alt="{{ $context.Text }}" | ||
title="{{ $context.Text }}" /> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.