Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:30
    zbayoff commented #5040
  • 13:51
    ameyer-pivotal commented #784
  • 13:42
    yanyandenuonuo review_requested #618
  • 13:36
    yanyandenuonuo synchronize #618
  • 13:01
    bep closed #7142
  • 13:01
    bep commented #7142
  • 12:45
    nick4fake commented #375
  • 12:44
    nick4fake commented #375
  • 11:53
    iaktern commented #7139
  • 11:53
    iaktern commented #7139
  • 11:52
    marckhouzam commented #1082
  • 11:48
    marckhouzam edited #1070
  • 11:46
    cshoredaniel commented #7142
  • 11:16
    jdbruijn closed #882
  • 11:16
    jdbruijn commented #882
  • 10:57
    sagikazarmark commented #882
  • 10:55
    sprajagopal edited #7142
  • 10:54
    sprajagopal opened #7142
  • 10:51
    jdbruijn edited #882
  • 10:51
    jdbruijn commented #882
ScrumpyJack
@ScrumpyJack
i’m using a theme (slate) that doesn’t require anything in content. is there a way to build without a content dir?
Alex Leferry 2>
@alexherbo2
Hi
I have trouble to generate HTML files with new site and theme
I only have XML files
I think the issue is with the theme
With Vanilla theme, I have
I don’t understand why the HTML files are not generated
hugo new site site
hugo new theme steve-losh
404 page not found
Alex Leferry 2>
@alexherbo2
:(
Cameron Moore
@moorereason
Alex, please use the discussion forums for help
Alex Leferry 2>
@alexherbo2
@moorereason I figured out the issue
It was because HTML files in layouts were empty
the generated files by hugo new theme {name} are empty
in themes/{name}/layouts
I think it’s a bug
wessven
@wessven
The Hugo master branch build is currently failing on Travis. How are we supposed to submit pull requests now?
Bud Parr
@budparr
@danielpost - I added your post about accessible footnotes to the Awesome Hugo repo. If you write any more, please do submit it there. https://github.com/budparr/awesome-hugo
Mireille Raad
@migheille_twitter
:) hey! is it possible to create an archive page sorted by .ReadingTime ?
has it been done before?
i am more looking for a yes/no answer to see if i should spend time looking into it
Mireille Raad
@migheille_twitter
now that I think of it, it is possible... i have to:
create different arrays for each reading time segment ( 0-5 mins, 5 to 15, 15 to 30 mins etc..)
loop through the content
get the .ReadingTime for each
depending on reading time, assign the post to an array
once done, just display the grouped arrays
is there anything faster?
is there a sort feature, rather than a group feature? and i will need to sort the posts inside each array...
hmm
Bjørn Erik Pedersen
@bep
Mireille Raad
@migheille_twitter
i'll look. thanks for the hint
i got distracted building a little css bar chart
Screen Shot 2019-02-22 at 6.29.58 PM.png
{{ $total := len (where  .Site.RegularPages "Type" "posts") }}
{{ $n:=   (where  .Site.RegularPages "Type" "posts").GroupByDate "2006"  }}
<div class="archive-chart">
    {{ range $n  }}
      {{  $x :=  len .Pages  }}
      {{ $h := div (mul $x 400 ) $total  }}
      <div style="height:{{$h}}px" >{{$x}} </div>
    {{ end }}
</div>
:joy:
will improve it - but thought it is a fun start
groundedSAGE
@groundedSAGE
I'm curious if there is a way to extend Hugo with Pipes or a plan to? I've been looking for a strong alternative to Gatsby and Hugo wins on many fronts. The only other thing I would like is the ability to perform SQIP and SVG Traces of an image for image placeholders.
Bjørn Erik Pedersen
@bep
@groundedSAGE try https://discourse.gohugo.io/
Tim Rose
@timrosede
hey hugorians, i could you recomment any start theme with scss, es6 support? webpack instead a gulp?
sfwerner
@sfwerner
Why has switching between xhtml and html output not been made a blackfriday config option?
Kevin Davenport
@kevindavenport
anyone else using netlify?
ScrumpyJack
@ScrumpyJack
@kevindavenport i use self hosted gitea + hugo + drone for that. what does netlify do better?
ScrumpyJack
@ScrumpyJack
ah it also offers hosting i guess
matrixbot
@matrixbot

Eric Drechsel hi all, newb question, wasn't able to find an answer searching:

How can I avoid outputting a bogus date if the value is missing in frontmatter?

I know go, so I understand that what's being output is the zero value of time.Time. How can I detect this value in a template and supress output?

Cameron Moore
@moorereason
The dates are time.Time structs, so you can check $date.IsZero. @bep committed a patch this week that will change ‘if’ and ‘with’ to test if the object implements IsZero(), so the next release will let you do {{with $date}}
matrixbot
@matrixbot
Eric Drechsel thanks Cameron Moore (Gitter)
matrixbot
@matrixbot
Eric Drechsel Any recommendations for themes that are structured to make them easy to override (granular partials etc)?
Eric Drechsel I'm porting a site from Harp and my old theme had a partial for every "atom" of output which made restructuring/reuse easy, at a complexity cost. I want to go down that road because I plan to add some pretty complex logic to my templates.
matrixbot
@matrixbot
Eric Drechsel Seems like shortcodes would probably be a nicer encapsulation for complex logic
Keith wachira
@Keithwachira
Hello ...am new here and am not sure whether such question should be asked here