@@ -271,6 +271,8 @@ const artifactsIndexTemplate = `{{ define "release-artifacts-index" }}
271271 .release-title-expand { background-color: #2453ff; color: white; border-radius: 5px; border: none; }
272272 .release-title-expand:hover, .expand-active{ background-color: white; color: #2453ff; border: 1px solid #2453ff; }
273273 .hidden { display: none; overflow: hidden; }
274+ .anchor { opacity:0; margin-right:8px; text-decoration:none; color:dimgray; }
275+ .release-title:hover .anchor, h2:hover .anchor, .anchor:focus { opacity:1; }
274276 </style>
275277 </head>
276278 <body>
@@ -279,11 +281,14 @@ const artifactsIndexTemplate = `{{ define "release-artifacts-index" }}
279281 <h1>PRIME ARTIFACTS</h1>
280282 </header>
281283 <main>
282- <div class="project-rancher project">
283- <h2>rancher</h2>
284+ <div class="project-rancher project">
285+ <h2 id="rancher">
286+ <a class="anchor" href="#rancher">#</a>rancher
287+ </h2>
284288 {{ range $i, $version := .Rancher.Versions }}
285- <div class="release-{{ $version }} release">
289+ <div id="rancher-{{ $version }}" class="release-{{ $version }} release">
286290 <div class="release-title">
291+ <a class="anchor" href="#rancher-{{ $version }}">#</a>
287292 <b class="release-title-tag">{{ $version }}</b>
288293 <button onclick="expand('{{ $version }}')" id="release-{{ $version }}-expand" class="release-title-expand">expand</button>
289294 </div>
@@ -298,10 +303,13 @@ const artifactsIndexTemplate = `{{ define "release-artifacts-index" }}
298303 {{ end }}
299304 </div>
300305 <div class="project-rke2 project">
301- <h2>rke2</h2>
306+ <h2 id="rke2">
307+ <a class="anchor" href="#rke2">#</a>rke2
308+ </h2>
302309 {{ range $i, $version := .RKE2.Versions }}
303- <div class="release-{{ $version }} release">
310+ <div id="rke2-{{ $version }}" class="release-{{ $version }} release">
304311 <div class="release-title">
312+ <a class="anchor" href="#rke2-{{ $version }}">#</a>
305313 <b class="release-title-tag">{{ $version }}</b>
306314 <button onclick="expand('{{ $version }}')" id="release-{{ $version }}-expand" class="release-title-expand">expand</button>
307315 </div>
0 commit comments