Explorar o código

Remove shop. Fix bug with index and language

Marcelo Fornet %!s(int64=5) %!d(string=hai) anos
pai
achega
ef1e11a505
Modificáronse 3 ficheiros con 3 adicións e 1 borrados
  1. 0 1
      layout/_base.html
  2. 0 0
      layout/_shop.html
  3. 3 0
      sitegen.py

+ 0 - 1
layout/_base.html

@@ -37,7 +37,6 @@
 								<div><a href="/news" {% if news_selected %}class="selected"{% endif %}>{{ 'news' | lang }}</a></div> /
 								<div><a href="/about"{% if about_selected %}class="selected"{% endif %}>{{ 'about' | lang }}</a></div> /
 								<div><a href="/contact" {% if contact_selected %}class="selected"{% endif %}>{{ 'contact' | lang }}</a></div> /
-								<div><a href="/shop"{% if shop_selected %}class="selected"{% endif %} >{{ 'shop' | lang }}</a></div>
 							</h1>
 						</div>
 						<div class="hbox">

layout/shop.html → layout/_shop.html


+ 3 - 0
sitegen.py

@@ -61,6 +61,9 @@ def lang_url(ctx, value):
     if name.startswith('./'):
         name = name[2:]
 
+    if name == 'index':
+        name = ''
+
     if value == DEFAULT_LANG:
         return "/" + name
     else: