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>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<h1 id="projects">~current projects~</h1>
|
<h1 id="projects">~projects~</h1>
|
||||||
<h4>on our <a href="https://tildegit.org/team">gitea</a></h4>
|
|
||||||
<hr>
|
|
||||||
<div class="list-group">
|
|
||||||
<?php foreach (json_decode(file_get_contents("https://tildegit.org/api/v1/orgs/team/repos")) ?? [] as $repo):
|
<?php foreach (json_decode(file_get_contents("https://tildegit.org/api/v1/orgs/team/repos")) ?? [] as $repo):
|
||||||
if ($repo->archived) continue; ?>
|
if ($repo->archived) continue; ?>
|
||||||
<div class="list-group-item">
|
|
||||||
<h3 style="display:inline;" class="list-group-item-heading">
|
<div class="list-group">
|
||||||
<a href="<?=$repo->html_url?>"><?=$repo->name?></a>
|
<div class="list-group-item">
|
||||||
</h3>
|
<h3 style="display:inline;" class="list-group-item-heading">
|
||||||
<?php if ($repo->website != ""): ?>
|
<a href="<?=$repo->html_url?>"><?=$repo->name?></a>
|
||||||
—
|
</h3>
|
||||||
<p style="display:inline;"><em><a href="<?=$repo->website?>"><?=$repo->website?></a></em></p>
|
<?php if ($repo->website != ""): ?>
|
||||||
<?php endif; ?>
|
—
|
||||||
<br>
|
<p style="display:inline;"><em><a href="<?=$repo->website?>"><?=$repo->website?></a></em></p>
|
||||||
<p class="list-group-item-text"><?=$repo->description?></p>
|
<?php endif; ?>
|
||||||
|
<br>
|
||||||
|
<p class="list-group-item-text"><?=$repo->description?></p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?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>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
|
@ -3,14 +3,6 @@ $filepath = __FILE__;
|
||||||
require __DIR__.'/../vendor/autoload.php';
|
require __DIR__.'/../vendor/autoload.php';
|
||||||
|
|
||||||
$additional_head = "
|
$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:type' content='website'>
|
||||||
<meta property='og:image' content='https://tilde.team/apple-icon.png'>
|
<meta property='og:image' content='https://tilde.team/apple-icon.png'>
|
||||||
<meta property='og:site_name' content='tilde.team news'>
|
<meta property='og:site_name' content='tilde.team news'>
|
||||||
|
|
Loading…
Reference in New Issue