mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-01-12 22:49:53 +08:00
Remove duplication in nav
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
<div class="border-bottom">
|
||||
{% if page.url == '/' %}{% assign homepage = true %}{% endif %}
|
||||
|
||||
<div class="{% unless homepage %}border-bottom{% endunless %}">
|
||||
<div class="container-lg px-3">
|
||||
<div class="py-4 d-flex d-flex-row">
|
||||
<h1 class="alt-h4 col-4 lh-default v-align-middle">
|
||||
{% unless homepage %}
|
||||
<a href="/" class="no-underline text-uppercase text-brand-blue-dark">
|
||||
<img class="v-align-middle" style="margin: -20px 8px -8px 0;" src="/assets/probot-head.png" height="36" alt="">
|
||||
Probot
|
||||
</a>
|
||||
{% endunless %}
|
||||
</h1>
|
||||
<nav class="text-bold col-8 text-right">
|
||||
<a class="text-inherit px-2 d-inline-block" href="/#explore">Explore</a>
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
layout: default
|
||||
---
|
||||
|
||||
{% include nav.html %}
|
||||
|
||||
<div class="">
|
||||
<div class="container-lg px-3 jumbotron jumbotron-minitron">
|
||||
<div class="d-flex d-flex-row gutter-spacious">
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
{% seo %}
|
||||
</head>
|
||||
<body>
|
||||
{% include nav.html %}
|
||||
|
||||
{{ content }}
|
||||
|
||||
{% include footer.html %}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
layout: default
|
||||
---
|
||||
|
||||
{% include nav.html %}
|
||||
|
||||
<div class="container-lg px-3 py-6">
|
||||
<div class="d-flex flex-row gutter-spacious">
|
||||
<div id="toc" class="col-3 py-6">
|
||||
|
||||
10
index.html
10
index.html
@@ -2,16 +2,6 @@
|
||||
layout: default
|
||||
---
|
||||
<div class="">
|
||||
<div class="container-lg">
|
||||
<div class="py-4 px-3 clearfix">
|
||||
<nav class="text-bold d-block float-right">
|
||||
<a class="text-inherit px-2 d-inline-block" href="/#explore">Explore</a>
|
||||
<a class="text-inherit px-2 d-inline-block" href="/docs/">Build</a>
|
||||
<a class="text-inherit px-2 d-inline-block" href="https://github.com/probot/probot">Contribute</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-lg px-3">
|
||||
<header class="py-6">
|
||||
<div class="pb-0 pt-md-4 py-lg-6">
|
||||
|
||||
Reference in New Issue
Block a user