From d0b18bf94debf794ef73a7a09a8541b5f614cb07 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 27 Apr 2020 15:57:14 +0200 Subject: [PATCH] include setup-instructions on dist index and repo pages. --- _layouts/dist.html | 9 ++++----- _layouts/repo.html | 4 +++- index.md | 20 +------------------- 3 files changed, 8 insertions(+), 25 deletions(-) diff --git a/_layouts/dist.html b/_layouts/dist.html index 61206cc..cc9ccf9 100644 --- a/_layouts/dist.html +++ b/_layouts/dist.html @@ -9,15 +9,14 @@ layout: default {% assign domain = repo_info.domain | default: site.apt.domain %} {% assign list = site.packages | where: 'Repo', repo | where: 'Archive', dist %} -

- NOTE: If this is your first time here, you need to do some configurations before you can use this repository. - Please read the instructions. -

-

{{ repo }} - {{ dist }}

{{ repo_info.description }}

+{% include setup-instructions.html repo=repo distribution=dist collapse=true %} + +

Packages

+ {% for component in site.apt.components %}

{{ component }}

diff --git a/_layouts/repo.html b/_layouts/repo.html index 7bca7bc..0a22212 100644 --- a/_layouts/repo.html +++ b/_layouts/repo.html @@ -7,7 +7,9 @@ layout: default

{{ page.title }} repository

-

Choose your ubuntu version below

+{% include setup-instructions.html repo=id %} + +

Choose your ubuntu version below