added simple opengraph support

This commit is contained in:
/dev/urandom 2020-05-27 16:19:57 +03:00
parent 7cb7cd08be
commit 34d8c836c9
2 changed files with 5 additions and 1 deletions

View file

@ -28,7 +28,7 @@ upload:
$(OUTDIR)/%.html: $(PAGEDIR)/%.md $(TPLDIR)/default.tpl
@mkdir -p $(@D)
theme -C style -t $(TPLDIR)/default.tpl -o $@ $<
theme -C style -t $(TPLDIR)/default.tpl -p $(patsubst $(OUTDIR)/%,%,$@) -o $@ $<
$(OUTDIR)/%: static/%.h
@mkdir -p $(@D)

View file

@ -4,6 +4,10 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?theme title?></title>
<meta property="og:site_name" content="rnd's website"/>
<meta property="og:title" content="<?theme title?>"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://rnd.neocities.org/<?theme dir?><?theme source?>"/>
<link href="/style.css" rel="stylesheet" type="text/css" media="all">
<link href="xstyle.css" rel="stylesheet" type="text/css" media="all">
<link rel="icon" type="image/png" href="favicon.png">