Skip to content

Commit

Permalink
Uploading first major revision
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBluesummers committed Jan 17, 2019
1 parent 03c2e1a commit 89aae13
Show file tree
Hide file tree
Showing 28 changed files with 1,165 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
94 changes: 94 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# v1.6.0
## 12/06/2016

1. [](#bugfix)
* Only set fixed-nav class on body element when show_onpage_menu is true [#15](https://github.com/getgrav/grav-theme-bootstrap/pull/15)
* Translate label in custom form field templates
* Add custom styling for login forms

# v1.5.0
## 07/14/2016

1. [](#improved)
* Dropped own version of Bootstrap, rely on the Bootstrapper plugin
* Add the bootstrap-styled email form field twig template
1. [](#bugfix)
* Fix setting the page language in the html tag
* Replace the hardcoded "Grav" title with the actual site title
* Include the correct javascript file that highlights the active section in the menu

# v1.4.1
## 09/16/2015

1. [](#improved)
* Use new form plugin templates

# v1.4.0
## 08/31/2015

1. [](#new)
* Added support for `login-status` partial in menu
* Added support for `langswitcher` plugin
1. [](#improved)
* Use new toggle for item blueprint
* Made sidebar links more robust
1. [](#bugfix)
* Favicon with full image URL
* Fixed sidebar links when site at root

# v1.3.3
## 08/25/2015

1. [](#bugfix)
* Removed a `.DS_Store`

# v1.3.2
## 06/16/2015

1. [](#bugfix)
* Handle page summary properly

# v1.3.1
## 04/13/2015

1. [](#bugfix)
* Fix for image class in modular template 'text.html.twig`


# v1.3.0
## 02/28/2015

2. [](#improved)
* Now relies on Grav 0.9.19+
* Relies on new `bootstrapper` plugin to load Bootstrap CSS and JS

# v1.2.2
## 02/19/2015

2. [](#improved)
* Implemented new `param_sep` variable from Grav 0.9.18

# v1.2.1
## 02/10/2015

1. [](#improved)
* Added demo link to blueprint

# v1.2.0
## 01/26/2015

1. [](#new)
* Extensive updates syncing functionality with current Antimatter theme

# v1.1.4
## 01/09/2015

1. [](#improved)
* NOTE: BREAKING CHANGE - Fixed references to plugins in `partials/` folder
* Updated README.md

# v1.1.3
## 11/09/2014

1. [](#new)
* ChangeLog started...
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 Grav

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
71 changes: 70 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,70 @@
ht_final
# Hypertext Theme

![The Hypertext theme keeps things minimal.](assets/screenshot.png)

**Hypertext** is a [Grav](http://github.com/getgrav/grav) theme that focuses on speed and simplicity by using little-to-no JS or CSS. Hypertext is meant to be used with the latest version of the Grav CMS.

## Features

* Virtually weightless for maximum performance
* CSS/JS squelches to completely cut out any unnecessary stuff
* Fully responsive across almost any device
* Multiple page template types
* Includes `headless` parameter for serving only content

### Supported Page Templates

* Default view template `default.md`
* Error view template `error.md`
* Blog view template `collection.md`
* Blog item view template `item.md`

# Installation

Installing the Hypertext theme can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the theme with a simple terminal command, while the manual method enables you to do so via a zip file.

## GPM Installation (Preferred)

The simplest way to install this theme is via the [Grav Package Manager (GPM)](http://learn.getgrav.org/advanced/grav-gpm) through your system's Terminal (also called the command line). From the root of your Grav install type:

bin/gpm install hypertext

This will install the Hypertext theme into your `/user/themes` directory within Grav. Its files can be found under `/your/site/grav/user/themes/hypertext`.

## Manual Installation

To install this theme, just download the zip version of this repository and unzip it under `/your/site/grav/user/themes`. Then, rename the folder to `hypertext`. You can find these files either on [GitHub](https://github.com/artofthesmart/hypertext) or via [GetGrav.org](http://getgrav.org/downloads/themes).

You should now have all the theme files under

/your/site/grav/user/themes/hypertext

## Default Options

Hypertext comes with a few default options that can be set site-wide. These options are:

```yaml
allowCSS: 0 # Cut out slots for CSS to prevent any _implicit_ CSS from being included (e.g. plugins).
allowJS: 0 # Cut out slots for JS to prevent any _implicit_ JS from being included (e.g. plugins).
tagline: # An optinal tagline to appear under the title of your website
colors:
background: # An optional background color
text: # An optional text color
link: # An optional link color
activeLink: # An optional hover color
visitedLink: # An optional visited color
layout:
configuration: 'centered' # Whether to pull content to the left or center it
width: 768 # The max-width of the theme
style:
inlineNavbar: 1 # When enabled uses in-line navigation (rather than a list).
useFavicon: 0 # When enabled, provides the user with a favicon if one is available.
beautifyText: 0 # When enabled, provides a little CSS for better text spacing.
```
To make modifications, you can copy the `user/themes/hypertext/hypertext.yaml` file to `user/config/themes/` folder and modify, or you can use the admin plugin.

> NOTE: Do not modify the `user/themes/hypertext/hypertext.yaml` file directly or your changes will be lost with any updates

## Override Options
Individual pages have toggles to give you the opportunity to turn on and off global CSS and JS. Useful for preventing plugins from loading except where you want them.
Binary file added assets/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
161 changes: 161 additions & 0 deletions blueprints.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
name: Hypertext
version: 0.1
description: "Hypertext is a zero JS/CSS theme to create simple, fast websites."
icon: compress
author:
name: Alejo Grigera
email: [email protected]
url: http://artofthesmart.com
homepage: https://github.com/artofthesmart/hypertext
demo: http://hypertext.artofthesmart.com
keywords: theme, simple, compliance, fast
bugs: https://github.com/artofthesmart/hypertext/issues
license: MIT

form:
validation: strict
fields:
tabs:
type: tabs
active: 0

fields:
includes:
type: tab
title: CSS & JS
fields:
description:
type: display
size: long
label: Description
markdown: true
content: "This tab lets you control whether or not to include Javascript and CSS during rendering. Removing these cuts down transmission and rendering time by at least 50% for most pages, oftentimes much more. Only turn these on if you're certain that you have a plugin that requires it. Alternatively, you can turn JS/CSS on or off per-page (recommended over turning it on globally)."
allowCSS:
type: toggle
label: Allow global CSS
help: When disabled, prevent global CSS files from loading, e.g. plugins. Some overrides allowed. See documentation.
default: 1
highlight: 0
options:
1: Enabled
0: Disabled
allowJS:
type: toggle
label: Allow global JS
help: When disabled, prevent global JS files from loading, e.g. plugins. Some overrides allowed. See documentation.
default: 1
highlight: 0
options:
1: Enabled
0: Disabled
colors:
type: tab
title: Colors & Typefaces
fields:
description:
type: display
size: long
label: Description
markdown: true
content: "This tab lets you control basic colors. These settings apply regardless of your JS/CSS settings on the other tab or on the page itself. At the bottom you can add your own custom CSS rules (no validation)."
colors.background:
type: colorpicker
label: Background Color
toggleable: true
help: When set to anything but white, this will set a background color for the website.
placeholder: "#FFFFFF"
colors.text:
type: colorpicker
label: Text Color
toggleable: true
help: When set to anything but black, this will set the text color for the website.
placeholder: "#000000"
colors.link:
type: colorpicker
label: Link Color
toggleable: true
help: When set to anything but blue, this will set a link color for the website.
placeholder: "#0000EE"
colors.visitedLink:
type: colorpicker
label: Visited Link Color
toggleable: true
help: When set to anything but purple, this will set a visited link color for the website.
placeholder: "#551A8B"
colors.activeLink:
type: colorpicker
label: Clicked Link Color
toggleable: true
help: When set to anything but red, this will set a hovered link color for the website.
placeholder: "#EE0000"
customCSS:
type: textarea
label: Custom CSS
toggleable: true
help: Add your custom CSS rules here.
size: large
style:
type: tab
title: Style & Formatting
fields:
description:
type: display
size: long
label: Description
markdown: true
content: "This tab lets you control some of the look and feel of the site. There are a few, universally supported declarations that add <1KB but greatly enhance the readability and aesthetic of your site. You can enable and disable those features here"
layout.configuration:
type: select
size: medium
classes: fancy
label: General site layout
help: Configures the general layout of the website horizontally.
options:
default: No style (align left)
centered: Centered
layout.width:
type: select
size: medium
classes: fancy
label: Maximum website width
help: Caps the website's maximum width for viewing on very large screens.
options:
default: No style (full width)
640: 640px (very small)
768: 768px (small)
960: 960px (medium)
1024: 1024px (large)
1280: 1280px (very large)
style.inlineNavbar:
type: toggle
label: Use inline navigation
help: When enabled, the navigation lists will be inline instead of <ul>.
default: 1
highlight: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
style.useFavicon:
type: toggle
label: Use favicon
help: When enabled, the site will feed a favicon to the user if present.
default: 0
highlight: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
style.beautifyText:
type: toggle
label: Beautify text
help: When enabled, this will add a couple declarations to give your text more space.
default: 0
highlight: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
Loading

0 comments on commit 89aae13

Please sign in to comment.