File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -109,3 +109,20 @@ credits:
109109 Puoi contattare il nostro <a href="mailto:webmaster@ruby-lang.org">webmaster</a>
110110 per domande e commenti riguardanti questo sito.
111111
112+ nav :
113+ en :
114+ - name : Downloads
115+ url : downloads
116+ - name : Documentation
117+ url : documentation
118+ - name : Libraries
119+ url : libraries
120+ - name : Community
121+ url : community
122+ - name : News
123+ url : news
124+ - name : Security
125+ url : security
126+ - name : About Ruby
127+ url : about
128+
Original file line number Diff line number Diff line change 1- < a href ="/{{ page.lang }}/downloads/ "> Downloads</ a > < span class ="separator "> | </ span > < a href ="/{{ page.lang }}/documentation/ "> Documentation</ a > < span class ="separator "> | </ span > < a href ="/{{ page.lang }}/libraries/ "> Libraries</ a > < span class ="separator "> | </ span > < a href ="/{{ page.lang }}/community/ "> Community</ a > < span class ="separator "> | </ span > < a href ="/{{ page.lang }}/news/ "> News</ a > < span class ="separator "> | </ span > < a href ="/{{ page.lang }}/security/ "> Security</ a > < span class ="separator "> | </ span > < a href ="/{{ page.lang }}/about/ "> About Ruby</ a >
1+ {% if site.nav[page.lang] %}
2+ {% assign navlang = page.lang %}
3+ {% else %}
4+ {% assign navlang = 'en' %}
5+ {% endif %}
6+ {% for link in site.nav[navlang] %}
7+ < a href ="/{{ page.lang }}/{{ link.url }}/ "> {{ link.name }}</ a > {% unless forloop.last %}< span class ="separator "> | </ span > {% endunless %}
8+ {% endfor %}
You can’t perform that action at this time.
0 commit comments