Skip to content

Commit

Permalink
Add Slack button.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilto committed Feb 6, 2017
1 parent 64422ec commit 8393ded
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion _dist/_css/all.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions _dist/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
<meta name="fullcss" content="/_css/all.css">

<?php
if( is_null( $_GET[ "nocrit" ] ) ) {
$critical = @file_get_contents("_css/critical.css" );
$criticalCssNotEmpty = $critical !== false && strlen($critical) !== 0;
if( is_null( $_GET[ "nocrit" ] ) && $criticalCssNotEmpty ) {
echo "<style>";
include( "_css/critical.css" );
echo $critical;
echo "</style>";
} else {
echo '<link rel="stylesheet" href="/_css/all.css">';
Expand Down Expand Up @@ -261,6 +263,7 @@
</div>

<nav class="social">
<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>
<a class="no-txt twitter" href="https://twitter.com/respimg">The RICG on Twitter</a>
</nav>
</div>
Expand Down
Loading

0 comments on commit 8393ded

Please sign in to comment.