gemtext-like style

This commit is contained in:
sejo 2021-11-22 21:38:30 -06:00
parent 6307450708
commit 1607e6dbb7
2 changed files with 8 additions and 5 deletions

View File

@ -30,7 +30,6 @@ BEGIN{
print "<head>"
print "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />"
print "<meta content='initial-scale=1.0' name='viewport'/>"
# print "<meta http-equiv='onion-location' content='http://chhhqibec5pvmyxmdobfdx33xhhtbla5lvrs2fgn7knh7kaaz4kgylad.onion.onion' />"
#
print "<link rel='me' href='https://sunbeam.city/@compudanzas'>"
print "<link rel='me' href='https://post.lurk.org/@compudanzas'>"
@ -188,14 +187,14 @@ NR == 1{
sub("}","",texto)
# crea link <a>
appendContenido("<p><a href='"$1"'>"texto"</a></p>")
appendContenido("<p><a href='"$1"' class=arrow>"texto"</a></p>")
}
else{
appendContenido("<p><a href='"$1"'>"texto"</a></p>")
appendContenido("<p><a href='"$1"' class=arrow>"texto"</a></p>")
}
}
else{ # link externo
appendContenido("<p><a href='"$1"' rel='external noreferrer noopener' target=_blank>"texto"</a></p>")
appendContenido("<p><a href='"$1"' rel='external noreferrer noopener' target=_blank class=arrow>"texto"</a></p>")
}
}
else{

View File

@ -1,6 +1,10 @@
/* links externos */
a[rel^=external]:after{ content: "↗"; }
/* gemtext-like format */
h1:before{ content: "# "; }
h2:before{ content: "## "; }
h3:before{ content: "### "; }
a.arrow:before{ content: "⇒ "; }
body{
max-width:36em;
margin:0 auto;