Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Renato Marinho
    @renatomarinho
    This message was deleted
    Renato Marinho
    @renatomarinho
    This message was deleted
    Tom Rutgers
    @tomrutgers
    @scwambach Did you actually find a way to make that work?
    Scott Wambach
    @scwambach
    @tomrutgers actually wrote a gulp task instead, it pulls in posts and create individual yaml files per post
    Tom Rutgers
    @tomrutgers
    @scwambach nice idea! Lately I use the netlifyCMS with middleman a lot, should check it out
    Scott Wambach
    @scwambach
    @tomrutgers I use that on several sites, it’s great! But I needed something I could use with any CMS with a web hook
    Tom Dunlap
    @motevets
    Hello everyone, I'm running into an issue with middleman 4 running middleman watch. One of the directories I'm watching is symlinked. While this worked on middleman 3, it seems to have broken in the new version. There is a GitHub issue, middleman/middleman#2054, where @tdreyno offers a solution that seems to work, using files.watch :source ..., but I'm not sure where I'm supposed to put this configuration, and I don't see anything in the documentation mentioning it. Could someone point me in the right direction?
    Tom Rutgers
    @tomrutgers
    Config.rb would be the place @motevets
    also checkout middleman/middleman#1902
    Tom Dunlap
    @motevets

    Thank you so much @tomrutgers for that information. We got files.watch to successfully read the file and render it in the initial load; however it doesn't seem to be live updating. Our configuration is:

    files.watch(
      :source,
      path: File.expand_path("/absolute/path/to/content/directory"),
      destination_dir: "content-directory",
    )

    We can then, when running middleman watch, visit localhost:4567/content-directory/page.html, but when we update /absolute/path/to/content/directory/page.html.md, we see the following in the terminal output:

    == LiveReloading path: /

    But we neither do we see the page reload, nor see the new content when we refresh the page. Any ideas? Did we set something up incorrectly?

    Miranda Limonczenko
    @mlimonczenko
    @motevets and I investigated this more and wrote a GitHub issue. Linked here: https://github.com/middleman/middleman/issues/2186#issue-353868371
    Cigoler
    @Cigoler
    Does Middleman-blog have a built in method for dealing with tags that have spaces within them? I noticed that say something like 'mobile phone' is converted to 'mobile-phone' which is great for the folder name but not as the title. Sorry if I'm being dense and it's obvious.
    Leigh McCulloch
    @leighmcculloch
    Hi all, does anyone know if the middleman-directory is still maintained? I've been trying to update my project on that repository but have got no response: middleman/middleman-directory#186
    Cigoler
    @Cigoler
    Can anyone point me in the direction of getting Middleman working with Bootstrap 4? I've posted on the forums about the gem not working. I'm not familiar with webpack, but from reading around it looks like I have to use that somehow. Any assistance on this would be greatly appreciated.
    Tom Rutgers
    @tomrutgers
    Haven't got it to work, the sass gem is in conflict with what middleman uses at the moment
    Cigoler
    @Cigoler
    @tomrutgers ouch, is that with using webpack?
    Tom Rutgers
    @tomrutgers
    No just gems
    bootstrap v4 uses a later version than the middleman core etc depend on. Not sure on the exact details, it's been a while since I tried
    Cigoler
    @Cigoler
    Yeah. From what I've read, and there's strangely not a lot about it, but you have to use webpack as part of middlemans external pipeline. I found this; https://pspdfkit.com/blog/2018/using-webpack-with-middleman/ but my first attempt hasn't gone very well. It complains and doesn't generate any files for bootstrap.
    Tom Rutgers
    @tomrutgers
    @Cigoler this should get you started: https://github.com/tomrutgers/middleman-bootstrap
    Tried it out just now so I'm not exactly an expert, but it works. Follow these bootstrap docs to configure bootstrap with webpack: https://getbootstrap.com/docs/4.0/getting-started/webpack/
    Cigoler
    @Cigoler
    @tomrutgers cheers Tom, greatly appreciate you going to the trouble. I'll check it out when I get a chance and let you know how I get on. Thanks again.
    Tom Rutgers
    @tomrutgers
    no trouble, just curious :thumbsup:
    Cigoler
    @Cigoler
    That worked nicely @tomrutgers, thank you. Introduced me to yet another bloody package manager but got me up and running with how I'm familiar with working so cheers.
    Tom Rutgers
    @tomrutgers
    Haha sorry :innocent: : Luckily yarn is just a layer on top of npm, I'm sure you can get rid of it again. Anyway: good to hear! :thumbsup:
    Leigh McCulloch
    @leighmcculloch
    Trying another time, does anyone know if the middleman-directory is still maintained? I've been trying to update my project on that repository but have got no response: middleman/middleman-directory#186
    Tom Rutgers
    @tomrutgers
    By the looks of it... no
    Scott Wambach
    @scwambach
    anyone here ever used Deploybot? if so had any luck deploying middleman from there?
    Cigoler
    @Cigoler
    <%=article.path%> for my middleman blog doesn't include the dates in the path so the link I'm creating manually doesn't work. Something obvious I'm missing?
    Looking on the sitemap I want the build path url
    Cigoler
    @Cigoler
    oops. url is all I needed
    Seth Friedman
    @sethfri
    I'm working on a site that uses Middleman, but we'd ideally like to switch our Markdown renderer to CommonMarker so that we get GFM. It looks like Middleman doesn't currently have this in its renderers. Would there be any objection to me adding it?
    And if not, anything I should know when I'm doing so?
    Ronald Dijkstra
    @RonaldDijkstra
    anyone got a working example of pagination with local data? I've got like 450 data items and would like to paginate them over multiple pages with navigation back and forth
    Tom Rutgers
    @tomrutgers
    @RonaldDijkstra I tried middleman-pagination the other day, but it only works with middleman 3.x
    Ronald Dijkstra
    @RonaldDijkstra
    thanks, I looked into that one
    and indeed didn't work in mm4
    Tom Rutgers
    @tomrutgers
    Haven't found any gems that do though
    Ronald Dijkstra
    @RonaldDijkstra
    Me neither, but thanks anyway Tom ;-)
    Tom Rutgers
    @tomrutgers
    :thumbsup:
    Cigoler
    @Cigoler
    I've got an issue in dev where images I've overwritten aren't updating on the live server. I've tried closing and restarting the server but I'm guessing there is a cache that needs clearing somewhere?
    ...any help appreciated.
    Tom Rutgers
    @tomrutgers
    Do you use asset hashes?
    Might try turning it on / off to force the server to think about what to load.. activate :asset_hash
    Cigoler
    @Cigoler
    I do yeah, I'll give that a shot cheers
    Ronald Dijkstra
    @RonaldDijkstra
    @tomrutgers for now I used the middleman-blog to paginate data
    Tom Rutgers
    @tomrutgers
    @RonaldDijkstra that works. I moved away from using middleman-blog and use proxies instead. Specially since v4 you need a slug or date in the url, which isn’t always ideal
    Ronald Dijkstra
    @RonaldDijkstra
    do you have a working example?
    Tom Rutgers
    @tomrutgers
    This uses both for the sake of providing examples: https://github.com/tomrutgers/middleman-starter-netlify-cms
    Ronald Dijkstra
    @RonaldDijkstra
    thank you