Skip to content

Commit

Permalink
Make featured Git repos bold
Browse files Browse the repository at this point in the history
  • Loading branch information
arian committed Jan 26, 2013
1 parent e6519cd commit 8b804e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/_index/_home/templates/index.php
Expand Up @@ -40,9 +40,16 @@
<a href="http://github.com/arian">github.com/arian</a>
</h1>
<div id="github">
<?php
$featured = array(
'CoverJS', 'wrapup', 'prime', 'mootools-core', 'elements'
);
?>
<ul><?php foreach ($this->repos as $repo): ?>

<li><a href="<?php echo $repo['html_url'] ?>"><?php echo $repo['name']; ?></a></li><?php
<li><a href="<?php echo $repo['html_url'] ?>"<?php
echo in_array($repo['name'], $featured) ? ' class="featured"' : ''
?>><?php echo $repo['name']; ?></a></li><?php
endforeach; ?>

</ul>
Expand Down
3 changes: 3 additions & 0 deletions themes/light/source/css/_partial/index.styl
Expand Up @@ -20,6 +20,9 @@
border 0
overflow hidden

&.featured
font-weight bold

&:hover
border-radius 5px
background #4086E6
Expand Down

0 comments on commit 8b804e8

Please sign in to comment.