Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Eivind Eikeset Birkedal
    @eivindb_gitlab

    @lsolesen A comment section takes a lot of effort and resources to keep civil, constructive and with a sense of community. If the site is small, the comment section will probably be empty, if the site is popular, the comment will be peppered with all sorts of stuff that hardly anyone will bother to read or engage with.

    It's very hard to find a middle way of it being an empty space below your article and a flooded cesspool of trolls that exploit the fact that you have given them publishing rights to your audience based solely on the fact that they visited your website and have an opinion or need for attention.

    Most users will not engage in a comment section, and the types who do become the opinion people see, giving a skewed impression of what other visitors think about the content. This is a problem that leads to people to perceive subjects as polarized(because of arguing), controversial(because of exaggeration), or obvious, in communities that have turned into echo-chambers due to commenters drowning out dissenting opinions.

    I find it far more important to consider what it is you want from a comment section. If you want feedback, provide a contact address at the bottom for corrections, comments and whatnot, or a contact form if you're feeling fancy. Maybe encourage readers to write about the subject on their own and link to good articles written in response.

    If you want a way for your audience to connect with each other and talk about your content, perhaps a chat service like Slack, Discord or IRC for the old dogs is a better forum.

    Lars Olesen
    @lsolesen
    @eivindb_gitlab Thanks for the elaborate answer.
    In my front matter I want to specify the name of a collection (eg. tricks). Then in my template I want to get that page.collection variable to get the actual site.tricks collection. I have tried a thousands workarounds now, but still to no avail :(
    timothee-benedet
    @timothee-benedet
    Hello everyone ! I have 3 problems/question about my first github pages made with jekyll and minima theme...Anyone to help me ?
    Eivind Eikeset Birkedal
    @eivindb_gitlab
    @timothee-benedet list the question and link to the repo and you'll see if anyone here can help.
    Andrew Myers
    @afred

    Is it possible to create your own commands extending Jekyll::Command in your _plugins directory? I've tried, but it looks like plugins are not loaded when trying to run your own command... only when running other commands, like jekyll build.

    All the docs I've seen say that if you want to make custom Jekyll commands, then to make them a gem. But I don't want to deal with all the overhead of a separate gem right now.. i just want an additional Jekyll command defined in my source.

    Ghost
    @ghost~5ae94a86d73408ce4f97cb22
    Hello there
    New jekyll user here i got an error when running bundle exec jekyll serve saying something like bundle path contains :
    Can't find solution so far
    Ghost
    @ghost~5ae94a86d73408ce4f97cb22
    Will appreciate advise to the issue
    Mathieu
    @KloZen75
    jekyll-menu gem didn't relax so not working with the new 4.0 jekyll version oO ?
    John Puddephatt
    @johnpuddephatt

    Just upgraded to v4. Anyone able to give me a steer on debugging this error:

    NoMethodError: undefined method `converters' for #<Jekyll::Document _pages/about.md collection=pages>

    Site generates fine if I empty the _pages folder of files. Removing _about.md just generates an error for the next file in the folder and so on. Emptying about.md of content or reducing it to just having a title in the frontmatter doesn't fix. Not really sure where to look/what to try next...

    My pages collection is defined in _config.yml in the same way as other collections which are outputting fine.

    John Puddephatt
    @johnpuddephatt
    Emptying out my page.html layout doesn't help either
    John Puddephatt
    @johnpuddephatt
    Stacktrace:
    NoMethodError: undefined method `converters' for #<Jekyll::Document _pages/about.md collection=pages>
    /Users/johnpuddephatt/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/bundler/gems/jekyll-b9963f38b3cd/lib/jekyll/document.rb:403:in `method_missing'
    /Users/johnpuddephatt/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/jekyll-sass-converter-2.0.0/lib/jekyll/converters/scss.rb:21:in `block in <class:Scss>'
    Chris Savoie
    @ChrisSavoie

    Hey @johnpuddephatt, I had the same problem and I think I was able to find the issue documented here: See jekyll/jekyll-sass-converter#93

    It looks like pages is an invalid collection name. There's a patch waiting to be merged in, but you can use it today here: https://github.com/jekyll/jekyll-sass-converter/issues/93#issuecomment-524270623

    John Puddephatt
    @johnpuddephatt
    @ChrisSavoie amazing thank you. What an unhelpful error message! 😂
    Daniel Alexandre Cerqueira Santos
    @alexandre1985
    Hey! I'm making an Jekyll (filter) Plugin that gives the md5 checksum of the content of a file. I'm almost finished but I need help in rendering/processsing the file in case it has an include or import dependency of another file so that if that file (that is a dependency) get modified the checksum hash (of the main file, which is dependent of that other file) also changes
    You can help me by responding in stackoverflow (https://stackoverflow.com/questions/57653792/jekyll-plugin-how-to-convert-file) or, if you want, in here
    Chris Savoie
    @ChrisSavoie
    @alexandre1985 I doubt I have the expertise to contribute but I'd like to use your plugin if it's available upon completion. Can I ⭐️your repository?
    Daniel Alexandre Cerqueira Santos
    @alexandre1985
    I'm gonna put it in a github repo, right now. Let me put some documentation for why I did some weird stuff, if a good soul has the knowleadge to help me. I have made it work, but with the condition on having to run jekyll build 2 times.... :/ don't like this, but is the hack that I have made, and still, running two times I'm gaining build time compared to when I used jekyll-assets plugin
    Daniel Alexandre Cerqueira Santos
    @alexandre1985
    xxj1213
    @xxj1213
    Hey! Configuration file: D:/website/_config.yml
    Dependency Error: Yikes! It looks like you don't have jekyll-responsive-image
    or one of its dependencies installed. In order to use Jekyll as currently config
    ured, you'll need to install this gem. The full error message from Ruby is: '126
    : 找不到指定的模块。 - D:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rmagick-2.16.0/lib
    /RMagick2.so' If you run into trouble, you can find helpful resources at https:/
    /jekyllrb.com/help/!
    but I had installed jekyll-responsive-image (1.0.2)
    Sebastjan Hribar
    @sebastjan-hribar
    Hi all, I'm using jekyll with the minima theme and I'd like to implement grouping posts by categories. I've added the categories to front matter and I have found some guides online to then use these in custom layouts. However, I'd like to know if and how to modifiy minima to show the display by categories. Can someone help?
    Sebastjan Hribar
    @sebastjan-hribar
    Never mind, I apologize for posting too soon. It's all in the docs.
    Ashley Newton
    @NewtonLanguages_twitter
    Hello, I have docs on a Jekyll site that I also convert to PDF using wkhtmltopdf. I've set up conditional PDF output so intra-site links direct to different headings within the PDF. For example, there's a TOC with links to the main top-level headings.
    I went to build the PDF today and found that these links are no longer directing to headings within the document, but are opening in my web browser.
    Here's the html I've implemented for the links:
    <li><a href="#heading-anchor" id="heading">Heading</a></li>
    I haven't changed any settings, and I honestly have no idea why the behavior has changed. Does anyone have an idea what might be causing this?
    P.S. A colleague suggested it might be due to a recent Jekyll update. I upgraded to the latest release but that has not resolved the issue.
    Alex Hoyau
    @lexoyo
    Hello
    I don't think that Jekyll would change links... What is the liquid template like for the links?
    Ashley Newton
    @NewtonLanguages_twitter
    Thank you @lexoyo for responding! I'm not sure what the liquid template for links is. Where would I look to find out? I found a file called links.html. Is that where I should look?
    Alex Hoyau
    @lexoyo
    It should be either in _layouts or _includes
    You can check the file in which you see the links and follow the includes ;)
    Ashley Newton
    @NewtonLanguages_twitter
    Never mind, I was able to get help troubleshooting from a colleague and this is now resolved. Thanks again!
    Chris Savoie
    @ChrisSavoie
    @alexandre1985 can you define asset dependency? I was assuming that perhaps my main.scss file that imports a bunch of other files... or my scripts.js file that includes other bits and links other other bits might be considered an asset with dependencies? I guess I could test this all easy enough. (looks like I wrote this a week ago and forgot to hit enter)
    Tom Lockwood
    @tomlockwood
    Hello :)
    I wrote a jekyll plugin that's not great, and i want to write some tests to make refactoring it easier
    Is there a good approach to take to mock out an entire jekyll site, for plugin testing?
    Tom Lockwood
    @tomlockwood
    the plugin i wrote is for managing RPG content, and since it has a trigger in :site, :post_read i want to basically make a site with collections and multiple pages with links on it to test that it generates some data based on those, consistently
    the code is here https://github.com/tomlockwood/jekyll-rpg and it is very bad, and i'm sorry
    Tom Lockwood
    @tomlockwood
    I figure I'll want to do something similar to https://github.com/jekyll/jekyll/blob/master/test/test_generated_site.rb ??? but that's a little confronting so your advice on how to get started would be appreciated! Thank you!
    Raghavendra Saralaya
    @numoonchld
    i'm trying to use site variables from the _data folder in an another yml file. what is the best way to do this? this is in the context of netlify cms; the select widget in netlify should be able to list all the items currently in a site variable. from what i understand the yml file doesn't parse liquid tags
    Raghavendra Saralaya
    @numoonchld
    @numoonchld I ended up writing a ruby script as a plugin (https://gist.github.com/numoonchld/dc81e95ddc3044943d5c2b5f9578d032)
    Tom Lockwood
    @tomlockwood
    hmmm now i'm wondering if i should be using helper.rb from the jekyll project...
    Tom Lockwood
    @tomlockwood
    i figured it out :D
    used Jekyll::Configuration.from() and Jekyll::Site.new(@config) in an rspec before block
    Tom Lockwood
    @tomlockwood
    I still don't think my testing approach is very good - i configure an entire site in order to test
    would love for someone to review my code and give me some pointers - or refer me to a gem that does testing site hooks well!
    the code functions, but i feel like I could organise it a bit better, but i really want to tackle testing in a better way before I do that
    ideally i do something like, set the content on a couple documents on collections, trigger the :site, :post_read hook