Add new layout files for code highlighting, headings, images, links, and shortcodes
This commit is contained in:
17
layouts/shortcodes/opmlblogroll.html
Normal file
17
layouts/shortcodes/opmlblogroll.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ $url := "https://appletune.fundor333.com/api/blogrollgroup/?format=json" }}
|
||||
|
||||
{{ with resources.GetRemote $url }}
|
||||
{{- $content := .Content | transform.Unmarshal -}}
|
||||
|
||||
{{- range $content -}}
|
||||
<h2>{{ .name }}</h2>
|
||||
<ul>
|
||||
{{- range .rows }}
|
||||
<li><a href='{{.url}}'>{{.name}}</a> {{ with .feed_url }} (<a href='{{ . }}'>feed</a>)</li> {{ end }}
|
||||
|
||||
{{ end}}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user