Add content block to page layout

This commit is contained in:
Konstantin Nazarov 2021-08-21 22:48:36 +01:00
parent d231402c7d
commit 2054e63081
Signed by: knazarov
GPG key ID: 4CFE0A42FA409C22
2 changed files with 3 additions and 1 deletions

View file

@ -4,7 +4,7 @@
#awk -v today="$TODAY" '{print today}' #awk -v today="$TODAY" '{print today}'
present() { present() {
grep "$TODAY" | grep GET | awk '($9 !~ /404/)' | awk '{print $7}' | sed 's/\?.*$//g' | grep -v -E "\.php|\.xml|http:" | sed 's:\(.\)/$:\1:' | sort | uniq -c | sort -rn grep "$TODAY" | grep GET | awk '($9 !~ /404/)' | awk '{print $7}' | sed 's/\?.*$//g' | grep -v -E "\.php|\.xml|http:|acme-challenge" | sed 's:\(.\)/$:\1:' | sort | uniq -c | sort -rn
} }
if [ "$1" == "--today" ]; then if [ "$1" == "--today" ]; then

View file

@ -26,9 +26,11 @@ expand() {
<a href="/about">about</a> <a href="/about">about</a>
<a href="/contact">contact</a> <a href="/contact">contact</a>
</div> </div>
<div id="content">
EOF EOF
cat cat
cat <<-"EOF" cat <<-"EOF"
</div>
</body> </body>
</html> </html>
EOF EOF