gemtext-like style
This commit is contained in:
parent
6307450708
commit
1607e6dbb7
|
@ -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{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue