Working on making the now page dynamic. I no longer want to manually update this page – the hassle makes me do this less often.
Working on making the now page dynamic. I no longer want to manually update this page – the hassle makes me do this less often.
@pratik I did somehow manage to stitch a page which does that. The page lists the last 5 posts with the Now tag and a couple of list for last read books and watched movies (all credit to @mtt for the inspiration). But this hasn’t been easy. I may have to let this settle to figure out if there’s a simpler (pluginable?) way.
@amit Yeah, that’s what I was referring too. Too many unknowns with setting up individual integrations with the different services for one.
@pratik Few things. The page content/now.html should be content/now.md (it is a markdown file, not HTML) and include type: now in the front matter. The actual layout page would be in layouts/now/single.html. Once that’s setup, whatever you put in the .md file can be displayed by using {{ .Content }} in the layout. As an example, the html file could be:
{{ define "main" }}
<div class="page" .title .content end then add correct classes and extra content as desired.></div>
@pratik Some encoding issues in that last code snippet there, but I think you can get the idea. Eliminate teh h1> type stuff.
@pratik You can duplicate those files into your theme but they need to exists as is. That’s what does the work of grabbing the bookmarks from pinboard.
@pratik Hmm. Do you mean in the partials? It has my username because what you’re seeing on Github is the full live version of my site.
@pratik Alright, found what you were talking about. And that lead me down another rabbit hole. But in the end, I was able to simplify the Pinboard part even more. So fewer scripts and such than the original version. For your sake, I would just compare what you have with the modified files on Github and make the changes. Basically deleting a line on the pinboard partial and modifying one line on the pinboard.js.
@pratik Here ya go for Now category at top.