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

Update page_head.html.twig #265

Merged
merged 2 commits into from
May 15, 2015
Merged

Update page_head.html.twig #265

merged 2 commits into from
May 15, 2015

Conversation

igor-gp
Copy link
Contributor

@igor-gp igor-gp commented May 15, 2015

Added favicon output, if enabled in gantry, otherwise it will not render.

Added favicon output, if enabled in gantry, otherwise it will not render.
@@ -17,6 +17,9 @@
{%- block head_meta -%}
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if gantry.config.styles.base.favicon %}
<link rel="icon" type="image/x-icon" href="{{ url(gantry.config.get('styles.base.favicon', false)) }}" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove default value false.. Maybe use the same code as one line above:

<link rel="icon" type="image/x-icon" href="{{ url(gantry.config.styles.base.favicon) }}" />

Updated favicon code to exclude 'default'
@@ -17,6 +17,9 @@
{%- block head_meta -%}
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if gantry.config.styles.base.favicon %}
<link rel="icon" type="image/x-icon" href="{{ url(gantry.config.styles.base.favicon) }}" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the code to remove 'default' as requested.

@mahagr
Copy link
Member

mahagr commented May 15, 2015

Looks good to me.

@mahagr mahagr added the feature label May 15, 2015
@igor-gp igor-gp mentioned this pull request May 15, 2015
@w00fz w00fz added this to the Release Candidate 3 milestone May 15, 2015
w00fz added a commit that referenced this pull request May 15, 2015
@w00fz w00fz merged commit ac75687 into gantry:develop May 15, 2015
@w00fz
Copy link
Member

w00fz commented May 15, 2015

Sweet! Thank you!

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

Successfully merging this pull request may close these issues.

3 participants