mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-09 06:21:13 +00:00
Update to Hugo v0.143.1
This commit is contained in:
parent
3282b231c0
commit
fd5c0865b5
18 changed files with 112 additions and 47 deletions
|
@ -204,7 +204,17 @@ We'll have to add the following contents to `theme/layouts/shortcodes/displayOnl
|
|||
{{ $url := urls.Parse (.Get 0) }}
|
||||
{{ $status_id := index (last 1 (split $url.Path "/")) 0 }}
|
||||
{{ $api_url := printf "%s://%s/api/v1/statuses/%s" $url.Scheme $url.Host $status_id }}
|
||||
{{ $dataJ := getJSON $api_url }}
|
||||
{{ $dataJ := dict }}
|
||||
{{ $url := $api_url }}
|
||||
{{ with try (resources.GetRemote $url) }}
|
||||
{{ with .Err }}
|
||||
{{ errorf "Unable to get remote resource %s: %s" $url . }}
|
||||
{{ else with .Value }}
|
||||
{{ $dataJ = . | transform.Unmarshal }}
|
||||
{{ else }}
|
||||
{{ errorf "Unable to get remote resource %s" $url }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ with $dataJ }}
|
||||
{{ if ne .content "" }}
|
||||
|
|
|
@ -49,7 +49,7 @@ medium_enabled: false
|
|||
"icon": "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}",
|
||||
"language": "en-US",
|
||||
"authors": [
|
||||
{{with $.Site.Author.name }}
|
||||
{{with $.Site.Params.name }}
|
||||
{ "name": "{{ . }}" }
|
||||
{{ end }}
|
||||
],
|
||||
|
@ -71,7 +71,7 @@ My `list.json.json` follows the [JSON Feed](https://jsonfeed.org/) specification
|
|||
"url": "{{ .Permalink }}",
|
||||
"title": {{ .Title | jsonify }},
|
||||
"authors": [
|
||||
{{with $.Site.Author.name }}
|
||||
{{with $.Site.Params.Author }}
|
||||
{ "name": "{{ . }}" }
|
||||
{{ end }}
|
||||
],
|
||||
|
|
|
@ -7,7 +7,7 @@ authors: [
|
|||
"Veena Ravishankar",
|
||||
"Brandon Rozek"
|
||||
]
|
||||
date: 2020-06
|
||||
date: 2020-06-01
|
||||
publish_date: "2020/6"
|
||||
conference: "International Workshop on Unification"
|
||||
firstpage: 58
|
||||
|
|
|
@ -7,7 +7,7 @@ authors: [
|
|||
"Selmer Bringsjord",
|
||||
"Naveen Sundar Govindarajulu"
|
||||
]
|
||||
date: 2022-07
|
||||
date: 2022-07-01
|
||||
publish_date: "2022/07"
|
||||
conference: "International Conference on Robot Ethics and Standards"
|
||||
isbn: "978-1-7396142-0-1"
|
||||
|
|
27
content/postroll/_content.gotmpl
Normal file
27
content/postroll/_content.gotmpl
Normal file
|
@ -0,0 +1,27 @@
|
|||
{{/* Get remote data. */}}
|
||||
{{ $items := dict }}
|
||||
{{ $url := "https://api.brandonrozek.com/postroll" }}
|
||||
{{ with try (resources.GetRemote $url ) }}
|
||||
{{ with .Err }}
|
||||
{{ errorf "Unable to get remote resource %s: %s" $url . }}
|
||||
{{ else with .Value }}
|
||||
{{ $items = . | transform.Unmarshal }}
|
||||
{{ else }}
|
||||
{{ errorf "Unable to get remote resource %s" $url }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ range $items.Ok }}
|
||||
{{ $content := dict "mediaType" "text/markdown" "value" .comment }}
|
||||
{{ $dates := dict "date" (time.AsTime .dateadded) }}
|
||||
{{ $params := dict "url" .url "author" .author }}
|
||||
{{ $page := dict
|
||||
"content" $content
|
||||
"dates" $dates
|
||||
"kind" "page"
|
||||
"params" $params
|
||||
"path" .title
|
||||
"title" .title
|
||||
}}
|
||||
{{ $.AddPage $page }}
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue