Home page: homePosts setting, 15 sample news posts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ
This commit is contained in:
2026-10-11 20:49:57 +02:00
co-authored by Claude Opus 5.5
parent 8faf06d783
commit e5eb4d0998
19 changed files with 189 additions and 6 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ Content pages are Markdown with YAML front matter and can be corrected by hand,
creates `content/post/<today>-my-title.md` (any `.md` file in `content/post/` is a post). The
date comes from the file name unless `date:` is set; `author:` is optional; the name
links to `/author/<name>/`, which lists all posts by that author. For a banner, put an
image under `static/media/` and set `banner: /media/....jpg`. Write the text in Markdown and
remove `draft: true` to publish. The five most recent posts appear on the home page with their
image under `static/media/` and set `banner: /media/....jpg` (`image:` works too). Write the text in Markdown and
remove `draft: true` to publish. The most recent posts (`homePosts` in `hugo.toml`, 5 by default) appear on the home page with their
banner, date, author and summary (`summary:` in the front matter, or the text before
`<!--more-->`, or the first lines); all posts are listed under News. Posts are never touched by
`make content`.
@@ -0,0 +1,12 @@
---
title: How the site is being rebuilt
date: '2026-09-11'
author: olipix
banner: /media/museum/photos/commodore_64_system_s2.jpg
summary: A few words on where these pages come from.
sample: true
---
The pages you are reading come from the copies of old-computers.com kept by the Internet Archive. Only copies made before the site was damaged are used, and each page links to the capture it was recovered from, at the bottom.
The store is not part of the rebuild. Everything else is being restored section by section: museum, companies, software, history, magazine and fun.
@@ -0,0 +1,12 @@
---
title: Stupid scans are back
date: '2026-09-13'
author: yann64
banner: /media/museum/adverts/commodore-64_uk-advert_2.jpg
summary: The fun section and its collection of unlikely advertising pictures is being restored.
sample: true
---
Old computer adverts were not always a model of good taste. The [fun section](/fun/) collected the strangest of them under the name stupid scans, with comments to match. More than forty of them are back.
The section also has the e-cards. The quiz, sadly, could not be recovered.
@@ -0,0 +1,12 @@
---
title: When Commodore introduced the PET
date: '2026-09-15'
author: olipix
banner: /media/history/images/commodore_pet_system_3.jpg
summary: Five years before the C64, Commodore's first computer came in one piece, screen and tape drive included.
sample: true
---
The timeline entry [Commodore introduces the PET](/history/commodore-introduces-the-pet/) is back. With the Apple II and the TRS-80, the PET was one of the three ready-to-use machines that reached the public in 1977.
The history section also has a comparison of the [PET and the Sharp MZ-80K](/history/commodore-pet-vs-sharp-mz-80k/), two machines built on a very similar idea.
@@ -0,0 +1,12 @@
---
title: The mother of all demos
date: '2026-09-17'
author: yann64
banner: /media/history/images/timeline_1268_motherdemo_s1.jpg
summary: A mouse, windows and hypertext, shown to an audience in 1968.
sample: true
---
In December 1968 Douglas Engelbart presented the mouse, on-screen windows, hypertext and shared editing in a single session. The history entry on [the mother of all demos](/history/the-mother-of-all-demos/) has been recovered.
For what came next, see the entry on the [Xerox Alto](/history/xerox-alto/), the research machine that turned these ideas into a desktop.
@@ -0,0 +1,12 @@
---
title: The 8086, the chip behind the PC
date: '2026-09-19'
author: olipix
banner: /media/history/images/timeline_0478_intel8086_2.jpg
summary: The timeline entry on Intel's 16-bit processor is back online.
sample: true
---
In 1978 Intel introduced the 8086. Nobody could know then that its architecture would still be around decades later. The history section has an entry on [the launch of the 8086](/history/intel-introduces-the-8086-microprocessor/), and another on [the 8088](/history/the-8088-first-intel-s-really-successful-cpu/) that IBM chose for its PC.
Browse the [history section](/history/) for the rest of the timeline.
@@ -0,0 +1,12 @@
---
title: Kaypro, loyal to its customers
date: '2026-09-21'
author: yann64
banner: /media/museum/photos/commodore_c64_hr_keyboard.jpg
summary: The story of a company that stayed with CP/M a little too long.
sample: true
---
The page of the [Kaypro PC & 286i](/museum/kaypro-pc-286i/) tells how the maker of the famous portable CP/M machines finally moved to PC compatibles, later than most of its competitors.
The page also keeps fourteen comments from former owners. Reading them is a good reminder of what this site was for. (The banner is a stand-in picture: this is a test post.)
@@ -0,0 +1,12 @@
---
title: Oric disks on a PC, and back
date: '2026-09-23'
author: olipix
banner: /media/magazine/articles/12/inside_2.jpg
summary: 'Another recovered how-to: moving files between an Oric and a PC.'
sample: true
---
Getting data off thirty-year-old floppies is a recurring problem for collectors. The article [Oric 2 PC / PC 2 Oric](/magazine/oric-2-pc-pc-2-oric/) describes one way to do it, with the drive, the power supply and the software needed.
It is one of seventeen magazine articles available again, including event reports and interviews.
@@ -0,0 +1,12 @@
---
title: A hard disk for your 8-bit Atari
date: '2026-09-25'
author: yann64
banner: /media/magazine/articles/13/sio2ide_1.jpg
summary: A magazine article explains how to connect an IDE drive to an Atari 8-bit computer.
sample: true
---
The magazine section is being restored along with the museum. One of the recovered articles is a step-by-step guide to [SIO2IDE](/magazine/sio2ide-or-how-to-install-a-hard-disk-in-your-8-bit-atari/), an interface that lets an 8-bit Atari use an IDE hard disk.
The article keeps its original photos, so you can follow the build from the bare board to the finished installation.
@@ -0,0 +1,12 @@
---
title: Calling at 1200 baud
date: '2026-09-27'
author: olipix
banner: /media/museum/hardware/commodore_modem1200_1.jpg
summary: Long before broadband, going online meant a modem, a phone line and a lot of patience.
sample: true
---
The Commodore 1200 baud modem is one of the peripherals pictured in the [C64 hardware gallery](/museum/commodore-c64/hardware/). With it, a home computer could dial into a bulletin board system and exchange messages and files.
The history section has an entry on the bulletin boards themselves: see [BBS, the World Wide Web father](/history/bbs-the-world-wide-web-father/).
@@ -0,0 +1,12 @@
---
title: 'More sound for the C64: the Sound Expander'
date: '2026-09-29'
author: yann64
banner: /media/museum/hardware/commodore_sound-expander_hr_left_1.jpg
summary: The hardware gallery shows how far owners went to get more music out of their machine.
sample: true
---
The SID was already a remarkable chip, but that did not stop anyone from adding more. The [hardware tab](/museum/commodore-c64/hardware/) of the Commodore 64 shows the Sound Expander cartridge among more than forty peripherals and extensions.
Samplers, speech synthesisers, drum machines: the list says a lot about what people wanted to do with a home computer in the mid-eighties.
@@ -0,0 +1,12 @@
---
title: 'The first home console: the Magnavox Odyssey'
date: '2026-10-01'
author: olipix
banner: /media/museum/photos/magnavox_odyssey_3.jpg
summary: Before cartridges and joysticks, there was a white and brown box with plastic screen overlays.
sample: true
---
The [Magnavox Odyssey](/museum/magnavox-odyssey/) of 1972 is generally considered the first home video game console. Its museum page is back, with photos of the console and its unusual controllers.
Its successor, the [Odyssey 100](/museum/magnavox-odyssey-100/), is online too. Both belong to the consoles section, which will grow as more pages are recovered.
@@ -0,0 +1,12 @@
---
title: The Apple II returns to the museum
date: '2026-10-03'
author: yann64
banner: /media/museum/hardware/apple_ii_softcard_s1.jpg
summary: One of the three machines that opened the home computer market in 1977 has its page again.
sample: true
---
The [Apple II](/museum/apple-ii/) page has been recovered, together with its hardware gallery. The picture above shows one of its best-known expansion cards, which let the machine run CP/M software.
The timeline also has entries on the machine's announcement and first deliveries, and on the Disk II drive that gave it a second life.
@@ -0,0 +1,12 @@
---
title: Space Invaders, the game that emptied pockets
date: '2026-10-05'
author: olipix
banner: /media/history/images/timeline_0278_spaceinv_1.jpg
summary: The history section tells how a 1978 arcade cabinet changed the video game business.
sample: true
---
Our timeline entry on [Space Invaders](/history/space-invaders/) is back. Designed by Toshihiro Nishikado and released by Taito in 1978, the game turned arcades into a mass phenomenon.
It is one of more than sixty history entries recovered so far, covering hardware, software, companies and people of the early microcomputer years.
@@ -0,0 +1,12 @@
---
title: 'Inside the C64: a look at the mainboard'
date: '2026-10-07'
author: yann64
banner: /media/museum/photos/commodore64_mainboard_s2.jpg
summary: The photo gallery of the Commodore 64 includes views of the board that made it all happen.
sample: true
---
Among the recovered pictures of the [Commodore 64](/museum/commodore-c64/photos/) are several shots of its mainboard, where the 6510 processor sits next to the VIC-II video chip and the SID.
If you ever opened one to change a fuse or to reseat a chip, you will recognise it at once. If you never did, the photos are a safer way to have a look.
@@ -0,0 +1,12 @@
---
title: The Commodore 64 pages are online
date: '2026-10-09'
author: olipix
banner: /media/museum/photos/commodore_c64_hr_front.jpg
summary: The best-selling home computer of the 1980s is the first machine fully restored in the museum.
sample: true
---
The [Commodore 64](/museum/commodore-c64/) is the first machine to come back with all of its pages: photos, adverts, hardware, connectors, emulators, links, documents, videos and the comments left by visitors over the years.
Launched in 1982, the C64 owed much of its reputation to its SID sound chip and to a games library that few machines of its time could match. Its page is also a good test for the rebuild, because it is one of the largest of the whole site.
+2
View File
@@ -13,6 +13,8 @@ capitalizeListTitles = false
date = ["date", ":filename", ":default"]
[params]
# number of news posts summarised on the home page (the News page lists them all)
homePosts = 5
description = "The Old-Computers.com museum of computers, consoles and pongs, rebuilt from the Wayback Machine archive."
[taxonomies]
+2 -2
View File
@@ -1,6 +1,6 @@
{{/* dict "page" <post> "width" <px> -> URL of the post banner, resized when it is a bundle image */}}
{{/* dict "page" <post> "width" <px> -> URL of the post banner (`banner:`, or `image:`), resized when it is a bundle image */}}
{{- $url := "" -}}
{{- with .page.Params.banner -}}
{{- with (.page.Params.banner | default .page.Params.image) -}}
{{- with $.page.Resources.GetMatch . -}}
{{- if and (eq .MediaType.MainType "image") (ne .MediaType.SubType "svg") -}}
{{- $url = (.Resize (printf "%dx" $.width)).RelPermalink -}}
+3 -2
View File
@@ -3,12 +3,13 @@
<div class="content">{{ .Content }}</div>
{{ with site.GetPage "/post" }}
{{ $posts := .RegularPages.ByDate.Reverse }}
{{ $max := site.Params.homePosts | default 5 }}
{{ if $posts }}
<h2>{{ .Title }}</h2>
<div class="posts">
{{ range first 5 $posts }}{{ partial "post-summary.html" . }}{{ end }}
{{ range first $max $posts }}{{ partial "post-summary.html" . }}{{ end }}
</div>
{{ if gt (len $posts) 5 }}<p><a href="{{ .RelPermalink }}">All posts →</a></p>{{ end }}
{{ if gt (len $posts) $max }}<p><a href="{{ .RelPermalink }}">All posts →</a></p>{{ end }}
{{ end }}
{{ end }}
<h2>Sections</h2>