Add some basic shit
This commit is contained in:
parent
2a2cbe11f4
commit
32f15bb3af
6
.htaccess
Normal file
6
.htaccess
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
RedirectMatch 404 /\.git
|
||||||
|
RedirectMatch 404 /\.templates
|
||||||
|
RedirectMatch 404 /src
|
||||||
|
RedirectMatch 404 /README.md
|
||||||
|
RedirectMatch 404 /LICENSE
|
||||||
|
RedirectMatch 404 /*.sh
|
10
deploy.sh
Executable file
10
deploy.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
#
|
||||||
|
# post-deploy.sh
|
||||||
|
# Copyright (C) 2020 Vintage Salt <rehashedsalt@cock.li>
|
||||||
|
#
|
||||||
|
# Distributed under terms of the MIT license.
|
||||||
|
#
|
||||||
|
|
||||||
|
ssh -t salt@www.9iron.club sudo git -C /var/www/www pull
|
||||||
|
|
8
index.php
Normal file
8
index.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
17
src/meta.php
Normal file
17
src/meta.php
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<!-- Meta -->
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<!-- No FOUC -->
|
||||||
|
<style type="text/css">
|
||||||
|
.no-fouc {display: none;}
|
||||||
|
</style>
|
||||||
|
<script type="text/javascript">
|
||||||
|
document.documentElement.classname = 'no-fouc';
|
||||||
|
window.addEventListener("load", function(event) {
|
||||||
|
// No flash of unstyled content
|
||||||
|
nf = document.getElementsByClassName('no-fouc');
|
||||||
|
for (i = 0, len = nf.length; i < len; i++) {
|
||||||
|
nf[i].removeClass('no-fouc');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
Loading…
Reference in New Issue
Block a user