From c7133cbfcd6c45ac9d71a983133981f29f2b1f5c Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 29 May 2022 12:30:14 +0200 Subject: Move software list from partials to shortcodes --- content/_index.md | 5 +++++ themes/bare/layouts/index.html | 2 -- themes/bare/layouts/partials/software_list.html | 5 ----- themes/bare/layouts/shortcodes/softwarelist.md | 3 +++ 4 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 themes/bare/layouts/partials/software_list.html create mode 100644 themes/bare/layouts/shortcodes/softwarelist.md diff --git a/content/_index.md b/content/_index.md index 1ae6a5c..78d77fc 100644 --- a/content/_index.md +++ b/content/_index.md @@ -12,3 +12,8 @@ ## Software Use the Git link for a Git clone or to view the project in your browser. + +{{% softwarelist %}} + +Have a look at my [cgit Server](https://cgit.xengineering.eu/) for a full list +of my repositories. This includes archived repositories. diff --git a/themes/bare/layouts/index.html b/themes/bare/layouts/index.html index e454f71..6d11e7a 100644 --- a/themes/bare/layouts/index.html +++ b/themes/bare/layouts/index.html @@ -31,8 +31,6 @@ {{.Content}} - {{ partial "software_list.html" . }} -

diff --git a/themes/bare/layouts/partials/software_list.html b/themes/bare/layouts/partials/software_list.html deleted file mode 100644 index 76e92c7..0000000 --- a/themes/bare/layouts/partials/software_list.html +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/themes/bare/layouts/shortcodes/softwarelist.md b/themes/bare/layouts/shortcodes/softwarelist.md new file mode 100644 index 0000000..e2d4e24 --- /dev/null +++ b/themes/bare/layouts/shortcodes/softwarelist.md @@ -0,0 +1,3 @@ +{{ range $.Site.Data.repositories }} +- {{ .name }} - {{ .description }} [ [Git](https://cgit.xengineering.eu/{{ .name }}) | [Atom](https://cgit.xengineering.eu/{{ .name }}/atom) ] +{{ end }} -- cgit v1.2.3-70-g09d2