diff options
author | xengineering <me@xengineering.eu> | 2022-05-29 12:30:14 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-05-29 12:30:14 +0200 |
commit | c7133cbfcd6c45ac9d71a983133981f29f2b1f5c (patch) | |
tree | f54259ce8c7750ee78b3990d70b9f481f49cd4e8 | |
parent | b51f3f435a0f9953be2240b8f342ff498967f8da (diff) | |
download | website-c7133cbfcd6c45ac9d71a983133981f29f2b1f5c.tar website-c7133cbfcd6c45ac9d71a983133981f29f2b1f5c.tar.zst website-c7133cbfcd6c45ac9d71a983133981f29f2b1f5c.zip |
Move software list from partials to shortcodes
-rw-r--r-- | content/_index.md | 5 | ||||
-rw-r--r-- | themes/bare/layouts/index.html | 2 | ||||
-rw-r--r-- | themes/bare/layouts/partials/software_list.html | 5 | ||||
-rw-r--r-- | themes/bare/layouts/shortcodes/softwarelist.md | 3 |
4 files changed, 8 insertions, 7 deletions
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" . }} - <br> <hr> <footer>License: <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a></footer> 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 @@ -<ul> -{{ range $.Site.Data.repositories }} - <li>{{ .name }} - {{ .description }} [ <a href="https://cgit.xengineering.eu/{{ .name }}">Git</a> | <a href="https://cgit.xengineering.eu/{{ .name }}/atom">Atom</a> ]</li> -{{ end }} -</ul> 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 }} |