Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just after installation displayed "About" page that doesn't exist #13

Open
ghost opened this issue Jul 22, 2016 · 2 comments
Open

Just after installation displayed "About" page that doesn't exist #13

ghost opened this issue Jul 22, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 22, 2016

So after fresh install I noticed "About" section in navigation, clicked and got "Page not found". Not sure why this theme comes with this - looks like it's hardcoded?

@flaviocopes
Copy link
Contributor

Yes I can see https://github.com/getgrav/grav-theme-mediator/blob/develop/templates/default.html.twig#L31

Looks like it's "mandatory" for this theme to have an About page, which is present in the Mediator skeleton.

You can override that Twig file in your child theme and change that.

@ghost
Copy link
Author

ghost commented Aug 1, 2016

@flaviocopes right. So what I did (not perfect) for time-being:

{% if page.find('/about') %}
    <a href="{{ base_url_relative }}/about/">About</a>
{% endif %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant