2 likely simple questions for Agency Theme

Hi,
Playing with the Agency them and so ar I’m loving it’s simplicity!
Moving from a Wordpress monstrosity!

So, if I enable logos in _conf.yml, when I try to “bundle exec jekyll serve” I get a whole pile of gem errors. The second I disable logo site serves up correctly.

The changes I made were; (image is i correct location)

logo: #optional, defaults to site title
path: assets\img\dRev_px_x2.png
height: 60 #height in px, defaults to 52px

Errors (truncated) are;

bundle exec jekyll serve --trace
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
/opt/homebrew/lib/ruby/gems/3.4.0/gems/jekyll-4.4.1/lib/jekyll.rb:26: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add logger to your Gemfile or gemspec to silence this warning.
bundler: failed to load command: jekyll (/opt/homebrew/lib/ruby/gems/3.4.0/bin/jekyll)
/opt/homebrew/Cellar/ruby/3.4.4/lib/ruby/3.4.0/psych/parser.rb:62:in ‘Psych::Parser#_native_parse’: (/Users/davids/Sites/agency-jekyll-theme-master/_config.yml): mapping values are not allowed in this context at line 23 column 6 (Psych::SyntaxError)

Second issue is I’m trying to rename portfolio to Clouds in nav and pages.
Found all instances and renamed, when I mouse click Clouds, the dist does not scroll down to the clouds section and URL gets appended with http://localhost:4000/#clouds

I’ve never used this theme, but I am pretty sure Jekyll doesn’t handle windows style paths. Try changing from \ to /, like:

I was about to sing your praise - but no.

As soon as I uncomment the line with either mac or windows paths it fails.

Strangely, whilst I am on macOS, Windows paths work for the all the portfolio pages in markdown…

bundler: failed to load command: jekyll (/opt/homebrew/lib/ruby/gems/3.4.0/bin/jekyll)
/opt/homebrew/Cellar/ruby/3.4.4/lib/ruby/3.4.0/psych/parser.rb:62:in ‘Psych::Parser#_native_parse’: (/Users/davids/Sites/agency-jekyll-theme-master/_config.yml): mapping values are not allowed in this context at line 23 column 6 (Psych::SyntaxError)

Can you share your code? Or at least which is line 23 in _config.yml.

Hi,

It’s simply the stock code to add a sig.
Pretty sure it’s a basic yaml syntax error, but apart from different URL, it’s the same code.

Below is lines 23/24/25
As soon as I uncomment and restart server process I get the error.

logo: #optional, defaults to site title
path: assets/img/dRev_px_x2.png
height: 60 #height in px, defaults to 52px

Also tried with removing addition end of line commenting.

logo: DRevolution
path: assets/img/dRev_px_x2.png
height: 60px

is that the actual formatting? the last 2 lines probably need to be indented but that might just be the way you pasted them in here.

Hi,

Forum reformatted my paste.
Line 23 which is the error is the first logo line.

 logo: DRevolution
   path: assets/img/dRev_px_x2.png
   height: 60px

maybe you need to remove the px?

Tried all those variations.
It’s failing on the logo line.

Ran it through an online YAML checker which also fails.
Not sure how to resolve as do need a company logon on my website!
Another option is I did covert my logo to a typeface a while back, maybe change that to a webfont and load it…

I think you need to leave logo without a value, this is why the yaml fails.

logo: 
  path: "assets/img/dRev_px_x2.png"
  height: "60px"

not sure if you need px or not. I think if you don’t use a path to an image then the logo text defaults to the site title.

Hi, worked it out - an extra space.

The commented out code had the # then a space, then the code.
Removed those 3 spaces and all good!

# logo:     #optional, defaults to site title
  # path: assets/img/dRev_px_x2.png
  # height: 60 #height in px, defaults to 52px
logo:     
  path: assets/img/dRev_px_x2.png
  height: 60px