1
0
mirror of https://github.com/actix/actix-website synced 2024-11-27 18:12:57 +01:00

add blog nav in cn site

This commit is contained in:
krircc 2018-06-25 09:41:51 +08:00
parent 27e11483bc
commit 50ff9244c9
3 changed files with 12 additions and 1 deletions

View File

@ -2,6 +2,8 @@
other = "首页"
[docs]
other = "文档"
[blog]
other = "博客"
[community]
other = "社区"
[code]

View File

@ -26,7 +26,7 @@
</button>
</div>
<div class="navbar-collapse collapse" id="actix-main-nav">
<ul class="nav navbar-nav" id="ul-en">
<ul class="nav navbar-nav">
<li class="nav-item hd-lg-down">
<a class="navbar-brand" href="{{ "/" | absLangURL }}"><img src="/img/logo-nav.png" class="align-middle" alt=""></a>
</li>
@ -36,6 +36,9 @@
<li class="nav-item">
<a class="nav-link" href="{{ "/docs/" | absLangURL }}">{{ T "docs" }}</a>
</li>
<li class="nav-item" id="nav-blog">
<a class="nav-link" href="{{ "/blog/" | absLangURL }}">{{ T "blog" }}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ "/community/" | absLangURL }}">{{ T "community" }}</a>
</li>

View File

@ -1,3 +1,9 @@
window.onload = function(){
if (window.location.href.search("cn") == -1) {
document.getElementById("nav-blog").style.display = "none"
}
}
(function() {
function activateFeature(sel) {
$('div.actix-feature').hide();