mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-09 14:31: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
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 }}
|
7
content/postroll/_index.md
Normal file
7
content/postroll/_index.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
title: Postroll
|
||||
description: Recently enjoyed blog posts
|
||||
layout: postroll
|
||||
---
|
||||
|
||||
Inspired by [Jedda's Postroll](https://notes.jeddacp.com/postroll/), here is an incomplete list of blog posts that I've read and enjoyed in the last 3 months. This list refreshes daily.
|
Loading…
Add table
Add a link
Reference in a new issue