remove { } from wikilinks
This commit is contained in:
parent
22b8594cb3
commit
1f07762677
|
@ -58,8 +58,9 @@ function wikiLink( t ){
|
|||
ifinal = index(t, "}") # índice del } final
|
||||
|
||||
prev = substr(t, 1, i-1) # string previa al link
|
||||
link = substr(t, i, ifinal-i+1) # {link}
|
||||
# link = substr(t, i, ifinal-i+1) # {link}
|
||||
nombre = substr(t, i+1, ifinal-i-1) # link
|
||||
link = nombre
|
||||
nombre = nombre2Link( nombre, "_" )
|
||||
|
||||
post = substr(t, ifinal+1) # string posterior
|
||||
|
@ -94,7 +95,6 @@ NR == 1{
|
|||
print "</head>"
|
||||
print "<body>"
|
||||
print "<header>"
|
||||
# print "<p><a href='./index.html'>{" sitio "}</a></p>"
|
||||
print "<p><a class='icon' href='./home.html' title='" sitio "'><img src='./img/iconocompudanzas_32.png' style='margin:0' alt='icono de compudanzas'/></a></p>"
|
||||
print "<h1>"titulo"</h1>"
|
||||
print "</header>"
|
||||
|
@ -179,6 +179,10 @@ NR == 1{
|
|||
# convierte enlace de .gmi a .html !
|
||||
sub(".gmi$",".html",$1)
|
||||
|
||||
# quita { }
|
||||
sub("{","",texto)
|
||||
sub("}","",texto)
|
||||
|
||||
# crea link <a>
|
||||
appendContenido("<p><a href='"$1"'>"texto"</a></p>")
|
||||
}
|
||||
|
@ -353,7 +357,7 @@ END{
|
|||
print "<a href='gemini://compudanzas.net/" FILENAME "' rel=external target=_blank>gemini://</a>"
|
||||
print "</p>"
|
||||
# links:
|
||||
print "<p><a href='./about.html'>{about}</a> <a href='./contact.html'>{contact}</a> <a href='./support.html'>{support}</a></p>"
|
||||
print "<p><a href='./about.html'>about</a> <a href='./contact.html'>contact</a> <a href='./support.html'>support</a></p>"
|
||||
print "<p><a class='icon' href='./home.html' title='" sitio "'><img src='./img/iconocompudanzas_32.png' width=32 height=32 alt='icono de compudanzas'/></a> "
|
||||
print "<a href='https://webring.xxiivv.com/#random' target='_blank' title='webring'><img src='./img/icon.black.svg' width='32' height='32' alt='xxiivv webring'/></a></p>"
|
||||
print "<p><a href='https://wiki.p2pfoundation.net/Peer_Production_License' target=_blank rel=external title='Peer Production License'>peer production license</a></p>"
|
||||
|
|
Loading…
Reference in New Issue