main,git
This commit is contained in:
parent
00947b1cb2
commit
20454e72cc
1 changed files with 29 additions and 16 deletions
45
build.py
45
build.py
|
@ -19,8 +19,9 @@ def link(active:str, id:str, text:str)->str:
|
||||||
def nav(active:str=None)->str:
|
def nav(active:str=None)->str:
|
||||||
return f'''\
|
return f'''\
|
||||||
<nav>
|
<nav>
|
||||||
{link(active, 'home', 'Home')}
|
{link(active, 'main', '/')}
|
||||||
{link(active, 'cv', 'CV')}
|
{link(active, 'cv', 'CV')}
|
||||||
|
{link(active, 'git', 'Git')}
|
||||||
{link(active, 'id', 'Identity')}
|
{link(active, 'id', 'Identity')}
|
||||||
{link(active, 'tilde', '~')}
|
{link(active, 'tilde', '~')}
|
||||||
{link(active, 'ed', 'Education')}
|
{link(active, 'ed', 'Education')}
|
||||||
|
@ -50,7 +51,7 @@ def main():
|
||||||
<!----------------------------------------------------------------------------->
|
<!----------------------------------------------------------------------------->
|
||||||
function main() {{
|
function main() {{
|
||||||
if (! window.location.href.includes('#')) {{
|
if (! window.location.href.includes('#')) {{
|
||||||
window.location.href+='#home';
|
window.location.href += '#main';
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
<!----------------------------------------------------------------------------->
|
<!----------------------------------------------------------------------------->
|
||||||
|
@ -63,9 +64,9 @@ function main() {{
|
||||||
</header><main>
|
</header><main>
|
||||||
<!----------------------------------------------------------------------------->
|
<!----------------------------------------------------------------------------->
|
||||||
|
|
||||||
<section id="home">
|
<section id="main">
|
||||||
|
|
||||||
{nav('home')}
|
{nav('main')}
|
||||||
|
|
||||||
<ul class="cards">
|
<ul class="cards">
|
||||||
<li class="card"><a href="https://linkedin.com/in/marc-beninca">
|
<li class="card"><a href="https://linkedin.com/in/marc-beninca">
|
||||||
|
@ -93,6 +94,30 @@ function main() {{
|
||||||
|
|
||||||
<!----------------------------------------------------------------------------->
|
<!----------------------------------------------------------------------------->
|
||||||
|
|
||||||
|
<section id="git">
|
||||||
|
|
||||||
|
{nav('git')}
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://gitee.com/marc_beninca">Gitee</a></li>
|
||||||
|
<li><a href="https://notabug.org/marc.beninca">NotABug</a></li>
|
||||||
|
<li><a href="https://pagure.io/user/marc-beninca">Pagure</a></li>
|
||||||
|
<li><a href="https://rocketgit.com/marc.beninca">RocketGit</a></li>
|
||||||
|
<li><a href="https://sr.ht/~marc_beninca/rwx.work/sources">SourceHut</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Gforge</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!----------------------------------------------------------------------------->
|
||||||
|
|
||||||
<section id="id">
|
<section id="id">
|
||||||
|
|
||||||
{nav('id')}
|
{nav('id')}
|
||||||
|
@ -217,18 +242,6 @@ function main() {{
|
||||||
<li><a href="https://twtxt.net/user/marc_beninca">YarnSocial</a></li>
|
<li><a href="https://twtxt.net/user/marc_beninca">YarnSocial</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li><a href="https://gitee.com/marc_beninca">Gitee</a></li>
|
|
||||||
<li><a href="https://notabug.org/marc.beninca">NotABug</a></li>
|
|
||||||
<li><a href="https://pagure.io/user/marc-beninca">Pagure</a></li>
|
|
||||||
<li><a href="https://rocketgit.com/marc.beninca">RocketGit</a></li>
|
|
||||||
<li><a href="https://sr.ht/~marc_beninca/rwx.work/sources">SourceHut</a></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>Gforge</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!----------------------------------------------------------------------------->
|
<!----------------------------------------------------------------------------->
|
||||||
|
|
Loading…
Reference in a new issue