Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Rodrigo Ludgero
    @rludgero
    Hello World :)
    Kevin Van Lierde
    @webketje
    Thank you very much for setting up this gitter @woodyrew!
    Kevin Van Lierde
    @webketje
    Hi everyone,
    I made a fresh (advanced) resume build example for metalsmith: https://github.com/webketje/metalsmith-starter-resume
    Published under personal account for testing with repl.it, and it works great! Repl.it allows to preview metalsmith (or any Node) projects' static files.
    Which means you can totally have a look and fiddle with it without installing anything: https://repl.it/@webketje/metalsmith-starter-resume
    1 reply
    Got permission from 3rd Wave Media by mail to use the CV template as an example for metalsmith
    Kevin Van Lierde
    @webketje
    New metalsmith.io changes:
    -> < 480px optimized display
    -> Added single-page nav as first step towards splitting into multiple pages:
    Selection_095.png
    Andrew Goodricke
    @woodyrew
    @webketje Sounds good, we'll probably want another channel for discussing development at some point but here's fine for now.
    I'd definitely like to split metalsmith.io into smaller pages.
    werner glinka
    @wernerglinka_twitter
    Hi Woody, long time no talk. What is your opinion on Metalsmith's long term chances of survival? I haven't done any work with it for a while. Customers want Gatsby. But IMHO Metalsmith is still the very best for small/medium size sites. It is just so simple... I am mostly concerned that the available plugins will eventually not be updated as Node and it's ecosystem moves on.
    Kevin Van Lierde
    @webketje
    @wernerglinka_twitter, perhaps if metalsmith had near the same amount of marketing & budget backing it, it would be able to compete with Gatsby :) . But yeah, hype-driven tech choices hiding layers upon layers of abstraction.. recently joined the metalsmith org to commit to:
    • revamping the website (a11y, multi-page)
    • address open issues and PR's on core, docs, core plugins
    • improve the docs, provide more advanced examples
    • consolidate the official repo, plugins on Github (metalsmith org) and NPM (@metalsmith)
    • invest in community (gitter chat, issues/ PR's to / adoption of existing plugins)
    Kevin Van Lierde
    @webketje
    According to npm-stat, metalsmith's popularity has actually risen until 2018, and plateaued the last 2 years:
    https://npm-stat.com/charts.html?package=metalsmith&from=2015-08-31&to=2020-08-31
    werner glinka
    @wernerglinka_twitter
    @webketje Thanks for the reply. I hear you but, having a company committed to it, a very active and large user community and React will do that. My last large website build was a 2.0 version build in Gatsby because the CTO wanted a large community and active development. Although I had build the first website with Metalsmith almost 4 years ago and it worked well, that was not enough.
    Kevin Van Lierde
    @webketje

    @wernerglinka_twitter

    because the CTO wanted a large community and active development

    Yes that is unfortunately the circular argument which prevents me too from working with the technologies I like to use, again and again. (circular because if every CTO uses it, ofc. adoption will never grow)

    Andrew Goodricke
    @woodyrew
    @wernerglinka_twitter I can't see any plugins becoming obsolete due to newer node versions. CTOs will often cover their decisions that way, rightly or wrongly. Metalsmith is great at what it does, there are advancements that we can and will make but the core is solid and the core plugins can also be relied upon.
    werner glinka
    @wernerglinka_twitter
    @woodyrew @webketje Thanks for your responses... but you are preaching to the choir ;-) I am using MS mostly for non-profit work now and plan to continue to use it. There is one thing that we as a community might want to consider and that is building MS starters like the Gatsby community is doing. These provide an easy way for people to get started... some thing to think about.
    Kevin Van Lierde
    @webketje

    @wernerglinka_twitter I am aware, and I am working on that. See my second post in this room:

    [...] resume build example for metalsmith: https://github.com/webketje/metalsmith-starter-resume
    you can totally fiddle with it without installing anything: https://repl.it/@webketje/metalsmith-starter-resume

    Also for my plugin metalsmith-taxonomy, there are some pretty elaborate up-to-date examples: https://github.com/webketje/metalsmith-taxonomy/tree/master/example

    Andrew Goodricke
    @woodyrew
    It started splitting out the CLI from Metalsmith core a while back but I'll do some more work on this soon. Whilst doing that I'll look at adding a dev server that will (hopefully) just work. It will help with the barrier to entry.
    2 replies
    Andrew Goodricke
    @woodyrew
    @metalsmith/default-values is published in the npm org now: https://www.npmjs.com/package/@metalsmith/default-values
    ItsMeBender (Pieter)
    @ItsMeBender_gitlab
    Hi, switched over from Slack to Gitter.
    Want to say hi!
    Still using Metalsmith on a production system. But low on new developments.
    Kevin Van Lierde
    @webketje
    Hi @ItsMeBender_gitlab, welcome. Pleased to have you in the chat. Feel free to share anything newsworthy, your own experience, or considerations for the future of metalsmith
    Particularly I'd like to address some shortcomings of metalsmith (at least I perceive them as such)
    Kevin Van Lierde
    @webketje
    • confusion between metalsmith.src() and working directory (among plugin authors)
    • selling point (why metalsmith over plain Node/NPM or vs other static site generators or stuff task-runners like gulp etc)
    • is it ES6-ready? (e.g. is it safe to deconstruct like const metalsmith = { path, src, dest })
    Kevin Van Lierde
    @webketje
    @woodyrew @ismay what should go in the source(). All files, all files that need processing (excluding simple file copies), or only 'content' files (in the case of a website = either a webpage or an asset linked in a webpage)?
    Cobra!
    @Cobradile_gitlab
    Hey, any chance I can get help with plugins here?
    I'm a total beginner to this
    Kevin Van Lierde
    @webketje
    @Cobradile_gitlab ask away, that's what the chat is for, we will do our best to provide support :)
    Cobra!
    @Cobradile_gitlab
    So I'm trying to install and use the multi-language plugin, and it creates the subdirectories and articles, but the collections pages are blank?
    Kevin Van Lierde
    @webketje

    I can't give you the reason/ solution right away, but I will test it and report here. In the meantime, it would be good to see more about your setup. You could set up a .replit and paste the link here.

    When you choose a new project, you can import your local folder, just don't import the node_modules. Instead add a file at the root called .replit with these contents:

    language = "nodejs"
    run = "PORT=8080 HOST='0.0.0.0' npm start"

    (and make sure npm start script executes your metalsmith file)

    Cobra!
    @Cobradile_gitlab
    Kevin Van Lierde
    @webketje
    @Cobradile_gitlab yes thank you, can you clarify what you mean by "the collections pages" (at which build/ path). Do you expect the index_sco.md to be rewritten to /sco/index.html?
    Cobra!
    @Cobradile_gitlab
    @webketje Well no. When I don't use the multi-language module, it creates a single index page displaying the articles I made, but when I use it, it created multiple index pages, one for each language, but they're all blank
    Kevin Van Lierde
    @webketje
    I took your repl and added the multi language plugin, added some stuff (<html lang="">), but as far as I can see it works? I see no empty pages. The index.html is one folder up because it is the default language. Hit the Run button to re-build: https://repl.it/@webketje/Metalsmith-blog-2
    Cobra!
    @Cobradile_gitlab
    Ah okay. How do you download projects from repl? @webketje
    Kevin Van Lierde
    @webketje
    image.png
    @Cobradile_gitlab
    Cobra!
    @Cobradile_gitlab
    @webketje I don't see a download link there
    Kevin Van Lierde
    @webketje
    @Cobradile_gitlab there is but you need to "fork" first (click fork, it will redirect).Then 1) Open the files tab, 2) Click the 3-dot menu, 3) Click "Download as ZIP", see screenshot: https://i.imgur.com/EYPuHjh.png. Then extract the ZIP somewhere, and you have it.
    Cobra!
    @Cobradile_gitlab
    @webketje I downloaded the files and tried to build, but I got this error: https://pastebin.com/JU9qjj8V
    8 replies
    Ferruccio Aceves
    @SrAceves
    Hello
    Is there a plugin that extracts metadata from all *.md files -- frontmatter, heading tags -- and makes it available globally?
    Kevin Van Lierde
    @webketje
    @SrAceves There is no plugin that provides the markdown-heading-to-metadata feature. However you can easily make the frontmatter of each .md file available to global metadata with a custom plugin,eg. the plugin below will create a metadata key markdowndata with an object with the filenames [src/posts/post1.md => post1] of all markdown files as keys, and assign their frontmatter (=metadata) to it:
    .use((files, metalsmith, done) {
      const path = require('path');
      const metadata = metalsmith.metadata();
      metadata.markdowndata = {};
    
      function filename(filepath) { return path.basename(filepath, '.md'); }
    
      Object.keys(files)
        .filter(key => key.endsWith('.md'))
        .forEach(key => {
           const filemetadata = Object.assign({}, files[key]);
           delete filemetadata.contents;
           delete filemetadata.stats;
           metadata.markdowndata[filename(key)] = filemetadata;
        });
      });
      done();
    });
    scalingapps
    @scalingapps
    I truly love Metalsmith in combination with Fastify to create static sites. I have been playing with Nuxt and similar frameworks, but to in my opinion they are trying to do too much. If you just need a fully static site generator, using Metalsmith seems to be the best and more straight forward options. I would like to see it grow more and have more support from the community. How can I help spread the word?
    Kevin Van Lierde
    @webketje
    Did you know? The first version of the VueJS CLI tool used metalsmith to generate component templates! https://github.com/vuejs/vue-cli/tree/v2#user-content-metalsmith
    Doug Webb
    @DougInAMug_gitlab
    Hello metalsmith-on-gitter! Still using metalsmith for two personal project :thumbsup: I think the Metalsmith project is great, but I do sometimes struggle as someone who isn't a professional developer. Some questions:
    • What is the relationship between this metalsmith community and SegmentIO?
    • I can imagine contributing to documentation (as I figure things out myself!) Should I just submit PRs?
    • Where are the metalsmith.io source-files held?
    Vikram Chhapwale
    @BurgundyIsAPublicEnemy
    Hello Metalsmith. Totally new to Gitter, but I got introduced to this project by someone on DevRant and now I am here. Someone mentioned they wanted to do a collaboration, so I am ready to get busy.
    Doug Webb
    @DougInAMug_gitlab
    Hey @BurgundyIsAPublicEnemy I just joined this gitter as I started working on some metalsmith project again. It looks like we're only 16 here, whereas there are 1,038 people on main Slack channel. However, Slack is quieter than here, and people have been encourage to migrate to Gitter.
    Kevin Van Lierde
    @webketje
    @DougInAMug_gitlab @BurgundyIsAPublicEnemy The person on DevRant was me :). I'll try to address some of your questions. Segment no longer actively maintains metalsmith and seeks to transfer the rights to another legal entity. We've been in contact with Segment for about 6mo. and we are fleshing out the details for ownership and copyright transfers & migrations, but getting all stakeholders' agreement takes a lot of time and that is the reason development has stalled on the main repository.
    Kevin Van Lierde
    @webketje
    @DougInAMug_gitlab There is no relationship between this Gitter and Segment (except some of the metalsmith ex-contributors are in as members) As for the metalsmith.io code you can find it at https://github.com/metalsmith/metalsmith.io, you can definitely submit PR's though I will eventually rewrite/ restructure the website when all the administrative hassle is over.
    Doug Webb
    @DougInAMug_gitlab

    :tada: Great news @webketje ! Thanks so much for taking the initiative on this :pray: Keep us posted and let us know if/how we can meaningfully help.

    (I just found the DevRant post I guess you and @BurgundyIsAPublicEnemy were talking about: https://devrant.com/rants/2935556/metalsmith-is-an-older-but-still-awesome-nodejs-static-site-generator-due-to-met )