Skip to content

Latest commit

 

History

History
66 lines (57 loc) · 2.06 KB

index.md

File metadata and controls

66 lines (57 loc) · 2.06 KB
layout index
title Tutorials
<div class="box">
  <h2>New to Scala?</h2>
  <h3>Tutorials geared for people coming...</h3>
  <ul>
	<li><a href="{{ site.baseurl }}/tutorials/scala-for-java-programmers.html">...from Java</a> <span class="label success">Available</span></li>
	<li><a href="#">...from Ruby</a> <span class="label important">In Progress</span></li>
	<li><a href="#">...from Python</a> <span class="label important">In Progress</span></li>		
  </ul>
</div>

<div class="page-header-index">
    <h1>FAQ <br /></h1><p class="under">Frequently Asked Questions (and their answers!)</p>
</div>
{% for pg in site.pages %}
  {% if pg.partof == "FAQ" and pg.outof %}
   {% assign totalPagesFAQ = pg.outof %}  
  {% endif %}
{% endfor %}

{% if totalPagesFAQ %}
  <ul>
  {% for i in (1..totalPagesFAQ) %}
    {% for pg in site.pages %}
      {% if pg.partof == "FAQ" and pg.num and pg.num == i %}
        <li class="FAQ"><a href="{{ pg.url }}">{{ pg.title }}</a></li> 
      {% endif %}
    {% endfor %}
  {% endfor %}
  </ul>
{% else %} **ERROR**. Couldn't find the total number of pages in this set of tutorial articles. Have you declared the `outof` tag in your YAML front matter?
{% endif %}	

A Tour of Scala

Bite-size pieces of the essentials...

{% for pg in site.pages %} {% if pg.tutorial == "scala-tour" and pg.outof %} {% assign totalPagesTour = pg.outof %} {% endif %} {% endfor %}

{% if totalPagesTour %}

    {% for i in (1..totalPagesTour) %} {% for pg in site.pages %} {% if pg.tutorial == "scala-tour" and pg.num and pg.num == i %}
  • {{ pg.title }}
  • {% endif %} {% endfor %} {% endfor %}
{% else %} ERROR. Couldn't find the total number of pages in this set of tutorial articles. Have you declared the outof tag in your YAML front matter? {% endif %}