Compare commits

..

11 Commits

Author SHA1 Message Date
dependabot[bot]
156e6d4caf Bump follow-redirects from 1.14.1 to 1.14.8
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.1 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.1...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-12 01:50:36 +00:00
9ab551f335 style changes to tweets and tables 2022-01-16 21:35:21 +00:00
30e2b890cf 1.0.1 2021-07-30 21:12:37 +01:00
dfabac5c2f Add styles for figcaption 2021-07-30 21:12:14 +01:00
292b660138 use ems for media queries 2021-07-30 21:03:03 +01:00
88b08e3fc9 1.0.0 2021-07-30 20:53:03 +01:00
2c0be36e02 audit dependencies 2021-07-30 20:52:50 +01:00
eeb73fb393 1.0.0-RC.8 2020-06-24 19:28:19 +01:00
1b137868fb remove jquery 2020-06-24 19:27:58 +01:00
05deb182e8 add description metadata 2020-06-24 19:25:22 +01:00
c076620755 update dependencies 2020-06-24 18:04:47 +01:00
7 changed files with 7325 additions and 5945 deletions

View File

@@ -93,7 +93,7 @@ upAll(dockerOptions).then(
}
},
err => {
process.strerr.write(`Error: ${err.message}\n`);
process.stderr.write(`Error: ${err.message}\n`);
process.exit(1);
},
);

View File

@@ -104,6 +104,7 @@
.content .twitter-tweet {
width: auto !important;
margin: 0 auto;
}
.content .wp-caption {
@@ -127,8 +128,7 @@
@media (--viewport-md) {
.content .twitter-tweet,
.content .wp-caption {
margin: 0 0 var(--space-md);
padding: var(--space-md);
padding: var(--space-sm) var(--space-md);
}
}
@@ -147,6 +147,19 @@
font-size: 0.8rem;
}
.content .wp-block-table {
display: flex;
flex-direction: column;
align-items: center;
}
.content figcaption {
font-size: var(--size-body-extra-small);
font-style: italic;
text-align: center;
color: var(--color-dark-blue);
}
.content table {
border-collapse: collapse;
table-layout: fixed;
@@ -165,12 +178,8 @@
}
}
.content th,
.content tr,
.content td {
border-width: 0 0 1px;
border-style: solid;
border-color: var(--color-dark-blue);
border: 1px solid var(--color-dark-blue);
padding: var(--space-xs);
}

View File

@@ -71,8 +71,8 @@
--bullet-size: 0.45rem;
}
@custom-media --viewport-sm (min-width: 30rem);
@custom-media --viewport-md (min-width: 40rem);
@custom-media --viewport-lg (min-width: 60rem);
@custom-media --viewport-xl (min-width: 75rem);
@custom-media --viewport-sm (min-width: 30em);
@custom-media --viewport-md (min-width: 40em);
@custom-media --viewport-lg (min-width: 60em);
@custom-media --viewport-xl (min-width: 75em);
@custom-media --viewport-wordpress-admin-bar (min-width: 783px);

13159
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "windycoys",
"version": "1.0.0-RC.7",
"version": "1.0.1",
"description": "Wordpress theme for windycoys.com",
"author": "Dan Head <me@danielhead.com>",
"license": "MIT",
@@ -28,42 +28,42 @@
"watch:js": "nodemon -q --watch js -e js --exec npm run js"
},
"dependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@babel/cli": "^7.14.8",
"@babel/core": "^7.10.3",
"@babel/preset-env": "^7.10.3",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^24.1.0",
"browser-sync": "^2.26.7",
"babel-jest": "^26.1.0",
"browser-sync": "^2.27.5",
"cssnano": "^4.1.10",
"docker-compose": "^0.12.0",
"eslint": "^5.15.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.2.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-prettier": "^3.1.4",
"husky": "^1.3.1",
"imagemin": "^6.1.0",
"imagemin-gifsicle": "^6.0.1",
"imagemin-jpegtran": "^6.0.0",
"imagemin-pngquant": "^7.0.0",
"jest": "^24.1.0",
"lint-staged": "^8.1.5",
"mysql": "^2.16.0",
"nodemon": "^1.18.10",
"jest": "^26.1.0",
"lint-staged": "^8.2.1",
"mysql": "^2.18.1",
"nodemon": "^2.0.4",
"npm-run-all": "^4.1.5",
"postcss-banner": "^3.0.1",
"postcss-cli": "^6.1.2",
"postcss-banner": "^3.0.2",
"postcss-cli": "^7.1.1",
"postcss-import": "^12.0.1",
"postcss-normalize": "^7.0.1",
"postcss-preset-env": "^6.6.0",
"prettier": "^1.16.4",
"rollup": "^1.4.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-uglify": "^6.0.2",
"stylelint": "^9.10.1",
"stylelint-config-prettier": "^5.0.0",
"stylelint-config-standard": "^18.2.0",
"stylelint-prettier": "^1.0.6"
"postcss-preset-env": "^6.7.0",
"prettier": "^1.19.1",
"rollup": "^1.32.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-uglify": "^6.0.4",
"stylelint": "^13.6.1",
"stylelint-config-prettier": "^5.3.0",
"stylelint-config-standard": "^18.3.0",
"stylelint-prettier": "^1.1.2"
},
"husky": {
"hooks": {

View File

@@ -151,6 +151,23 @@ function windycoys_is_ie() {
return false;
}
function windycoys_first_sentence($string) {
$sentence = preg_split( '/(\.|!|\?)\s/', $string, 2, PREG_SPLIT_DELIM_CAPTURE );
return $sentence['0'] . $sentence['1'];
}
function windycoys_get_description($post_id) {
if (get_post_type() == "post") {
$post = get_post($post_id);
$content = (strlen($post->post_excerpt) === 0) ?
strip_tags(windycoys_first_sentence($post->post_content)) :
$post->post_excerpt;
return $content;
} else {
return get_bloginfo('description');
}
}
function windycoys_jetpack_custom_image($media, $post_id, $args) {
if ($media) {
return $media;
@@ -169,3 +186,11 @@ function windycoys_jetpack_custom_image($media, $post_id, $args) {
}
}
add_filter('jetpack_images_get_images', 'windycoys_jetpack_custom_image', 10, 3);
function windycoys_strip_scripts(&$scripts) {
if(!is_admin()){
$scripts->remove('jquery');
}
}
add_filter('wp_default_scripts', 'windycoys_strip_scripts');

View File

@@ -11,6 +11,7 @@ $manifest = get_template_directory_uri() . '/manifest.json';
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' &laquo; '; } ?> <?php bloginfo('name'); ?></title>
<meta name="description" content="<?php echo windycoys_get_description(get_the_id()) ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#201f42">
<?php wp_head(); ?>