{%- macro projectlist() %}
<ul>
  {%- for project in theme_projects %}
  <li>{%- if project.name != theme_project_name %}<a href="{{project.url}}">{%- endif %}{{ project.name }}{%- if project.name != theme_project_name %}</a>{% endif %} 
  {% if 'subprojects' in project -%}
  <small>(
  {%- for subproject in project.subprojects -%} 
  {%- if subproject.name != theme_project_name -%}<a href="{{subproject.url}}">{%- endif -%}{{ subproject.name }}{%- if subproject.name != theme_project_name -%}</a>{%- endif -%}
  {%- endfor -%}
  )</small>
  {%- endif -%}
  </li>
  {%- endfor %}
</ul>
{%- endmacro %}

{%- macro follow_me() %}
<p><iframe src="https://ghbtns.com/github-btn.html?user=tony&type=follow&count=false" frameborder="0" scrolling="0" width="170px" height="20px"></iframe></p>
{% endmacro %}

{%- macro lets_do_biz() %}
{% endmacro %}

{%- if theme_show_pro_services == true -%}
{%- block pro_services_header %}
{%- endblock -%}

{%- block pro_services_content -%}
{{ lets_do_biz() }}
{%- endblock -%}
{%- endif -%}

{%- block projects_header %}<h3>Other Projects</h3>{% endblock %}

{%- block projects_follow_me %}{{follow_me()}}{%- endblock %}

{%- block more_projects %}<p>More open source projects from <a href="https://www.git-pull.com" rel="noopener noreferrer" target="_blank">Tony Narlock</a>:</p>{% endblock %}

{%- block projects %}
{{ projectlist() }}
{% endblock %}

{%- block more_content %}{% endblock %}
