1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-18 07:47:06 +01:00

Adding the initial documentation

This commit is contained in:
Guido Cossu
2016-11-04 16:07:25 +00:00
parent d63110d26f
commit b1bd88cfba
47 changed files with 460 additions and 147 deletions

View File

@ -17,6 +17,6 @@
<!-- For all browsers -->
<link rel="stylesheet" href="{{ base_path }}/assets/css/main.css">
<link rel="stylesheet" href="{{ base_path }}/assets/icons/octicons/octicons.min.css">
<link rel="stylesheet" href="{{ base_path }}/assets/icons/octicons/font/octicons.min.css">
<meta http-equiv="cleartype" content="on">

View File

@ -1,5 +1,6 @@
<!-- start custom head snippets -->
<!-- insert favicons. use http://realfavicongenerator.net/ -->
<link rel='shortcut icon' type='image/x-icon' href='{{ site.baseurl }}/images/favicon-32x32.png' />
<!-- end custom head snippets -->

10
_includes/image Normal file
View File

@ -0,0 +1,10 @@
{% capture imagePath %}/{{ include.name }}{% endcapture %}
{% if include.caption %}
<figure>
<img src="{{ site.baseurl }}/images{{ imagePath }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" style="display: block; margin-left: auto; margin-right: auto" {% endif %}/>
<figcaption>{{ include.caption }}</figcaption>
</figure>
{% else %}
<img src="{{ site.baseurl }}/images{{ imagePath }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" style="display: block; margin-left: auto; margin-right: auto" {% endif %}/>
{% endif %}

View File

@ -13,8 +13,9 @@
{% else %}
{% assign domain = base_path %}
{% endif %}
<li class="masthead__menu-item"><a href="{{ domain }}{{ link.url }}">{{ link.title }}</a></li>
<li class="masthead__menu-item"><a href="{{ domain }}{{ link.url }}"><span class="{{ link.icon }}"></span> {{ link.title }}</a></li>
{% endfor %}
<li class="masthead__menu-item"><a href="https://github.com/paboyle/Grid" title="Github repository page"><span class="mega-octicon octicon-mark-github vertical-middle"></span></a></li>
</ul>
<ul class="hidden-links hidden"></ul>
</nav>

View File

@ -36,7 +36,13 @@
{% assign active = "" %}
{% endif %}
<li><a href="{{ domain }}{{ child.url }}" class="{{ active }}">{{ child.title }}</a></li>
{% if child.disable == "yes" %}
{% assign disable = "nav__noclick" %}
{% else %}
{% assign disable = "" %}
{% endif %}
<li><a href="{{ domain }}{{ child.url }}" class="{{ disable }} {{ active }}">{{ child.title }}</a></li>
{% endfor %}
</ul>
{% endif %}