14 lines
317 B
PHP
14 lines
317 B
PHP
<?php
|
|
|
|
class Hugo extends PatchBase {
|
|
function __construct() {
|
|
parent::__construct('Hugo Authors', 'Hugo', 'https://gohugo.io/');
|
|
}
|
|
function check() : bool {
|
|
if ($this->fetch('https://api.github.com/repos/gohugoio/hugo/releases/latest', true))
|
|
return $this->parse_json('tag_name');
|
|
return false;
|
|
}
|
|
}
|
|
|
|
?>
|