Skip to content

Commit 5916ec2

Browse files
authored
fix release post (Codeception#232)
1 parent 3bf651d commit 5916ec2

File tree

2 files changed

+63
-41
lines changed

2 files changed

+63
-41
lines changed

_layouts/post.html

Lines changed: 56 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,65 @@
44

55
<div class="fixed pt">
66

7-
<div class="col-md-6 hidden-xs" style="float: right; margin-top: 1em">
8-
<div class="well">
9-
<a class="btn btn-lg btn-warning btn-block" href="/quickstart">Quick Start →<br>with Codeception</a>
10-
<p><br/>Write and execute a test for an existing app
11-
<b>in less then a 5 mins!</b>
12-
</p>
13-
</div>
14-
</div>
7+
<div class="col-md-6 hidden-xs release-well-block">
8+
<div class="row">
9+
<div class="well">
10+
<a class="btn btn-lg btn-warning btn-block" href="/quickstart">Quick Start →<br>with Codeception</a>
11+
<p><br/>Write and execute a test for an existing app
12+
<b>in less then a 5 mins!</b>
13+
</p>
14+
</div>
15+
</div>
16+
</div>
1517

16-
<div class="content page">
17-
18-
<h1>{{ page.title }}</h1>
19-
20-
<p class="lead">
21-
Published on {{ page.date | date: "%B %d, %Y" }}
22-
{% if page.author %}
23-
<br>by <strong>{{ page.author }}</strong>
24-
{% endif %}
25-
</p>
26-
<div class="post">
27-
{{ content }}
28-
</div>
29-
<div class="alert alert-info">
30-
<a href="http://www.reddit.com/submit" onclick="window.location = 'http://www.reddit.com/submit?url=' + encodeURIComponent(window.location); return false" style="float: right"><img src="http://www.reddit.com/static/spreddit7.gif" alt="submit to reddit" border="0" /></a>
31-
<!-- Розмістіть цей тег там, де необхідно розмістити кнопку +1 -->
32-
<g:plusone size="tall" annotation="inline"></g:plusone>
33-
<a href="https://twitter.com/share" class="twitter-share-button" data-via="codeception">Tweet</a>
34-
</div> <!-- /.alert -->
35-
36-
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
37-
38-
<!-- Розмістіть цю команду відображення в потрібному місці -->
39-
<script type="text/javascript">
40-
(function() {
41-
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
42-
po.src = 'https://apis.google.com/js/plusone.js';
43-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
44-
})();
45-
</script>
46-
{% include comment.html %}
18+
<div class="content page">
4719

48-
</div>
20+
<h1>{{ page.title }}</h1>
21+
22+
<p class="lead">
23+
Published on {{ page.date | date: "%B %d, %Y" }}
24+
{% if page.author %}
25+
<br>by <strong>{{ page.author }}</strong>
26+
{% endif %}
27+
</p>
28+
<div class="post">
29+
{{ content }}
30+
</div>
31+
<div class="alert alert-info">
32+
<a href="http://www.reddit.com/submit"
33+
onclick="window.location = 'http://www.reddit.com/submit?url=' + encodeURIComponent(window.location); return false"
34+
style="float: right"><img src="http://www.reddit.com/static/spreddit7.gif" alt="submit to reddit" border="0"/></a>
35+
<!-- Розмістіть цей тег там, де необхідно розмістити кнопку +1 -->
36+
<g:plusone size="tall" annotation="inline"></g:plusone>
37+
<a href="https://twitter.com/share" class="twitter-share-button" data-via="codeception">Tweet</a>
38+
</div> <!-- /.alert -->
4939

40+
<script>!function (d, s, id) {
41+
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
42+
if (!d.getElementById(id)) {
43+
js = d.createElement(s);
44+
js.id = id;
45+
js.src = p + '://platform.twitter.com/widgets.js';
46+
fjs.parentNode.insertBefore(js, fjs);
47+
}
48+
}(document, 'script', 'twitter-wjs');</script>
5049

51-
</div>
50+
<!-- Розмістіть цю команду відображення в потрібному місці -->
51+
<script type="text/javascript">
52+
(function () {
53+
var po = document.createElement('script');
54+
po.type = 'text/javascript';
55+
po.async = true;
56+
po.src = 'https://apis.google.com/js/plusone.js';
57+
var s = document.getElementsByTagName('script')[0];
58+
s.parentNode.insertBefore(po, s);
59+
})();
60+
</script>
61+
{% include comment.html %}
62+
63+
</div>
64+
65+
66+
</div>
5267

5368
</div>

css/codeception.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,4 +1505,11 @@ body #footer .links {
15051505
width: 100%;
15061506
height: 100%;
15071507
border: none;
1508+
}
1509+
1510+
@media (min-width : 992px) {
1511+
.release-well-block {
1512+
float: right;
1513+
margin-top: 1em;
1514+
}
15081515
}

0 commit comments

Comments
 (0)