Rename page and optimize template generation

This commit is contained in:
L3D 2023-03-11 23:06:05 +01:00
parent 3f2e6c156d
commit 144c5069f6
Signed by: l3d
GPG key ID: CD08445BFF4313D1
4 changed files with 9 additions and 5 deletions

View file

@ -1,3 +1,5 @@
_model: frontpage
---
title: Awesome Ansible Roles
---
body:

View file

@ -1,6 +1,8 @@
[model]
name = Page
name = Frontpage
label = {{ this.title }}
protected = true
hidden = true
[fields.title]
label = Page Title

@ -1 +1 @@
Subproject commit e9e82b651263bd3501af75ac4638a5ae36761173
Subproject commit 1fd71eff13c3a01dccc5dc49c26857e84686a14c

View file

@ -19,13 +19,13 @@
<tr>
<th><a href="{{ blk.gitrepo }}" target="_blank">{{ blk.name }}</a></th>
<td>
<a href="{{ blk.galaxy_url }}"><img src="{{ blk.galaxy_name | galaxy }}" /></a>
<a href="{{ blk.galaxy_url }}"><img src="{{ {'name': blk.galaxy_name, 'state': blk.galaxy_name, 'label': 'ansible-galaxy'} | svg }}" /></a>
</td>
<td>
<img src="{{ {'name': blk.galaxy_name, 'state': blk.maintainance} | maintainance }}" />
<img src="{{ {'name': blk.galaxy_name, 'state': blk.maintainance, 'label': 'maintainance'} | svg }}" />
</td>
<td>
<img src="{{ {'name': blk.galaxy_name, 'state': blk.license} | license }}" />
<img src="{{ {'name': blk.galaxy_name, 'state': blk.license, 'label': 'license'} | svg }}" />
</td>
</tr>
{% endfor %}