Skip to content

Commit 8393ded

Browse files
committed
Add Slack button.
1 parent 64422ec commit 8393ded

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

_dist/_css/all.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_dist/index.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
<meta name="fullcss" content="/_css/all.css">
1010

1111
<?php
12-
if( is_null( $_GET[ "nocrit" ] ) ) {
12+
$critical = @file_get_contents("_css/critical.css" );
13+
$criticalCssNotEmpty = $critical !== false && strlen($critical) !== 0;
14+
if( is_null( $_GET[ "nocrit" ] ) && $criticalCssNotEmpty ) {
1315
echo "<style>";
14-
include( "_css/critical.css" );
16+
echo $critical;
1517
echo "</style>";
1618
} else {
1719
echo '<link rel="stylesheet" href="/_css/all.css">';
@@ -261,6 +263,7 @@
261263
</div>
262264

263265
<nav class="social">
266+
<a class="slack" href="https://ricg-slack.herokuapp.com"><img src="https://ricg-slack.herokuapp.com/badge.svg" alt="Join the RICG on Slack"></a>
264267
<a class="no-txt twitter" href="https://twitter.com/respimg">The RICG on Twitter</a>
265268
</nav>
266269
</div>

0 commit comments

Comments
 (0)