mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
Render functions in proper order despite the YAML order
This commit is contained in:
parent
9bac306503
commit
67b27cc0d9
@ -1,4 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
# this is the rendering order of functions
|
||||||
|
|
||||||
execute-interactive:
|
execute-interactive:
|
||||||
label: Interactive execute
|
label: Interactive execute
|
||||||
description: |
|
description: |
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
<ul class="function-list">
|
<ul class="function-list">
|
||||||
{% for function in include.bin.functions %}
|
{% for function in site.data.functions %}
|
||||||
{% assign type = function[0] %}
|
{% assign function_name = function[0] %}
|
||||||
<li><a href="{{ include.bin.url }}#{{ type }}">{{ site.data.functions[type].label }}</a></li>
|
{% if include.bin.functions[function_name] %}
|
||||||
|
<li><a href="{{ include.bin.url }}#{{ function_name }}">{{ site.data.functions[function_name].label }}</a></li>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -10,10 +10,10 @@ layout: common
|
|||||||
|
|
||||||
{{ page.description | markdownify }}
|
{{ page.description | markdownify }}
|
||||||
|
|
||||||
{% for function in page.functions %}
|
{% for function in site.data.functions %}
|
||||||
|
|
||||||
{% assign function_name = function[0] %}
|
{% assign function_name = function[0] %}
|
||||||
{% assign examples = function[1] %}
|
{% assign examples = page.functions[function_name] %}
|
||||||
|
{% if examples %}
|
||||||
|
|
||||||
<h2 id="{{ function_name }}" class="function-name">
|
<h2 id="{{ function_name }}" class="function-name">
|
||||||
{{- site.data.functions[function_name].label -}}
|
{{- site.data.functions[function_name].label -}}
|
||||||
@ -46,4 +46,5 @@ sudo setcap cap_setuid+ep {{ bin_name }}
|
|||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user