Git Product home page Git Product logo

grav-theme-agency's Introduction

Agency Theme for Grav

Agency

This Grav theme is a port of the Jekyll Agency theme by Rick Kim (y7kim), which originated from the Agency Bootstrap theme by Start Bootstrap.

Features

  • Fully responsive
  • Custom collapsing navigation with active classes, smooth page scrolling, and responsive fallback stylings
  • Services section with CSS only circle icons by Font Awesome
  • Portfolio grid with modal window popup previews for portfolio item details
  • About section with a responsive timeline, special thanks to Bootsnipp
  • Team member section with circle profile images and social media links
  • Working PHP contact form with validation
  • Footer with social links, copyright information, and other links
  • LESS files included for deeper customization options

Installation

Installing the Agency 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.

The theme by itself is useful, but you may have an easier time getting up and running by installing a skeleton. The Agency Site Skeleton is a self-contained repository for a complete sites which includes: sample content, configuration, theme, and plugins.

GPM Installation (Preferred)

The simplest way to install this theme is via the Grav Package Manager (GPM) through your system's Terminal (also called the command line). From the root of your Grav install type:

bin/gpm install agency

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

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 agency. You can find these files either on GitHub or via GetGrav.org.

You should now have all the theme files under

/your/site/grav/user/themes/agency

NOTE: This theme is a modular component for Grav which requires the Grav, Error and Problems plugins.

Updating

As development for the Agency theme continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating Agency is easy, and can be done through Grav's GPM system, as well as manually.

GPM Update (Preferred)

The simplest way to update this theme is via the Grav Package Manager (GPM). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:

bin/gpm update agency

This command will check your Grav install to see if your Agency theme is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type y and hit enter. The theme will automatically update and clear Grav's cache.

Manual Update

Manually updating Agency is pretty simple. Here is what you will need to do to get this done:

  • Delete the your/site/user/themes/agency directory.
  • Download the new version of the Agency theme from either GitHub or GetGrav.org.
  • Unzip the zip file in your/site/user/themes and rename the resulting folder to agency.
  • Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in terminal and typing bin/grav clear-cache.

Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in user/config/themes) will remain intact.

Setup

If you want to set Agency as the default theme, you can do so by following these steps:

  • Navigate to /your/site/grav/user/config.
  • Open the system.yaml file.
  • Change the theme: setting to theme: agency.
  • Save your changes.
  • Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in Terminal and typing bin/grav clear-cache.

Once this is done, you should be able to see the new theme on the frontend. Keep in mind any customizations made to the previous theme will not be reflected as all of the theme and templating information is now being pulled from the agency folder.

grav-theme-agency's People

Contributors

btopro avatar cedroux avatar eisenherzz avatar flaviocopes avatar hexplor avatar olevik avatar rhukster avatar ricardo118 avatar ryanmpierson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grav-theme-agency's Issues

Grav debug bar fails to show

Since the update from v1.4 -> v1.5 of this theme the Grav debug bar no longer shows. A number of messages appear in the console, the first of which is:

Uncaught ReferenceError: jQuery is not defined
    at debugbar.js:4

I think that this may be occurring due to the moving around of where assets are loaded within the template. It looks as though jQuery is now loaded in the 'bottom' group of assets and I think that the debug bar is trying to load it's JavaScript before jQuery.

I think that this may also cause some issues for other plugins etc. which may require jQuery to be loaded earlier.

Linking Menu and Color

I'm not sure if this is dead here but two dumb questions:

  • How do I link a new page in the top menu? How are they referenced? I see the '#teams' in site.yaml but when I put in something new for a new modular page I added the link never works.

  • What does the Color Setting in the Theme do? I doesnt seem to change anything.
    thanks in advance

Add captcha even when no 'position' is defined for the field

When adding a captcha field, users might not add a value for 'position' since the captcha is not being displayed at all as field.

When no position is given the captcha field is being ignored by the form.html.twig template.

Suggestion: Add captcha when defined with or without position.

Btw. same also applies to other fields which are not supposed to be displayed like the honeypot field

Form doesn't work at all: missing include {% include 'partials/form-messages.html.twig' %}?

Hello contact form doesn't work with GRAV 1.6x. I read the old issues, but nothing really works. While looking at \user\themes\agency\templates\modular\form.html.twig I noticed various includes on line 14, 48, 58, 64, etc. which aren't available at all (48, 58 are some variable generated ones).:

14 {% include 'partials/form-messages.html.twig' %}
48 {% include "forms/fields/#{field.type}/#{field.type}.html.twig" ignore missing %}
58 {% include "forms/fields/#{field.type}/#{field.type}.html.twig" ignore missing %}
64 {% include "forms/fields/formname/formname.html.twig" %}

multilingual support for navigation bar

Hello,

It seems that the theme doesn't support multilingual content, i.e. the navigation bar items (about, portfolio, etc...) cannot be displayed in another language. Any tips to work around that?

Agency theme skeleton form's not working

Hi,

I've been having the toughest time trying to get the forms to show up properly in the agency theme skeleton page. When I go to "simple_form.yaml" to set "enabled: true" I get the following error.

E_COMPILE_ERROR - Access level to Grav\Plugin\Simple_FormPlugin::mergeConfig() must be protected (as in class Grav\Common\Plugin) or weaker

I'm not much of a web programmer and can't really debug this myself. Would it be possible to update the skeleton to fix the issue?

Typo in block name

In templates/partials/base.html.twig there is a block named "javasripts" (note missing 'c').

Found variables with a dash in _portfolio

Variables modal-id and project-date used in portfolio.md contain a dash and because of that they cannot be properly read by user/themes/agency/templates/modular/portfolio.html.twig. Removing the dash (or replacing it by an underscore), both in portfolio.html.twig and portfolio.md, solves this issue.

contact form

Hey.
When working with this skeleton, I found a problem with the contact form. You forgot to add to the theme files form.html.twig and formdata.html.twig this led to the fact that sending a message from the contact form resulted in an error that the file was not found. No message was sent Thank you.

Grey Bar in Portfolio Modal (Chrome, Safari)

In the Portfolio section of the Agency theme, my browser is rendering a vertical grey bar about 20px wide to the right of the content. It shows up both in Chrome and Safari on my Mac but not on Chrome for iPhone. It even appears in the theme's Demo website.

In Chrome on a PC it's clear they grey bar is a vestigial scroll bar.

This problem is unique to the Grav theme as it does not appear in the demo pages for the Jekyll or Start Bootstrap versions of the Agency theme.

Here is the scroll bar artifact on a Mac: in Chrome and in Safari

and what it aught to look like from the Agency Jekyll demo.

Twice id of sections

In the source code can be seen that the id each occur twice for sections:

<div id="services"></div>
<section id="services">
...
<div id="portfolio"></div>
<section id="portfolio" class="bg-light-gray">
...

E_ERROR - Class 'Parsedown' not found

Hi,
I run this command
bin/gpm update agency

This happens for me on Linode Servers (Ubuntu 16.04 LTS)
Server Error
Sorry, something went terribly wrong!

E_ERROR - Class 'Parsedown' not found

For further details please review your logs/ folder, or enable displaying of errors in your system configuration.

Navbar location hover color doesn't work (navigation.html.twig, Site.yaml, .md, etc.)

Hello,
I recently worked on the content files (.md) and since then, the hover effect showing the navbar status with a yellow rectangle is gone. I changed the CSS color, but that wasn't the cause. for the issues now. I didn't touched the CSS after that (also no cache issue). Are there any editing rules, in various files, that I miss? I know, Grav has an issue with TAB stop. Are there any things I'm missing in terms of CSS logic or syntax how the site is designed?

Code part from user/config/site.yaml:
# Links to include in footer navigation
# For external links add external: true links:
- title: Services
url: '/#services'
- title: Portfolio
url: '/#portfolio'
- title: Milestones
url: '/#about'
- title: Curriculum Vitae
url: '/#team'
- title: Contact
url: '/#contact'

Code part from /pages/01.home/_about/default.md:
---
title: Milestones
menu: About
abouts:

Code part from /pages/01.home/_contact/default.md:
`---
title: Contact
cache_enable: false

form:
name: contact
action: /home
fields:`

I've attached two screenshots: one from demo site and one from my one:

navbar original

navbar

Latest update issues

Hi,
I recently updated my site and all of the sudden the navigation is dublicated and my google maps plugin does not appear. We also had a short video as the header image but it does not show up after the update. Any ideas what might have gone wrong? We only pressed the update link on the theme image on Grav admin panel.

How does the Contact Form work?

The Readme says there's an included php file and the Changelog and contact.md refer to a Simple Form thing/plugin... not a Grav plugin but a plugin specific to Agency, in it's plugins folder?

I see this in contact.html.twig

'{% if config.plugins.simple_form.enabled %}'

but I don't see any simple_form in system.yaml or site.yaml

in simple_form.html.twig I see:

'https://getsimpleform.com/messages?form_api_token={{ token | e('html_attr') }}"'

Do I need to register an account on simpleform.com or something?

How to add a simple page to the theme?

Not exactly an issue, but can someone please help on how to add a simple page to the theme which includes top navigation and footer, for example a simple content page for Privacy Policy?

Adding a "default" type of page does not include the top navigation, content is not aligned as themes layout.

TIA

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.