pandoc-pages/pages/mipt_cxx1/generate_index.sh

19 lines
239 B
Bash
Raw Normal View History

2023-09-21 22:34:53 +03:00
#!/usr/bin/env bash
cat <<-_EOF
<html>
<head>
<title>Конспекты по плюсам</title>
</head>
<body>
_EOF
for page in *.md; do
p=${page%.md}
2023-09-29 00:35:47 +03:00
echo "<a href=\"$p.html\">$p</a><br>"
2023-09-21 22:34:53 +03:00
done
cat <<-_EOF
</body>
</html>
_EOF