Skip to content

Commit e77d499

Browse files
authored
Merge pull request #105 from stumbo/rssFeed
Rss feed
2 parents 6845069 + 2a95828 commit e77d499

File tree

7 files changed

+161
-1
lines changed

7 files changed

+161
-1
lines changed

config/_default/hugo.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# An overview of hugo configuration files can be found at:
66
# https://gohugo.io/getting-started/configuration/#configure-server
77
#
8+
# title: The title that appears in the navbar of every page. We have
9+
# edited navbar.html to not show the title in the navbar of the home page.
10+
title: "The Medley Interlisp Project"
811

912
# relativeURLs: Enable to force all relative URLs to be relative to content root
1013
relativeURLs: false
@@ -35,7 +38,12 @@ enableMissingTranslationPlaceholders: true
3538
disableKinds:
3639
- taxonomy
3740
- term
38-
- RSS
41+
42+
outputs:
43+
home:
44+
- HTML
45+
section:
46+
- HTML
3947

4048
# Code Highlighting configuration
4149
# Not Used. Code highlighting is controlled using the highlighting

content/en/history/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
title: History
33
weight: 500
44
type: docs
5+
outputs:
6+
- html
7+
- rss
58
aliases:
69
- /medley/history/
710
---

content/en/project/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Title: The Medley Interlisp Project
33
weight: 2
44
type: docs
5+
outputs:
6+
- html
7+
- rss
58
aliases:
69
- /hugo/
710
- /medley/project/

content/en/project/status/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ aliases:
1515

1616
Builds of Medley for several operating systems and architectures are generated automatically every week. You can [learn what's changed and download the latest builds](https://github.com/Interlisp/medley/releases). We advise caution as these builds are untested and may have bugs or other issues.
1717

18+
## Larry Masinter at aNONradio in December 2024
19+
20+
On December 18, 2024 Larry Masinter was a guest of the Lispy Gopher Climate radio show at [aNONradio](https://anonradio.net). The [recording of the episode](https://archives.anonradio.net/202412180000_screwtape.mp3) is available.
21+
1822
## Medley LOOPS Volume I on Hacker News
1923

2024
In October of 2024 the book [Medley LOOPS: The Basic System](/documentation/2024-loops-book-1.pdf) by Stephen Kaisler [made it to the front page of Hacker News](https://news.ycombinator.com/item?id=41859622), where it generated an interesting discussion on early Lisp object systems and the syntax and internals of LOOPS.

content/en/software/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: Software
33
type: docs
4+
outputs:
5+
- html
6+
- rss
47
aliases:
58

69
---

layouts/_default/rss.xml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{{- $authorName := "" }}
2+
{{- with .Site.Params.author }}
3+
{{- if reflect.IsMap . }}
4+
{{- with .name }}
5+
{{- $authorName = . }}
6+
{{- end }}
7+
{{- else }}
8+
{{- $authorName = . }}
9+
{{- end }}
10+
{{- end }}
11+
12+
{{- $pctx := . }}
13+
{{- if .IsHome }}{{ $pctx = .Site }}{{ end }}
14+
15+
<!-- Iterate through all sections and include both sections and
16+
pages in the rss feed. The default rss.xml only includes
17+
pages. -->
18+
{{- $pages := slice }}
19+
{{- $mainPages := where .Pages "Kind" "in" (slice "page" "section") }}
20+
{{- $pages = $pages | union $mainPages }}
21+
22+
{{- range .Sections }}
23+
{{- $sectionPages := where .Pages "Kind" "in" (slice "page" "section") }}
24+
{{- $pages = $pages | union $sectionPages }}
25+
{{- range .Sections }}
26+
{{- $subSectionPages := where .Pages "Kind" "in" (slice "page" "section") }}
27+
{{- $pages = $pages | union $subSectionPages }}
28+
{{- end }}
29+
{{- end }}
30+
31+
{{- $limit := .Site.Config.Services.RSS.Limit }}
32+
{{- if ge $limit 1 }}
33+
{{- $pages = $pages | first $limit }}
34+
{{- end }}
35+
36+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
37+
<channel>
38+
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
39+
<link>{{ .Permalink }}</link>
40+
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
41+
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
42+
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
43+
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
44+
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
45+
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
46+
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
47+
{{ with .OutputFormats.Get "RSS" }}
48+
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
49+
{{ end }}
50+
{{ range $pages }}
51+
<item>
52+
<title>{{ .Title }}</title>
53+
<link>{{ .Permalink }}</link>
54+
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
55+
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
56+
<guid>{{ .Permalink }}</guid>
57+
<description>{{ .Summary | html }}</description>
58+
{{ range .Params.tags }}
59+
<category>{{ . }}</category>
60+
{{ end }}
61+
</item>
62+
{{ end }}
63+
</channel>
64+
</rss>

layouts/partials/navbar.html

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{{ $cover := and
2+
(.HasShortcode "blocks/cover")
3+
(not .Site.Params.ui.navbar_translucent_over_cover_disable)
4+
-}}
5+
{{ $baseURL := urls.Parse $.Site.Params.Baseurl -}}
6+
7+
<nav class="td-navbar js-navbar-scroll
8+
{{- if $cover }} td-navbar-cover {{- end }}" data-bs-theme="dark">
9+
<div class="container-fluid flex-column flex-md-row">
10+
<a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}">
11+
{{- /**/ -}}
12+
<span class="navbar-brand__logo navbar-logo">
13+
{{- if ne .Site.Params.ui.navbar_logo false -}}
14+
{{ with resources.Get "icons/logo.svg" -}}
15+
{{ ( . | minify).Content | safeHTML -}}
16+
{{ end -}}
17+
{{ end -}}
18+
</span>
19+
{{- /**/ -}}
20+
<span class="navbar-brand__name">
21+
<!-- Place the site title on every page header, except the home page -->
22+
{{ if not .IsHome }}
23+
{{ .Site.Title }}
24+
{{ end }}
25+
26+
</span>
27+
{{- /**/ -}}
28+
</a>
29+
<div class="td-navbar-nav-scroll ms-md-auto" id="main_navbar">
30+
<ul class="navbar-nav">
31+
{{ $p := . -}}
32+
{{ range .Site.Menus.main -}}
33+
<li class="nav-item">
34+
{{ $active := or ($p.IsMenuCurrent "main" .) ($p.HasMenuCurrent "main" .) -}}
35+
{{ $href := "" -}}
36+
{{ with .Page -}}
37+
{{ $active = or $active ( $.IsDescendant .) -}}
38+
{{ $href = .RelPermalink -}}
39+
{{ else -}}
40+
{{ $href = .URL | relLangURL -}}
41+
{{ end -}}
42+
{{ $isExternal := ne $baseURL.Host (urls.Parse .URL).Host -}}
43+
<a {{/**/ -}}
44+
class="nav-link {{- if $active }} active {{- end }}" {{/**/ -}}
45+
href="{{ $href }}"
46+
{{- if $isExternal }} target="_blank" rel="noopener" {{- end -}}
47+
>
48+
{{- .Pre -}}
49+
<span>{{ .Name }}</span>
50+
{{- .Post -}}
51+
</a>
52+
</li>
53+
{{ end -}}
54+
{{ if .Site.Params.versions -}}
55+
<li class="nav-item dropdown d-none d-lg-block">
56+
{{ partial "navbar-version-selector.html" . -}}
57+
</li>
58+
{{ end -}}
59+
{{ if (gt (len .Site.Home.Translations) 0) -}}
60+
<li class="nav-item dropdown d-none d-lg-block">
61+
{{ partial "navbar-lang-selector.html" . -}}
62+
</li>
63+
{{ end -}}
64+
{{ if .Site.Params.ui.showLightDarkModeMenu -}}
65+
<li class="td-light-dark-menu nav-item dropdown">
66+
{{ partial "theme-toggler" . }}
67+
</li>
68+
{{ end -}}
69+
</ul>
70+
</div>
71+
<div class="d-none d-lg-block">
72+
{{ partial "search-input.html" . }}
73+
</div>
74+
</div>
75+
</nav>

0 commit comments

Comments
 (0)