additional cleanups
This commit is contained in:
parent
cf515b1d6a
commit
55c26f627f
5 changed files with 21 additions and 22 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
|||
flickr.json
|
||||
.*.json
|
||||
|
|
|
@ -15,7 +15,7 @@ Org and site data are in JSON-LD files in `site.json` and `org.json`. Each page
|
|||
|
||||
## Example `flickr.json`
|
||||
|
||||
The required `flickr.json` file is not in the repository, because it contains and API key. It shoudl look like this:
|
||||
The required `.flickr.json` file is not in the repository, because it contains and API key. It should look like this:
|
||||
|
||||
```json
|
||||
{
|
||||
|
|
29
index.php
29
index.php
|
@ -28,7 +28,7 @@ function make_gallery() {
|
|||
return True;
|
||||
}
|
||||
|
||||
$flickr = json_decode(file_get_contents('flickr.json'), TRUE);
|
||||
$flickr = json_decode(file_get_contents('.flickr.json'), TRUE);
|
||||
$flickr['method'] = "flickr.photosets.getPhotos";
|
||||
$flickr['extras'] = "media,url_m,url_l";
|
||||
$flickr['per_page'] = "500";
|
||||
|
@ -179,25 +179,24 @@ $site['mainEntity'] = &$meta;
|
|||
|
||||
?><html lang="<?php echo($meta['inLanguage']); ?>"><head>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://raw.githubusercontent.com/aFarkas/html5shiv/master/dist/html5shiv-printshiv.min.js"></script>
|
||||
<script src="html5shiv-printshiv.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<title><?php echo($meta['headline']); ?></title>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1" />
|
||||
<meta name="author" content="<?php echo($org['name']) ?>" />
|
||||
<link rel="icon" href="<?php echo($site['url']); ?>favicon.png" />
|
||||
<link rel="shortcut icon" type="image/png" href="<?php echo($site['url']); ?>favicon.png">
|
||||
<link rel="canonical" href="<?php echo($meta['url']); ?>">
|
||||
<meta name="google-site-verification" content="ERSaggz54vqmGW679dGszh79X7lO51I2jNQhY30-oEg">
|
||||
<meta name="description" content="<?php echo($meta['description']); ?>">
|
||||
<meta name="keywords" content="<?php echo($meta['keywords']); ?>">
|
||||
<meta property="og:title" content="<?php echo($meta['headline']); ?>">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="<?php echo($meta['url']); ?>">
|
||||
<meta property="og:description" content="<?php echo($meta['description']); ?>">
|
||||
<meta property="og:site_name" content="<?php echo($site['name']); ?>">
|
||||
<meta property="og:image" content="https://static.wixstatic.com/media/80d0c2_39d26f9a66974eadbe85d107a0bb971d~mv2.png">
|
||||
<link rel="icon" href="<?php echo($site['image']); ?>" />
|
||||
<link rel="shortcut icon" type="image/png" href="<?php echo($site['image']); ?>" />
|
||||
<link rel="canonical" href="<?php echo($meta['url']); ?>" />
|
||||
<meta name="google-site-verification" content="ERSaggz54vqmGW679dGszh79X7lO51I2jNQhY30-oEg" />
|
||||
<meta name="description" content="<?php echo($meta['description']); ?>" />
|
||||
<meta name="keywords" content="<?php echo($meta['keywords']); ?>" />
|
||||
<meta property="og:title" content="<?php echo($meta['headline']); ?>" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="<?php echo($meta['url']); ?>" />
|
||||
<meta property="og:description" content="<?php echo($meta['description']); ?>" />
|
||||
<meta property="og:site_name" content="<?php echo($site['name']); ?>" />
|
||||
<meta property="og:image" content="<?php echo($site['image']) ?>" />
|
||||
<meta property="article:published_time" content="<?php echo($meta['datePublished']); ?>">
|
||||
<meta property="article:modified_time" content="<?php echo($meta['dateModified']); ?>">
|
||||
<meta property="article:author" content="<?php echo($org['name']); ?>">
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
"name": "pakuauk.com",
|
||||
"image": "https://pakuauk.com/favicon.png",
|
||||
"sameAs": [
|
||||
"https://www.facebook.com/PaKuaUK",
|
||||
"https://www.twitter.com/pakuauk",
|
||||
"https://www.youtube.com/pakuauk",
|
||||
"https://facebook.com/PaKuaUK",
|
||||
"https://twitter.com/pakuauk",
|
||||
"https://youtube.com/pakuauk",
|
||||
"https://instagram.com/pakuauk",
|
||||
"https://www.eventbrite.co.uk/o/pa-kua-international-school-19817765035"
|
||||
]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;
|
||||
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 1.5em;
|
||||
|
@ -337,7 +337,7 @@ main ul li {
|
|||
width: 50%;
|
||||
top: 1em;
|
||||
bottom: 1em;
|
||||
background-image:url('https://static.wixstatic.com/media/80d0c2_0ac5f36579244b7cb4b80beccee32ac9.png/v1/fill/w_480,h_680,al_c,usm_0.66_1.00_0.01/80d0c2_0ac5f36579244b7cb4b80beccee32ac9.png');
|
||||
background-image:url('image/background-school.jpg');
|
||||
background-position: center;
|
||||
z-index: 1;
|
||||
background-size:cover;
|
||||
|
|
Loading…
Reference in a new issue