mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-04 00:02:03 -04:00
Add EditorConfig file
Resolve issues. More info here: https://editorconfig.org/
This commit is contained in:
parent
c26df87b86
commit
680b9f8a6c
9
.editorconfig
Normal file
9
.editorconfig
Normal file
@ -0,0 +1,9 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
@ -57,4 +57,3 @@ conn = Faraday.new(...) do |f|
|
||||
f.adapter AnyAdapter
|
||||
end
|
||||
```
|
||||
|
||||
|
@ -1,50 +1,50 @@
|
||||
<!-- This is extracted directly from https://github.com/rohanchandra/type-theme/blob/c6ec5a69ff7dfe2df193be08515193c72bd4a55d/_includes/header.html
|
||||
for customization (DocSearch feature) -->
|
||||
<header class="site-header">
|
||||
<div class="branding">
|
||||
{% if site.theme_settings.gravatar %}
|
||||
<a href="{{ site.baseurl }}/">
|
||||
<img class="avatar" src="https://secure.gravatar.com/avatar/{{ site.theme_settings.gravatar }}?s=100" alt=""/>
|
||||
</a>
|
||||
{% elsif site.theme_settings.avatar %}
|
||||
<a href="{{ site.baseurl }}/">
|
||||
<img class="avatar" src="{{ site.baseurl }}/{{ site.theme_settings.avatar }}" alt=""/>
|
||||
</a>
|
||||
{% endif %}
|
||||
<h1 class="site-title">
|
||||
<a href="{{ site.baseurl }}/">{{ site.theme_settings.title }}</a>
|
||||
</h1>
|
||||
</div>
|
||||
<nav class="site-nav">
|
||||
<ul>
|
||||
{% if site.theme_settings.site_navigation_sort %}
|
||||
{% assign site_pages = site.pages | sort: site.theme_settings.site_navigation_sort %}
|
||||
{% else %}
|
||||
{% assign site_pages = site.pages %}
|
||||
{% endif %}
|
||||
{% for page in site_pages %}
|
||||
{% if page.title and page.hide != true %}
|
||||
<li>
|
||||
<a class="page-link" href="{{ page.url | relative_url }}">
|
||||
{{ page.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<!-- Social icons from Font Awesome, if enabled -->
|
||||
{% include icons.html %}
|
||||
<div class="branding">
|
||||
{% if site.theme_settings.gravatar %}
|
||||
<a href="{{ site.baseurl }}/">
|
||||
<img class="avatar" src="https://secure.gravatar.com/avatar/{{ site.theme_settings.gravatar }}?s=100" alt=""/>
|
||||
</a>
|
||||
{% elsif site.theme_settings.avatar %}
|
||||
<a href="{{ site.baseurl }}/">
|
||||
<img class="avatar" src="{{ site.baseurl }}/{{ site.theme_settings.avatar }}" alt=""/>
|
||||
</a>
|
||||
{% endif %}
|
||||
<h1 class="site-title">
|
||||
<a href="{{ site.baseurl }}/">{{ site.theme_settings.title }}</a>
|
||||
</h1>
|
||||
</div>
|
||||
<nav class="site-nav">
|
||||
<ul>
|
||||
{% if site.theme_settings.site_navigation_sort %}
|
||||
{% assign site_pages = site.pages | sort: site.theme_settings.site_navigation_sort %}
|
||||
{% else %}
|
||||
{% assign site_pages = site.pages %}
|
||||
{% endif %}
|
||||
{% for page in site_pages %}
|
||||
{% if page.title and page.hide != true %}
|
||||
<li>
|
||||
<a class="page-link" href="{{ page.url | relative_url }}">
|
||||
{{ page.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<!-- Social icons from Font Awesome, if enabled -->
|
||||
{% include icons.html %}
|
||||
|
||||
<!-- Search bar -->
|
||||
{% if site.theme_settings.search %}
|
||||
<li>
|
||||
<form action="{{ site.baseurl }}/search.html" method="get">
|
||||
<input type="text" id="search-box" name="query" placeholder="Search" class="">
|
||||
<button type="submit" class="">
|
||||
<i class="fa fa-fw fa-search"></i>
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
{% endif %}
|
||||
<!-- Search bar -->
|
||||
{% if site.theme_settings.search %}
|
||||
<li>
|
||||
<form action="{{ site.baseurl }}/search.html" method="get">
|
||||
<input type="text" id="search-box" name="query" placeholder="Search" class="">
|
||||
<button type="submit" class="">
|
||||
<i class="fa fa-fw fa-search"></i>
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li>
|
||||
<form id="search-form">
|
||||
<input type="text" id="search-box" placeholder="Search">
|
||||
@ -53,7 +53,7 @@ for customization (DocSearch feature) -->
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</header>
|
@ -127,4 +127,3 @@ footer
|
||||
// when needing search usually
|
||||
@media screen and (max-width: 800px)
|
||||
display: none
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user