Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:33
    hcwong synchronize #6771
  • 06:32
    hcwong opened #6771
  • 04:55
    gavinfish opened #6770
  • Jan 17 23:14
    pravin opened #791
  • Jan 17 19:12
    frogg edited #6769
  • Jan 17 19:11
    frogg edited #6769
  • Jan 17 19:11
    bep milestoned #6768
  • Jan 17 19:11
    bep labeled #6768
  • Jan 17 19:03
    frogg opened #6769
  • Jan 17 15:45
    oncletom closed #6767
  • Jan 17 15:45
    oncletom commented #6767
  • Jan 17 15:30
    bep commented #6767
  • Jan 17 14:31
    SchumacherFM commented #4909
  • Jan 17 14:22
    XhmikosR edited #6768
  • Jan 17 14:19
    XhmikosR opened #6768
  • Jan 17 14:13
    oncletom edited #6767
  • Jan 17 14:13
    oncletom opened #6767
  • Jan 17 12:59
    jbigot commented #5074
  • Jan 17 09:28
    ardias closed #831
  • Jan 17 09:28
    ardias commented #831
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
Keith wachira
@Keithwachira
i am developing a hugo admin interface ...all is going well however i have two issues....
mostly its with . git
  1. When someone has more than one branch in a hugo project how should i enable them to select the branch they want to commit to
  2. Should i be loading all the files when a user is opening the project for the first time all should i be loading a file content when i user clicks to edit it.
  3. How should i be handling the merge for the project
    this is how the project looks so far.
    image
Frank Rosquin
@cnf
hi, can anyone help me figure out why i18n isn't working on my site / the theme i am using?
the theme demo also doesn't seem to do it https://themes.gohugo.io//theme/KeepIt/post/emoji-support/
Frank Rosquin
@cnf
right, so it doesn't pass through the keyword if no translation is found
i thought that was the default behaviour?
Ghost
@ghost~5b4ae526d73408ce4fa0ea76
How to add another folder such as include to the watch list so when the contents inside include folder are changed hugo serve re-renders the site?
Ghost
@ghost~5b4ae526d73408ce4fa0ea76
When changes are made to included mmark file site is not re-rendered.
flips
@flips
Been a change to how Hugo processes subfolders? (Most of my content suddenly not visible)
ScrumpyJack
@ScrumpyJack
any recommendations for themes that i can use to replace vimwiki? vimwiki has an export to html option that is splendidly ugly, so i'd like to replace it with hugo and a theme
Luke Hamilton
@lukekhamilton
Hey how do I test a value in a hugo template? {{ if $index == 0 }} ?
that doesnt seam to work and I think im missing something here...
Luke Hamilton
@lukekhamilton
All good, worked it out. :) {{ if eq $index 0 }}
ljrain
@ljrain
@kevindavenport I am starting with netlify now. Having trouble with my theme. I have it setup as a submodule, but the build is still not working. I have my site on google firebase right now until I can get netlify working correctly
Nike
@nike_rise_gitlab
@roybarber hey how can i create a multilevel dropdown menu in hugo??
hey how can i create a multilevel dropdown menu in hugo??
Bruno Diniz
@freethebit_gitlab
Where do I find the 'weight' value limit, positive and negative, for menu entries?
0xTHMS
@0xTHMS
Hi.
I am a Hugo newbie, but have a little of Golang background
As you can see it uses a list jobs
But I would like to make a list of details
How can I declare another list that belongs to the first ?
nested*
0xTHMS
@0xTHMS
I added an indented [[params.jobs.details.list]]
and modified partials/experiences.html to range over it
I get no error when serving
but I can not see what I'm iterating
0xTHMS
@0xTHMS
Anyone ? ican copy / paste ..
0xTHMS
@0xTHMS
Anyone please ?
0xTHMS
@0xTHMS
OK, found a way
Thanks for this very helpful channel :p
flips
@flips
@0xTHMS try https://discourse.gohugo.io/ (this is dev forum)
Soni L.
@SoniEx2
hey can we get a support room yet?
Christian Oliff
@coliff
@SoniEx2 - there's https://discourse.gohugo.io for support and usage questions
parthi2929
@parthi2929
any idea how to use plantuml in hugo?
Soni L.
@SoniEx2
can we get an IRC yet?
Ross Moroney
@code-ph0y
hey guys, am getting an issue when using hugo-theme-learn, when I deploy the project, I am getting escaped html where I have {{% children depth="3" showhidden="false" %}}
anyone experienced this issue before?