forked from team/site
make projects col consistent with news
This commit is contained in:
parent
148cd27ba4
commit
add81fc14d
35
index.php
35
index.php
|
@ -92,26 +92,31 @@ $parser = Tildeverse\Wiki\Parser::factory();
|
|||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<h1 id="projects">~current projects~</h1>
|
||||
<h4>on our <a href="https://tildegit.org/team">gitea</a></h4>
|
||||
<hr>
|
||||
<div class="list-group">
|
||||
<h1 id="projects">~projects~</h1>
|
||||
|
||||
<?php foreach (json_decode(file_get_contents("https://tildegit.org/api/v1/orgs/team/repos")) ?? [] as $repo):
|
||||
if ($repo->archived) continue; ?>
|
||||
<div class="list-group-item">
|
||||
<h3 style="display:inline;" class="list-group-item-heading">
|
||||
<a href="<?=$repo->html_url?>"><?=$repo->name?></a>
|
||||
</h3>
|
||||
<?php if ($repo->website != ""): ?>
|
||||
—
|
||||
<p style="display:inline;"><em><a href="<?=$repo->website?>"><?=$repo->website?></a></em></p>
|
||||
<?php endif; ?>
|
||||
<br>
|
||||
<p class="list-group-item-text"><?=$repo->description?></p>
|
||||
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<h3 style="display:inline;" class="list-group-item-heading">
|
||||
<a href="<?=$repo->html_url?>"><?=$repo->name?></a>
|
||||
</h3>
|
||||
<?php if ($repo->website != ""): ?>
|
||||
—
|
||||
<p style="display:inline;"><em><a href="<?=$repo->website?>"><?=$repo->website?></a></em></p>
|
||||
<?php endif; ?>
|
||||
<br>
|
||||
<p class="list-group-item-text"><?=$repo->description?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<p class="list-group-item-text"><a href="https://tildegit.org/team">gitea repos...</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
|
|
@ -3,14 +3,6 @@ $filepath = __FILE__;
|
|||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
$additional_head = "
|
||||
<style>
|
||||
:target:before {
|
||||
content:\"\";
|
||||
display:block;
|
||||
height:90px; /* fixed header height*/
|
||||
margin:-90px 0 0; /* negative fixed header height */
|
||||
}
|
||||
</style>
|
||||
<meta property='og:type' content='website'>
|
||||
<meta property='og:image' content='https://tilde.team/apple-icon.png'>
|
||||
<meta property='og:site_name' content='tilde.team news'>
|
||||
|
|
Loading…
Reference in New Issue