Make PHP pagelist for ripple.com

This commit is contained in:
mDuo13
2017-10-02 16:36:03 -07:00
parent 457eb9c324
commit d90151204e
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
<?php
$devPortalPages = array(
{% for page_filename, page_url in target.link_subs.items() %}
{% set wp_page_id = page_url[:-1]|replace("https://ripple.com/build/", "") %}
{% if "/" not in wp_page_id and "-tool" not in wp_page_id %}
'{{wp_page_id}}' => '{{page_filename}}',
{% endif %}
{% endfor %}
);
?>