Skip to content

Commit dc9289c

Browse files
committed
Initial page content
1 parent 51eaf38 commit dc9289c

File tree

136 files changed

+16649
-244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+16649
-244
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.yml*]
12+
indent_size = 2

_config.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
title: HTTPlug
22
3-
description: > # this means to ignore newlines until "baseurl:"
4-
Write an awesome description for your new site here. You can edit this
5-
line in _config.yml. It will appear in your document head meta (for
6-
Google search results) and in your feed.xml site description.
3+
description: HTTPlug, the HTTP client abstraction for PHP.
74
baseurl: ""
85
url: "http://httplug.io"
96
twitter_username: httplug
10-
github_username: php-http
7+
github_username: php-http
8+
9+
sass:
10+
sass_dir: assets/_sass
11+
style: compressed
1112

1213
# Build settings
1314
markdown: kramdown

_data/adapters.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- id: guzzle6
2+
label: Guzzle 6
3+
homepage: http://guzzlephp.org
4+
status: alpha

_data/clients.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- id: socket
2+
label: Socket
3+
homepage: https://github.com/php-http/socket-client
4+
status: wip

_data/navigation.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
- label: Adapters
2+
url: /adapters/
3+
4+
- label: Clients
5+
url: /clients/
6+
7+
- label: Documentation
8+
icon: book
9+
url: http://docs.httplug.io
10+
external: true
11+
12+
- label: Source
13+
icon: github
14+
url: https://github.com/php-http/httplug
15+
external: true

_includes/foot.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
2+
<script src="{{ '/assets/js/bootstrap.min.js' | prepend: site.baseurl }}"></script>

_includes/footer.html

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,34 @@
1-
<footer class="site-footer">
2-
3-
<div class="wrapper">
4-
5-
<h2 class="footer-heading">{{ site.title }}</h2>
6-
7-
<div class="footer-col-wrapper">
8-
<div class="footer-col footer-col-1">
9-
<ul class="contact-list">
10-
<li>{{ site.title }}</li>
11-
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
12-
</ul>
13-
</div>
14-
15-
<div class="footer-col footer-col-2">
16-
<ul class="social-media-list">
17-
{% if site.github_username %}
18-
<li>
19-
{% include icon-github.html username=site.github_username %}
20-
</li>
21-
{% endif %}
22-
23-
{% if site.twitter_username %}
24-
<li>
25-
{% include icon-twitter.html username=site.twitter_username %}
26-
</li>
27-
{% endif %}
28-
</ul>
29-
</div>
30-
31-
<div class="footer-col footer-col-3">
32-
<p>{{ site.description }}</p>
33-
</div>
1+
<footer role="contentinfo">
2+
<div class="container">
3+
<div class="row">
4+
<div class="col-md-4">
5+
<ul class="contact-list">
6+
<li>{{ site.title }}</li>
7+
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
8+
</ul>
9+
</div>
10+
<div class="col-md-4">
11+
<ul class="social-media-list">
12+
{% if site.github_username %}
13+
<li>
14+
<a href="https://github.com/{{ site.github_username }}">
15+
<span class="fa fa-github"></span> <span class="username">{{ site.github_username }}</span>
16+
</a>
17+
</li>
18+
{% endif %}
19+
20+
{% if site.twitter_username %}
21+
<li>
22+
<a href="https://twitter.com/{{ site.twitter_username }}">
23+
<span class="fa fa-twitter"></span> <span class="username">{{ site.twitter_username }}</span>
24+
</a>
25+
</li>
26+
{% endif %}
27+
</ul>
28+
</div>
29+
<div class="col-md-4">
30+
<p>{{ site.description }}</p>
31+
</div>
32+
</div>
3433
</div>
35-
36-
</div>
37-
3834
</footer>

_includes/head.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<head>
2-
<meta charset="utf-8">
3-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4-
<meta name="viewport" content="width=device-width, initial-scale=1">
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
55

6-
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
7-
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
6+
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
7+
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
88

9-
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
10-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
11-
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
9+
<link rel="stylesheet" href="{{ '/assets/css/main.css' | prepend: site.baseurl }}">
10+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
11+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
1212
</head>

_includes/header.html

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
1-
<header class="site-header">
2-
3-
<div class="wrapper">
4-
5-
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
6-
7-
<nav class="site-nav">
8-
<a href="#" class="menu-icon">
9-
<svg viewBox="0 0 18 15">
10-
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
11-
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
12-
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
13-
</svg>
14-
</a>
15-
16-
<div class="trigger">
17-
{% for my_page in site.pages %}
18-
{% if my_page.title %}
19-
<a class="page-link" href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a>
20-
{% endif %}
21-
{% endfor %}
22-
</div>
1+
<header role="banner">
2+
<nav class="navbar navbar-fixed-top navbar-light bg-faded" role="navigation">
3+
<div class="container">
4+
<button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#exCollapsingNavbar2">
5+
&#9776;
6+
</button>
7+
<div class="collapse navbar-toggleable-xs" id="exCollapsingNavbar2">
8+
<a class="navbar-brand" href="/">HTTPlug</a>
9+
<ul class="nav navbar-nav pull-right">
10+
{% for item in site.data.navigation %}
11+
<li class="nav-item{% if page.url == item.url %} active{% endif %}">
12+
<a class="nav-link" href="{{ item.url }}"{% if item.external %} target="_blank"{% endif %}>
13+
{% if item.icon %}<span class="fa fa-{{ item.icon }}"></span> {% endif %}{{ item.label }}
14+
</a>
15+
</li>
16+
{% endfor %}
17+
</ul>
18+
</div>
19+
</div>
2320
</nav>
24-
25-
</div>
26-
2721
</header>

_includes/icon-github.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

_includes/icon-github.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

_includes/icon-twitter.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

_includes/icon-twitter.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

_layouts/default.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
<!DOCTYPE html>
22
<html>
33

4-
{% include head.html %}
4+
{% include head.html %}
55

6-
<body>
6+
<body>
77

8-
{% include header.html %}
8+
{% include header.html %}
99

10-
<div class="page-content">
11-
<div class="wrapper">
12-
{{ content }}
13-
</div>
14-
</div>
10+
<main role="main">
11+
{{ content }}
12+
</main>
1513

16-
{% include footer.html %}
17-
18-
</body>
14+
{% include footer.html %}
15+
{% include foot.html %}
1916

17+
</body>
2018
</html>

_layouts/page.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
---
22
layout: default
33
---
4-
<article class="post">
5-
6-
<header class="post-header">
7-
<h1 class="post-title">{{ page.title }}</h1>
8-
</header>
9-
10-
<div class="post-content">
11-
{{ content }}
12-
</div>
13-
14-
</article>
4+
<div class="container">
5+
<div class="row">
6+
<div class="col-md-12">
7+
<section class="page">
8+
<header class="page-header">
9+
<h1 class="page-title">{{ page.title }}</h1>
10+
</header>
11+
<div class="page-content">
12+
{{ content }}
13+
</div>
14+
</section>
15+
</div>
16+
</div>
17+
</div>

_layouts/post.html

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
---
22
layout: default
33
---
4-
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
4+
<div class="container">
5+
<div class="row">
6+
<div class="col-md-12">
7+
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
58

6-
<header class="post-header">
7-
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
8-
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
9-
</header>
9+
<header class="post-header">
10+
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
11+
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
12+
</header>
1013

11-
<div class="post-content" itemprop="articleBody">
12-
{{ content }}
13-
</div>
14+
<div class="post-content" itemprop="articleBody">
15+
{{ content }}
16+
</div>
1417

15-
</article>
18+
</article>
19+
</div>
20+
</div>
21+
</div>

_posts/2015-11-02-welcome-to-jekyll.markdown

Lines changed: 0 additions & 25 deletions
This file was deleted.

about.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

adapters.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: page
3+
title: Adapters
4+
permalink: /adapters/
5+
---
6+
7+
{% for item in site.data.adapters %}
8+
<article class="client">
9+
<h2>{{ item.label }}</h2>
10+
</article>
11+
{% endfor %}
File renamed without changes.
File renamed without changes.

assets/_sass/_variables.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@import "bootstrap/vendor/variables";
2+
@import "font-awesome/vendor/variables";
3+
4+
// Will be possible in 2nd alpha
5+
// See: https://github.com/twbs/bootstrap/issues/17046
6+
//$enable-flex: true;
7+
8+
$header-height: 60px;
9+
$footer-height: 200px;

0 commit comments

Comments
 (0)