Skip to content

Commit

Permalink
Add more metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
htv04 committed Feb 20, 2024
1 parent 2c40712 commit 499842e
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 34 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,23 @@
# htv04.github.io Makefile

# Phony targets
.PHONY: all pages run clean
.PHONY: all pages images run clean

# Full website (default)
all: root pages
all: root images pages

# Pages
pages: root/favicon.ico root/index.html
pages: images root/favicon.ico root/index.html
root/%.html: src/pages/%.md root
pandoc $< -f markdown --wrap=none --template=src/pages/template.html -t html -o $@
root/favicon.ico: src/pages/favicon.ico root
cp $< $@

# Images
images: root/images
root/images: src/pages/images root
cp -r $< $@

# Website root
root:
mkdir root
Expand Down
Binary file added root/images/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 22 additions & 14 deletions root/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@
<!-- htv04.com: HTV04’s Website -->
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="author" content="HTV04" />
<meta name="dcterms.date" content="February 20, 2024" />
<meta name="description" content="Fire in the hole!" />
<title>HTV04’s Website</title>
<link rel="shortcut icon" href="/favicon.ico">
<!-- TODO -->
<style>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://htv04.com/" />
<meta property="og:image" content="https://htv04.com/images/banner.png" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://htv04.com/" />
<meta property="twitter:image" content="https://htv04.com/images/banner.png" />
<meta name="author" content="HTV04" />
<meta name="dcterms.date" content="February 20, 2024" />
<meta name="description" content="Fire in the hole!" />
<meta property="og:description" content="Fire in the hole!" />
<meta property="twitter:description" content="Fire in the hole!" />
<title>HTV04’s Website</title>
<link rel="shortcut icon" href="/favicon.ico">
<!-- TODO -->
<style>
body {
background-color: mediumslateblue;
font-family: sans-serif;
Expand All @@ -35,10 +43,10 @@
body a:visited {
color: peru;
}
</style>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</style>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<span style="text-align:center">
Expand Down
Binary file added src/pages/images/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 30 additions & 17 deletions src/pages/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,38 @@
<!-- htv04.com: $title$ -->
<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://htv04.com/" />
<meta property="og:image" content="https://htv04.com/images/banner.png" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://htv04.com/" />
<meta property="twitter:image" content="https://htv04.com/images/banner.png" />
$if(title-prefix)$
<meta name="title" content="$title-meta$" />
<meta property="og:title" content="$title-meta$" />
<meta property="twitter:title" content="$title-meta$" />
$endif$
$for(author-meta)$
<meta name="author" content="$author-meta$" />
<meta name="author" content="$author-meta$" />
$endfor$
$if(date-meta)$
<meta name="dcterms.date" content="$date-meta$" />
<meta name="dcterms.date" content="$date-meta$" />
$endif$
$if(keywords)$
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
$endif$
$if(description-meta)$
<meta name="description" content="$description-meta$" />
<meta name="description" content="$description-meta$" />
<meta property="og:description" content="$description-meta$" />
<meta property="twitter:description" content="$description-meta$" />
$endif$
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<link rel="shortcut icon" href="/favicon.ico">
<!-- TODO -->
<style>
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<link rel="shortcut icon" href="/favicon.ico">
<!-- TODO -->
<style>
body {
background-color: mediumslateblue;
font-family: sans-serif;
Expand All @@ -44,22 +57,22 @@
body a:visited {
color: peru;
}
</style>
</style>
$for(css)$
<link rel="stylesheet" href="$css$" />
<link rel="stylesheet" href="$css$" />
$endfor$
$for(header-includes)$
$header-includes$
$endfor$
$if(math)$
$if(mathjax)$
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
$endif$
$math$
$endif$
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<span style="text-align:center">
Expand Down

0 comments on commit 499842e

Please sign in to comment.