by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 15:23
    road2stat closed #346
  • Jan 30 2019 00:56
    road2stat closed #344
  • Jan 30 2019 00:56
    road2stat commented #344
  • Jan 30 2019 00:55
    road2stat edited #344
  • Jan 30 2019 00:55
    road2stat commented #346
  • Jan 29 2019 08:46
    CarlvinJerry commented #344
  • Jan 29 2019 07:43
    nataliegnelson opened #346
  • Jan 29 2019 04:56
    road2stat commented #345
  • Jan 29 2019 04:24
    SportStatisticsRSweet closed #345
  • Jan 29 2019 04:24
    SportStatisticsRSweet commented #345
  • Jan 29 2019 04:18
    road2stat commented #345
  • Jan 29 2019 04:10
    road2stat commented #344
  • Jan 29 2019 04:08
    SportStatisticsRSweet opened #345
  • Jan 28 2019 19:50
    CarlvinJerry commented #344
  • Jan 28 2019 19:31
    CarlvinJerry opened #344
  • Jan 28 2019 17:54
    road2stat closed #343
  • Jan 28 2019 17:54
    road2stat commented #343
  • Jan 28 2019 16:59
    CarlvinJerry opened #343
  • Jan 28 2019 16:37
    CarlvinJerry commented #342
  • Jan 28 2019 16:11
    road2stat closed #342
Nicholas Tierney
@njtierney
any help would be greatly appreciated! :)
Eric Nantz
@rpodcast
@njtierney try changing the build command from hugo to hugo_0.19 and make netlify perform the build again
Nicholas Tierney
@njtierney
Thanks @thercast ! That totally worked!
now I just need to optimise my PNGs
the logo at the header takes a little while to load, I reckon it shouldn't be too hard to make it fast
Yihui Xie
@yihui
For PNG images, optipng is very handy (brew install optipng if you are on macOS). I wrote this tiny function a couple of days ago: yihui/knitr@846c0a5
The default version of Hugo on Netlify is pretty low. Now I actually recommend you to use the command hugo but specify the environment variable HUGO_VERSION to be a more recent one, e.g. 0.23.
For Hugo <= 0.19, you can use the command hugo_X.Ybut after that, the version can be specified via the environment variable: https://www.netlify.com/docs/continuous-deployment/
Nicholas Tierney
@njtierney
Ok great, thanks @yihui ! I'll have a go with optipng
Is there anything like that but for gifs?
Yihui Xie
@yihui
Not to my knowledge. I always manually optimize GIFs: https://ezgif.com/optimize (https://yihui.name/en/2017/05/gifs/)
Nicholas Tierney
@njtierney
Ok cool thanks!
Also, any recommendations for favicons? Where does one put one in a Hugo site? I've got mine under static at the moment but that doesn't seem to be the right place?
Yihui Xie
@yihui
Actually if you do not mind manually optimizing PNG/JPG images, this website is pretty amazing: http://optimizilla.com It can further optimize PNGs that have been optimized by optipng.
static/favicon.ico should be fine, unless your theme has defined a custom favicon path
favicon.ico is a little old-fashioned. Modern browsers support other types of images for favicon, like PNG.
I have to go now, but I just took a quick look at your HTML source: https://njtierney-test.netlify.com/ Apparently it is not valid. There are elements like <h1> and <img> in <head>.
Nicholas Tierney
@njtierney
Ah indeed, I was just experimenting there, not sure how I am supposed to specify stuff like that in the <head> section
Yihui Xie
@yihui
https://validator.w3.org is very useful if you have not used it before.
Nicholas Tierney
@njtierney
OK! Thanks so much for your help, @yihui !
Nicholas Tierney
@njtierney
also, is there any inherent advantage to .png over .jpg? It seems that jpg can be much smaller?
Yihui Xie
@yihui
Not necessarily. It depends. My experience is that pictures (e.g. taken by cameras) are often smaller in JPG than PNG. R graphics is the other way around (PNG often smaller).
Yihui Xie
@yihui
Can someone volunteer to help James fix his website issue: rbind/support#37 The source repo is at https://github.com/rbind/batteries_not_included The website is at http://batteriesnotincluded.rbind.io. It is a simple path issue.
James Blair
@blairj09
I've resolved the issue. I updated baseURL in config.toml to be / as opposed to the full site url. Thanks for pointing me in the right direction.
Nicholas Tierney
@njtierney
nice site @blairj09 !
Yihui Xie
@yihui
Glad you figured it out. Indeed it was just because of a missing trailing slash.
Nicholas Tierney
@njtierney
Hi There! Does anyone know how I could go about extending the header of my website whilst keeping the main body of text below it the same width?
Currently I control the width by setting body width here
but I'm sure that there is a better way
Yihui Xie
@yihui
Whenever you want to control anything on a page, first you must be be able to select it easily. The most common way is to put it in an HTML tag/container and assign a class. Then define CSS for the tag or class.
Nicholas Tierney
@njtierney
OK sure, I guess I see two obvious options here
  1. Add a class within the header.html inside the <body> tag
  1. Make a class that gets used for everything underneath the header
Yihui Xie
@yihui
@sellorm Possible candidate of your awesome-blogdown list: https://twitter.com/shoemakah/status/879549518882197504
Nicholas Tierney
@njtierney
perhaps this is a bit of a simple question, but how do I best go about getting my current blog, njtierney.com to now be njtierney-test.netlify.com
Nicholas Tierney
@njtierney
Yihui Xie
@yihui
No, that post won't answer your question. See my example: https://github.com/rbind/yihui/blob/master/static/_redirects#L8-L9
I think you want to redirect njtierney-test.netlify.com to njtierney.com instead of the other way around.
@/all Anybody can help him? rbind/support#40 I'm very busy these days, and don't have the time to ask him for detailed info.
Nicholas Tierney
@njtierney
ahhh
OK, so I'm actually not sure what that entails
image.png
Would it mean that I change a CNAME to have on the left, njt.netlify.com and njtierney.com on the right?
Yihui Xie
@yihui
No, your current settings seem to be correct. I misunderstood your question. I thought you wanted to redirect *.netlify.com to njtierney.com.
For example, people can access your website through http://njt-test.netlify.com but you probably do not want them to use this subdomain.
BTW, you should enable HTTPS on Netlify.