added first version of og info

This commit is contained in:
sejo 2021-06-17 18:49:27 -05:00
parent e756debc43
commit fd07e0129f
2 changed files with 14 additions and 0 deletions

View File

@ -12,6 +12,7 @@
BEGIN{
sitio = "compudanzas"
descripcion = "human-powered explorations of emergent complexity"
# para poder abrir y cerrar <ul>, <pre>, <p>:
modo_lista = 0
modo_pre = 0
@ -35,6 +36,9 @@ BEGIN{
print " <link rel='icon' href='./img/iconocompudanzas_32.png' type='image/png' sizes='32x32'> "
print " <link rel='icon' href='./img/iconocompudanzas_64.png' type='image/png' sizes='64x64'> "
print "<meta property='og:type' content='website' />"
print "<meta property='og:image' content='https://compudanzas.net/img/iconocompudanzas_128_w.png'>"
contenido = "<main><section>"
nav = "<nav><ul>"
}
@ -75,6 +79,16 @@ function nombre2Link( t, r ){ # convierte un nombre con espacios, a uno con r (e
NR == 1{
titulo = $0
sub("#[[:blank:]]+","",titulo) #prefijo
archivo = FILENAME
sub(/^.+\//,"",archivo) # remove path from filename
sub(/.gmo$/,".html",archivo) #change extension
print "<meta property='og:title' content='" sitio " &mdash; " titulo "'>"
print "<meta property='og:description' content='" descripcion " '>"
print "<meta property='og:url' content='https://compudanzas.net/" archivo "'>"
print "<title>" sitio " &mdash; " titulo "</title>"
print "</head>"
print "<body>"

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB