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:
parent
27e11483bc
commit
50ff9244c9
@ -2,6 +2,8 @@
|
||||
other = "首页"
|
||||
[docs]
|
||||
other = "文档"
|
||||
[blog]
|
||||
other = "博客"
|
||||
[community]
|
||||
other = "社区"
|
||||
[code]
|
||||
|
@ -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>
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user