Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Trying to resize logo
· 11 years ago
And yes, I have set the logo in the theme's config file. It is loading, so how can I resize it? I want to resize it like this because then I can change the logo and not worry about the size.
-
Trying to resize logo
· 11 years ago
theme_config.logo_url basically gets the value you have set in the theme's config for logo_url setting: https://github.com/nunopress/grav-theme-machine/blob/develop/machine.yaml#L4
-
Trying to resize logo
· 11 years ago
In this line <a href="{{ base_url }}"><img src="{{ theme_config.logo_url | default(theme_url ~ '/assets/images/logo.png') }}" alt=" " /></a>' What does this do? theme_config.logo_url
-
Trying to resize logo
· 11 years ago
Nice @rhukster i waiting your reply because i not have idea how to use media file in the global template, thanks to do it :)
-
Trying to resize logo
· 11 years ago
If you wanted to be able to manipulate the image directly you could create an user/pages/images folder in your page structure, and put the image in there. Then you could have your meta.yaml file in th
-
Trying to resize logo
· 11 years ago
The metadata to set defaults on images needs to be specific to the actual image file, so in this case logo.png.meta.yaml located along side the logo.png file. However, resizing of media is only availa
-
Trying to resize logo
· 11 years ago
I've changed the logo by copying the machine.yaml file to user/config/themes/machine.yaml. Here is the custom machine.yaml file. The logo has changed but not the size. I put the logo and the meta fil
-
Trying to resize logo
· 11 years ago
in the machine theme the logo is generated with logo_url from theme config or logo.png inside /theme_dir/assets/images/logo.png <a href="{{ base_url }}"><img src="{{ theme_config.logo_url | d
-
Trying to resize logo
· 11 years ago
http://pastie.org/9854864
-
Trying to resize logo
· 11 years ago
You are welcome, you can post on gist or pastie you template page where you have the code for resize the logo? Thanks!