forked from treffynnon/sqlstyle.guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove jquery, add contributors mention and lang dropdown
- Loading branch information
Simon Holywell
authored and
Simon Holywell
committed
Feb 27, 2018
1 parent
ad249d1
commit faf6137
Showing
25 changed files
with
250 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ Gemfile.lock | |
|
||
_site | ||
_gh_pages | ||
.jekyll-metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<nav id="page-nav"> | ||
<a href="#" id="to-top" class="toplink">↑</a> | ||
</nav> | ||
<div id="translation-bar"> | ||
<div class="wrap"> | ||
<select class="language-drop" id="language-drop"> | ||
{% include layout_partials/languages.html dropdown=true %} | ||
</select> | ||
<div class="language-ico">{% include static/language.svg %}</div> | ||
</div> | ||
</div> | ||
<header class="top"> | ||
<div class="wrap"> | ||
<h1 itemprop="name">{% if page.lang_title %}{{ page.lang_title }} · {% endif %}SQL Style Guide</h1> | ||
<p class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">by | ||
<a href="https://www.simonholywell.com/?utm_source=sqlstyle.guide-{{ site.domain }}&utm_medium=link&utm_campaign=header" itemprop="url"><span itemprop="name">Simon Holywell</span></a> · | ||
<a href="https://twitter.com/treffynnon">@Treffynnon</a> | ||
</p> | ||
<p class="twitter"> | ||
<a href="https://twitter.com/share" class="twitter-share-button" | ||
data-url="{{ site.url }}" data-text="SQL style guide by @treffynnon: {{ site.description }}" | ||
data-size="large" data-dnt="true">Tweet</a> | ||
</p> | ||
{% if page.contributors -%} | ||
<p class="translator">Translated by: | ||
{% for user in page.contributors -%} | ||
<a href="https://github.com/{{ user.user }}" title="{{ user.user }} - {{ user.type }}" rel="nofollow"> | ||
{{- user.user -}} | ||
</a> | ||
{%- if forloop.last != true %} · {% endif -%} | ||
{%- endfor %} | ||
</p> | ||
{%- endif %} | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<option value="{{ iso }}" | ||
{%- if page.lang == iso %} selected="selected"{% endif %}> | ||
{{ full }} | ||
</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<a href="{{ url }}" itemprop="availableLanguage" | ||
itemscope itemtype="http://schema.org/Language"> | ||
<span itemprop="name" alternateName="{{ iso }}" | ||
title="{{ full }}" | ||
lang="{{ iso }}">{{ local }}</span> | ||
</a> | ||
{%- if forloop.last != true %} · {% endif -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<link rel="alternate" hreflang="{{ iso }}" href="{{ url }}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{%- assign lpages=site.pages | where_exp:"page", "page contains 'lang'" | sort: 'lang' -%} | ||
|
||
{%- assign content_template="layout_partials/language_nav_links.html" -%} | ||
{%- if include.dropdown == true -%} | ||
{%- assign content_template="layout_partials/language_dropdown_option.html" -%} | ||
{%- endif -%} | ||
{%- if include.rel_alternate == true -%} | ||
{%- assign content_template="layout_partials/language_rel_alternate.html" -%} | ||
{%- endif -%} | ||
|
||
{% for l in lpages %} | ||
{%- assign local=site.langs[l.lang][l.lang] -%} | ||
{%- assign english=site.langs[l.lang]['en'] -%} | ||
{%- assign iso=l.lang -%} | ||
{%- assign url=l.url | absolute_url -%} | ||
{%- capture full -%} | ||
{{ local }}{% if l.lang_title %} ({{ english }}){% endif %} | ||
{%- endcapture -%} | ||
|
||
{% include {{ content_template }} %} | ||
{% endfor %} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.