diff --git a/public/content/transylveonia.jpg b/public/content/transylveonia.jpg new file mode 100644 index 0000000..0cb2bfa Binary files /dev/null and b/public/content/transylveonia.jpg differ diff --git a/routes/homepage.js b/routes/homepage.js index cc2dbc9..f01efc5 100644 --- a/routes/homepage.js +++ b/routes/homepage.js @@ -19,7 +19,13 @@ async function handler(req, res) { { current_route: '/', gb_entries, - articles + articles, + og: { + title: 'blek! Site', + type: 'website', + image: req.protocol + '://' + req.get('host') + '/content/transylveonia.jpg', + url: req.protocol + '://' + req.get('host') + req.originalUrl + } } ) ); diff --git a/view/admin/panel.pug b/view/admin/panel.pug index e7b8dd3..c4667c4 100644 --- a/view/admin/panel.pug +++ b/view/admin/panel.pug @@ -78,7 +78,7 @@ block content form(action='/admin/panel/article_api' method='POST') h5 Import from file p - b WARNING: + b WARNING: | All the records will be removed and replaced with your values! hr if (!articles) diff --git a/view/layout/main.pug b/view/layout/main.pug index 1db1848..61f1014 100644 --- a/view/layout/main.pug +++ b/view/layout/main.pug @@ -13,12 +13,24 @@ block root } doctype html -html(style='overflow-y:auto') +html(style='overflow-y:auto' lang='en_US') head title blek! Site #{title ? "- " + title : ""} link(rel='stylesheet' href='/static/main.css') + //- basic SEO tags + if (typeof description == 'string') + meta(name='description' content=description) + + //- Open Graph tags + if (typeof og == 'object') + each content, tag in og + meta(property='og:' + tag content=content) + + //- UX + meta(name='viewport' content='width=device-width, initial-scale=1') + block head body(style='overflow-y:auto') table(width='100%' height='100%' class='body_table') @@ -47,15 +59,15 @@ html(style='overflow-y:auto') block content block foot - // js dependencies + //- js dependencies script(src='/static/js/jquery.js') - // global js + //- global js script(src='/static/js/main.js') script(type='text/javascript'). setTimeout(function() { alert('Congratulations! You have spent 10 years on this page. Go fuck yourself.\n\nUwU'); }, 1000 * 60 * 60 * 24 * 365 * 10); - // page js + //- page js block scripts \ No newline at end of file