Skip to content

Commit

Permalink
#13 rename theme from minimal to hadron
Browse files Browse the repository at this point in the history
  • Loading branch information
chraebsli authored Sep 26, 2024
1 parent 0d2f688 commit 509839c
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 32 deletions.
15 changes: 10 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# v1.2.0
# 2.0.0
## _unreleased_

1. [](#improved)
* Rename theme from `Minimal` to `Hadron`

# 1.2.0
## 27-05-2024

1. [](#new)
Expand All @@ -7,20 +13,19 @@
2. [](#improved)
* Add options for sidebar in admin panel

# v1.1.0
# 1.1.0
## 13-05-2024

1. [](#new)
* English and German translations
* Full English and German translations
* Remove Git Sync plugin options
2. [](#improved)
* Enhance Blog summary
* Show header image in blog list

# v1.0.0
# 1.0.0
## 17-04-2024

1. [](#new)
* Initial release
* responsive tables
* healthcheck plugin
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
# Minimal Theme

The **Minimal** Theme is for [Grav CMS](http://github.com/getgrav/grav).
# Hadron Theme
modern Grav theme based on Quark with advanced features and styles

## Description

Simple Theme for Grav CMS, depending on Quark and Quark Open Publishing. Minimalistic, clean and responsive. Enhances the Quark theme with additional features and styles.

**This theme has to be used as a child theme with Quark and/or Quark Open Publishing.**
Hadron is a modern [Grav](https://getgrav.org) theme based on [Quark](https://github.com/getgrav/grav-theme-quark). As a child/ inherited theme of Quark, it includes more advanced features than the original Quark theme. It also offers advanced styling options.

## Features

- makes tables responsive on small screens
- german translations for everything
- enhanced blog options
- more enhancements to the Quark and Quark Open Publishing theme
_coming soon_
17 changes: 8 additions & 9 deletions blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
name: Minimal
slug: minimal
name: Hadron
slug: hadron
type: theme
version: 1.2.0
description: 'Simple Theme for Grav CMS, depending on Quark and Quark Open Publishing. Minimalistic, clean and responsive. Enhances the Quark theme with additional features and styles.'
icon: star
description: 'Hadron is a modern Grav theme based on Quark. As a child/ inherited theme of Quark, it includes more advanced features than the original Quark theme. It also offers advanced styling options.'
icon: circle
author:
name: 'Crabston GmbH'
email: [email protected]
url: 'https://crabston.dev'
homepage: https://github.com/Crabston/grav-theme-minimal
homepage: https://github.com/Crabston/grav-theme-hadron
demo: https://grav.demo.crabston.dev
keywords: grav, theme, minimal, quark, quark-open-publishing
bugs: https://github.com/Crabston/grav-theme-minimal/issues
readme: https://github.com/Crabston/grav-theme-minimal/blob/main/README.md
keywords: grav, theme, hadron, quark, modern, advanced, styling, options
bugs: https://github.com/Crabston/grav-theme-hadron/issues
readme: https://github.com/Crabston/grav-theme-hadron/blob/main/README.md
license: MIT

dependencies:
- { name: grav, version: '>=1.6.0' }
- quark-open-publishing
- quark
2 changes: 1 addition & 1 deletion css/minimal.css → css/hadron.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions css/hadron.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion css/minimal.css.map

This file was deleted.

4 changes: 3 additions & 1 deletion minimal.php → hadron.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
use Grav\Common\Grav;
use Grav\Common\Theme;

class Minimal extends QuarkOpenPublishing
// TODO: extend Quark theme instead of QuarkOpenPublishing
class Hadron extends QuarkOpenPublishing
{
public static function getSubscribedEvents() {
return [
Expand All @@ -16,6 +17,7 @@ public function onTwigLoader() {
parent::onTwigLoader();

// add parent theme as namespace to twig
// TODO: extend Quark theme instead of QuarkOpenPublishing
$parentThemeName = 'quark-open-publishing';
$parentThemePath = Grav::instance()['locator']->findResource('themes://' . $parentThemeName);
$this->grav['twig']->addPath($parentThemePath . DIRECTORY_SEPARATOR . 'templates', $parentThemeName);
Expand Down
4 changes: 2 additions & 2 deletions minimal.yaml → hadron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ streams:
type: ReadOnlyStream
prefixes:
'':
- user/themes/minimal
- user/themes/quark-open-publishing
- user/themes/hadron
- user/themes/quark-open-publishing # TODO: remove
- user/themes/quark

enabled: true
Expand Down
Binary file modified screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
2 changes: 1 addition & 1 deletion templates/partials/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{% if theme_var('spectre.icons') %}{% do assets.addCss('theme://css-compiled/spectre-icons'~compress) %}{% endif %}
{% do assets.addCss('theme://css-compiled/theme'~compress) %}
{% do assets.addCss('theme://css/theme.css',100) %}
{% do assets.addCss('theme://css/minimal.css') %}
{% do assets.addCss('theme://css/hadron.css') %}
{% do assets.addCss('theme://css/custom.css') %}
{% do assets.addCss('theme://css/line-awesome.min.css') %}
{% endblock %}
Expand Down
Binary file modified thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 509839c

Please sign in to comment.