mirror of
https://github.com/actix/actix-website
synced 2024-11-30 19:14:36 +01:00
add blog nav in cn site
This commit is contained in:
parent
27e11483bc
commit
50ff9244c9
@ -2,6 +2,8 @@
|
|||||||
other = "首页"
|
other = "首页"
|
||||||
[docs]
|
[docs]
|
||||||
other = "文档"
|
other = "文档"
|
||||||
|
[blog]
|
||||||
|
other = "博客"
|
||||||
[community]
|
[community]
|
||||||
other = "社区"
|
other = "社区"
|
||||||
[code]
|
[code]
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-collapse collapse" id="actix-main-nav">
|
<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">
|
<li class="nav-item hd-lg-down">
|
||||||
<a class="navbar-brand" href="{{ "/" | absLangURL }}"><img src="/img/logo-nav.png" class="align-middle" alt=""></a>
|
<a class="navbar-brand" href="{{ "/" | absLangURL }}"><img src="/img/logo-nav.png" class="align-middle" alt=""></a>
|
||||||
</li>
|
</li>
|
||||||
@ -36,6 +36,9 @@
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{ "/docs/" | absLangURL }}">{{ T "docs" }}</a>
|
<a class="nav-link" href="{{ "/docs/" | absLangURL }}">{{ T "docs" }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item" id="nav-blog">
|
||||||
|
<a class="nav-link" href="{{ "/blog/" | absLangURL }}">{{ T "blog" }}</a>
|
||||||
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{ "/community/" | absLangURL }}">{{ T "community" }}</a>
|
<a class="nav-link" href="{{ "/community/" | absLangURL }}">{{ T "community" }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
window.onload = function(){
|
||||||
|
if (window.location.href.search("cn") == -1) {
|
||||||
|
document.getElementById("nav-blog").style.display = "none"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
function activateFeature(sel) {
|
function activateFeature(sel) {
|
||||||
$('div.actix-feature').hide();
|
$('div.actix-feature').hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user