Skip to content

Commit 677526e

Browse files
committed
Refactor Edit this page links to dynamic layout
1 parent a221629 commit 677526e

24 files changed

+24
-99
lines changed

_data/translations.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
edit_page:
2+
en: "Edit this page"
3+
es: "Editar esta página"
4+
it: "Modifica questa pagina"
5+
create_page:
6+
en: "Create new page"
7+
es: "Crear nueva página"
8+
it: "Crea una nuova pagina"

_layouts/default.html

+16
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,22 @@ <h1>
8484
<!-- Main Blog Content -->
8585
<div class="large-9 columns" role="content">
8686

87+
<div class="sectionbody ">
88+
{% if page.url contains '/docs/' %}
89+
<div class="paragraph text-right">
90+
<p><span class="icon"><i class="fa fa-plus-square"></i></span>
91+
<a href="https://github.com/libremesh/lime-web/new/master/docs">{{ site.data.translations['create_page'][page.lang] }}</a>
92+
</p>
93+
</div>
94+
{% endif %}
95+
<div class="paragraph text-right">
96+
<p>
97+
<span class="icon"><i class="fa fa-edit"></i></span>
98+
<a href="https://github.com/libremesh/lime-web/edit/master/{{ page.path }}">{{ site.data.translations['edit_page'][page.lang] }}</a>
99+
</p>
100+
</div>
101+
</div>
102+
87103
{{ content }}
88104

89105
</div>

about.txt

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ lang: en
66
About the project
77
=================
88

9-
[.text-right]
10-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/about.txt[Edit this page]
11-
129
== About
1310

1411
image:logo/logo.png["The LibreMesh logo",role="right"]

communication.txt

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ lang: en
66
Communication
77
=============
88

9-
[.text-right]
10-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/communication.txt[Edit this page]
11-
129
== Mailing Lists
1310

1411
The project communicate on the following mailing lists

development-kernel_vermagic.txt

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
Compiling firmware compatible with OpenWrt repository Kernel vermagic
44
=====================================================================
55

6-
[.text-right]
7-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/development-kernel_vermagic.txt[Edit this page]
8-
96
== Reference
107

118
This page is an optional expansion to the normal compilation procedure suggested in the link:development.html[development page] and is an expansion of link:https://lists.libremesh.org/pipermail/lime-users/2020-September/001682.html[this explorative email].

development.txt

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ lang: en
66
Development
77
===========
88

9-
[.text-right]
10-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/development.txt[Edit this page]
11-
129
== The Source Code
1310

1411
The code is stored inside a git tree which contains all branches and releases.

docs/en_change_wifi_behavior.txt

-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ lang: en
66
Changing WiFi interface behavior
77
===============================
88

9-
[.text-right]
10-
icon:plus-square[] link:https://github.com/libremesh/lime-web/new/master/docs[Create new page] and link:https://github.com/libremesh/lime-web/edit/master/_includes/docs_nav.html[Add it to index]
11-
12-
[.text-right]
13-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/docs/en_change_wifi_behavior.txt[Edit this page]
14-
159
== LibreMesh interface-specific WiFi configuration
1610

1711
If no specific WiFi interface configuration is present, the general WiFi configuration section is used for all the interfaces.

docs/en_changing_network_behavior.txt

-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ lang: en
66
Changing network interface behavior
77
===================================
88

9-
[.text-right]
10-
icon:plus-square[] link:https://github.com/libremesh/lime-web/new/master/docs[Create new page] and link:https://github.com/libremesh/lime-web/edit/master/_includes/docs_nav.html[Add it to index]
11-
12-
[.text-right]
13-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/docs/en_changing_network_behavior.txt[Edit this page]
14-
159
== LibreMesh interface-specific network configuration
1610

1711
If no interface-specific network configuration is present, the general network configuration section is used for all the interfaces.

docs/en_connecting_nodes.txt

-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ lang: en
66
Connecting to LibreMesh nodes
77
=============================
88

9-
[.text-right]
10-
icon:plus-square[] link:https://github.com/libremesh/lime-web/new/master/docs[Create new page] and link:https://github.com/libremesh/lime-web/edit/master/_includes/docs_nav.html[Add it to index]
11-
12-
[.text-right]
13-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/docs/en_connecting_nodes.txt[Edit this page]
14-
159
== Connecting to your own node
1610

1711
=== Connecting to the Web Interface

docs/en_quick_starting_guide.txt

-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ lang: en
77
LibreMesh Quick Starting Guide
88
==============================
99

10-
[.text-right]
11-
icon:plus-square[] link:https://github.com/libremesh/lime-web/new/master/docs[Create new page] and link:https://github.com/libremesh/lime-web/edit/master/_includes/docs_nav.html[Add it to index]
12-
13-
[.text-right]
14-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/docs/en_quick_starting_guide.txt[Edit this page]
1510

1611
== Compatible Hardware
1712

docs/en_troubleshooting.txt

-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ lang: en
66
Troubleshooting
77
===============
88

9-
[.text-right]
10-
icon:plus-square[] link:https://github.com/libremesh/lime-web/new/master/docs[Create new page] and link:https://github.com/libremesh/lime-web/edit/master/_includes/docs_nav.html[Add it to index]
11-
12-
[.text-right]
13-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/docs/en_troubleshooting.txt[Edit this page]
14-
159
== Unable to establish Ethernet connection
1610
If you can't connect to the LibreMesh router as indicated in link:en_connecting_nodes.html[How to connect to LibreMesh nodes] opening http://thisnode.info you can try other ways.
1711

docs/en_vim-guide.txt

-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
Vim tutorial
44
===========
55

6-
[.text-right]
7-
icon:plus-square[] link:https://github.com/libremesh/lime-web/new/master/docs[Create new page] and link:https://github.com/libremesh/lime-web/edit/master/_includes/docs_nav.html[Add it to index]
8-
9-
[.text-right]
10-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/docs/en_vim-guide.txt[Edit this page]
11-
126
== A very short Vim tutorial
137

148
Vim is an extremely powerful console editor based on a clever idea:

docs/hardware/index.txt

-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ lang: en
66
Hardware Documentation Index
77
============================
88

9-
[.text-right]
10-
icon:plus-square[] link:https://github.com/libremesh/lime-web/new/master/docs/hardware[Create new page] and link:https://github.com/libremesh/lime-web/edit/master/docs/hardware/index.txt[Add it to index]
11-
12-
[.text-right]
13-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/docs/hardware/index.txt[Edit this page]
14-
159
== Hardware
1610

1711
Installing LibreMesh is not always as easy as we would like to.

docs/hardware/tp-link.txt

-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
TP-Link
44
=======
55

6-
[.text-right]
7-
icon:plus-square[] link:https://github.com/libremesh/lime-web/new/master/docs/hardware[Create new page] and link:https://github.com/libremesh/lime-web/edit/master/docs/hardware/index.txt[Add it to index]
86

9-
[.text-right]
10-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/docs/hardware/tp-link.txt[Edit this page]
11-
127
Because of the http://ml.ninux.org/pipermail/battlemesh/2016-February/004379.html[new FCC rules], new TP-Link models would require a special method to install third party firmwares like LibreMesh.
138
On TP-Link devices, you can typically identify that your router is FCC locked if you get a 18005 and/or Invalid Filename error when trying to flash.
149
These instructions can help bypass these new restrictions.

docs/hardware/xiaomi-miwifir3.txt

-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
Xiaomi MiWiFi R3
44
================
55

6-
[.text-right]
7-
icon:plus-square[] link:https://github.com/libremesh/lime-web/new/master/docs/hardware[Create new page] and link:https://github.com/libremesh/lime-web/edit/master/docs/hardware/index.txt[Add it to index]
8-
9-
[.text-right]
10-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/docs/hardware/xiaomi-miwifir3.txt[Edit this page]
116

127
== How to install LibreMesh on the Xiaomi MiWiFi R3
138

docs/index.txt

-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ lang: en
66
Documentation Index
77
===================
88

9-
[.text-right]
10-
icon:plus-square[] link:https://github.com/libremesh/lime-web/new/master/docs[Create new page] and link:https://github.com/libremesh/lime-web/edit/master/_includes/docs_nav.html[Add it to index]
11-
12-
[.text-right]
13-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/docs/index.txt[Edit this page]
14-
159
== Contributing to the Documentation
1610

1711
Contributions to the documentation are very welcome, check out the web presence section in the link:/development.html[development page].

docs/it_guida_rapida_per_iniziare.txt

-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ lang: it
77
LibreMesh Guida Rapida Per Iniziare
88
===================================
99

10-
[.text-right]
11-
icon:plus-square[] link:https://github.com/libremesh/lime-web/new/master/docs[Crea una nuova pagina] and link:https://github.com/libremesh/lime-web/edit/master/_includes/docs_nav.html[Aggiungila all'indice]
12-
13-
[.text-right]
14-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/docs/it_guida_rapida_per_iniziare.txt[Modifica questa pagina]
15-
1610
== Hardware Compatibile
1711

1812
E’ consigliato che i router abbiamo almeno 8MB di memory flash. Per router con 4MB di memoria usa lo speciale firmware chiamato +-mini+.

docs/it_index.txt

-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ lang: it
66
Indice della Documentazione
77
===========================
88

9-
[.text-right]
10-
icon:plus-square[] link:https://github.com/libremesh/lime-web/new/master/docs[Crea una nuova pagina] and link:https://github.com/libremesh/lime-web/edit/master/_includes/docs_nav.html[Aggiungila all'indice]
11-
12-
[.text-right]
13-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/docs/it_index.txt[Modifica questa pagina]
14-
159
== Contribuire alla Documentazione
1610

1711
Siamo molto felici se ti va di contribuire alla documentazione, guarda la sezione "The Web Presence" nella pagina di link:/development.html[Sviluppo].

es_development.txt

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ lang: es
66
Desarrollo
77
===========
88

9-
[.text-right]
10-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/es_development.txt[Editar esta página]
11-
129
== Código Fuente
1310

1411
El código fuente se encuentra almacenado en un árbol de git que contiene todas las ramas y lanzamientos.

es_getit.txt

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ lang: es
66
Obtener
77
======
88

9-
[.text-right]
10-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/es_getit.txt[Edita esta página]
11-
129
== Descargar Binarios Precompilados
1310
Ofrecemos imagenes de firmware precompiladas de la versión estable de LibreMesh (Dayboot Rely 17.06) con **configuraciones genericas**. Esta es la
1411
forma más facil de obtener e instalar LibreMesh en tu router. La imagen de la **versión estable** se puede encontrar en el sitio de https://downloads.libremesh.org/releases/17.06/[descargas].

es_howitworks.txt

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ lang: es
66
Cómo funciona
77
============
88

9-
[.text-right]
10-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/es_howitworks.txt[Editar esta página]
11-
129
== Objetivos a alcanzar
1310

1411
- Escalabilidad

getit.txt

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ lang: en
66
Get it
77
======
88

9-
[.text-right]
10-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/getit.txt[Edit this page]
11-
129
== Download Precompiled Binaries
1310

1411
We offer precompiled firmware images of the LibreMesh stable release (Dayboot Rely 17.06) with **generic settings**. This is the easiest way to first test and install LibreMesh in your router.

howitworks.txt

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ lang: en
66
How it works
77
============
88

9-
[.text-right]
10-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/howitworks.txt[Edit this page]
11-
129
== Objectives to Achieve
1310

1411
- Scalability

news.txt

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ lang: en
66
News
77
====
88

9-
[.text-right]
10-
icon:edit[] link:https://github.com/libremesh/lime-web/edit/master/news.txt[Edit this page]
11-
129
=== 2020-09-18 - A release candidate for the next release!
1310

1411
Although the LibreMesh development never stopped, it was since the 17.06

0 commit comments

Comments
 (0)