forked from elixir-lang/elixir-lang.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetting-started.html
More file actions
73 lines (63 loc) · 2.48 KB
/
Copy pathgetting-started.html
File metadata and controls
73 lines (63 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{% include top.html %}
<div id="sidebar-primary" class="sidebar">
{% include search.html %}
<a class="spec" href="/docs.html" style="display: block;margin-bottom: 20px">API Documentation</a>
{% assign guides = site.data.getting-started %}
{% for guide in site.data.getting-started %}
<div class="widget">
<h3 class="widget-title">{{guide.title}}</h3>
<ol>
{% for node in guide.pages %}
{% assign page_url = guide.dir | append: node.slug | append: '.html' %}
{% if page.url == page_url %}
<li><span title="{{node.title | escape}}">{{node.title}}</span></li>
{% else %}
<li><a class="spec" href="{{page_url}}" title="{{node.title | escape}}">{{node.title}}</a></li>
{% endif %}
{% endfor %}
</ol>
</div>
{% endfor %}
</div>
<div id="content">
<article>
<div class="getting-started-title">
<small>{{ page.category | default: "Getting Started" }}</small>
<h1>{{ page.title }}</h1>
</div>
{% include toc.html %}
{{ content }}
</article><!-- .hfeed -->
{% assign url_parts = page.url | split: '/' %}
{% assign url_parts_size = url_parts | size %}
{% assign file_name = url_parts | last %}
{% assign guide_base_url = page.url | replace: file_name %}
{% assign page_slug = file_name | replace: '.html' %}
{% assign guides = site.data.getting-started %}
{% for guide in site.data.getting-started %}
{% if guide.dir == guide_base_url %}
{% for node in guide.pages %}
{% if node.slug == page_slug %}
<div class="pagination loop-pagination">
{% unless forloop.first %}
<a href="{{guide.dir}}{{prev.slug}}.html" class="previous page-numbers spec" title="{{prev.title | escape}}">← Previous</a>
{% endunless %}
<a class="page-numbers spec" href="#container">Top</a>
{% unless forloop.last %}
{% assign next = guide.pages[forloop.index] %}
<a href="{{guide.dir}}{{next.slug}}.html" class="previous page-numbers spec" title="{{next.title | escape}}">Next →</a>
{% endunless %}
</div>
{% endif %}
{% assign prev = node %}
{% endfor %}
{% endif %}
{% endfor %}
<div id="edit-on-github">
<span>Is something wrong?</span>
<a href="{{ site.github.repository_url }}/edit/main/{{ page.path }}">
Edit this page on GitHub.
</a>
</div>
</div><!-- #content -->
{% include bottom.html %}