Skip to content

Commit eb751b3

Browse files
committed
chaning layout
1 parent f41a865 commit eb751b3

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

_layouts/tutorials.html

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ <h1>{{ page.title }}</h1>
3333
</table>
3434
</div>
3535
<div id="markdown-content-container">
36-
<h6 id="at-one-glance"><strong>At one glance</strong></h6>
36+
<!--
37+
<h6 id="at-one-glance"><strong>At one glance</strong></h6>
3738
<h6 id="solver-elasticity">Solver: <code style="text-transform: uppercase;" class="language-plaintext highlighter-rouge">{{ page.solver }}</code></h6>
3839
<h6 id="requires-su2_cfd">Uses: <code style="text-transform: uppercase;" class="language-plaintext highlighter-rouge">{{ page.requires }}</code></h6>
3940
<h6 id="follows-linear-elasticity">Prerequisites:
@@ -58,8 +59,45 @@ <h6 id="complexity-basic">
5859
{% elsif page.complexity == "advanced" %}
5960
<span style="color: orange;"><strong>Advanced</strong></span>
6061
{% endif %}
61-
</h6>
62+
</h6> -->
63+
<table style="width:50%">
64+
<tbody>
65+
<tr>
66+
<td> <h6 id="solver-elasticity">Solver:</h6></td>
67+
<td> <h6><code style="text-transform: uppercase;" class="language-plaintext highlighter-rouge">{{ page.solver }}</code></h6></td>
68+
</tr>
69+
<tr>
70+
<td> <h6 id="solver-elasticity">Uses:</h6></td>
71+
<td> <h6><code style="text-transform: uppercase;" class="language-plaintext highlighter-rouge">{{ page.requires }}</code></h6></td>
72+
</tr>
73+
<tr>
74+
<td> <h6 id="solver-elasticity">Prerequisites:</h6></td>
75+
<td> <h6> {% if page.follows %}
76+
{% for section in site.data.tutorials %}
77+
{% for item in section.tutorials %}
78+
{% if item == page.follows %}
79+
{% assign item_url = item | prepend:"/tutorials/" | append:"/" %}
80+
{% assign p = site.tutorials | where:"url", item_url | first %}
81+
<a href="{{p.permalink}}"><strong>{{p.title}}</strong></a>
82+
{% endif %}
83+
{% endfor %}
84+
{% endfor %}
85+
{% else %}
86+
<strong>None</strong>
87+
{% endif %} </h6> </td>
88+
</tr>
89+
<tr>
90+
<td> <h6 id="solver-elasticity">Complexity:</h6></td>
91+
<td> <h6>{% if page.complexity == "basic" %}
92+
<span style="color: green;"><strong>Basic</strong></span>
93+
{% elsif page.complexity == "advanced" %}
94+
<span style="color: orange;"><strong>Advanced</strong></span>
95+
{% endif %}</h6></td>
96+
</tr>
97+
</tbody>
98+
</table>
6299
</div>
100+
63101
<div id="markdown-content-container">{{ content }}</div>
64102
<hr>
65103
{% unless page.disable_comments %}

0 commit comments

Comments
 (0)