Log in Sign up

Developers

135 questions tagged ‘Developers’

For dates, is is possible to only display the month and year?

I'd like dates to appear just as month and year. Without the day. Is that possible? If so, where would I make the change? Using the Magazine template. Thank you!

Tags as RSS categories?

Is it possible to modify the RSS feed so that an entry's tags will be declared as categories in the feed? I'm asking because I'm switching to Feedmail for email subscriptions and they have a feature that lets users subscribe to or exclude specific categories. Would be great if I could take advantage of that feature.

Could you describe how the package.json works?

Was just looking around this evening trying to figure out how the package.json works and not really sure i understand what is going on. for instance it seems to have "locals", "partials", and "url" available under "views". Is that it? Also it appears that you can set up stuff that will show up in the template editor via package.json. How does that work? Also, curious how partials work in the context of views (pages). I see in the latest templates you're always referencing them as {{>partialname}} but in some the older templates they are referenced either as partials or as variables. (was fooling with Marfa). Can it work either way as it seems it can and its just a convention thing? Sorry a lot of questions :) But I'd love a more in-depth idea of how everything fits together in that file.

How to hide text if it's the homepage

I'd like to hide a link on my homepage. I thought using the below conditional on the page variable would work but it didn't work and the text is hidden everywhere. Any ideas? {{^page}}The text I want to hide.{{/page}}

Thumbnails on index pages?

Is there a way to display the thumbnails on ~/page/1? I'm using a variation of of the Blog template, but I want my homepage to not be the list of blogposts, so instead I have a link to https://www.patternsthatabide.xyz/page/1 on the top bar. So it'd be cool if it displayed thumbnails there.

Can a Layout tag be applied to image posts via the template?

I'm using the Magazine template for a photoblog. For posts with multiple images, I create a Markdown file with image embeds and a float right {>>} tag on square or landscape images so they are displayed in a similar size as portrait images. However, when posting single images directly, I'm unable to add those tags since there's no Markdown. Is it possible to add the applicable .css class to square and landscape ratio image posts through the template directly? Two examples links from my site: multi image post vs single image post

Analytics not working?

Analytics tracking doesn't seem to work? I tried selecting Heap and entering the ID and full script but neither work?

Cloning entries.html?

Is it possible to clone entries.html by creating a new file in the template, naming it 'blurbs.html' and copy/pasting the code from entries.html? I would also change what appears in the entries vs blurbs pages based on tags. I'm just not clear if this behavior is supported. I have seem other posts doing a similar thing with tagged pages, but the format hoping to achieve for blurbs is just like entries.html where those posts only show up when you visit the /blurb URL.

Remove certain tagged posts from #next

Hello. I have this block of code in entry.html. Is it possible to not show posts with a certain tag inside of next? {{#next}} <div class="up-next"> <p class="small small-caps last-updated">up next</p> {{#thumbnail.medium}} <div class="up-next-thumbnail"> <img src="{{{url}}}" width="256px"> </div> {{/thumbnail.medium}} <a href="{{{url}}}">{{title}}</a> <p class="up-next-summary">{{summary}}…</p> </div> {{/next}}

Showing the most recent entry with a tag?

I'm trying to display the first post in a custom page "writings.html" but if I use the {{#first}} it doesn't show anything. Could you help me? {{#allEntries}} {{#tagged.Writings}} {{#first}} <header class=" centered-content"> <a href="{{url}}"><h1>{{title}}</h1></a> <span class="date"> {{#formatDate}} Do MMM YYYY {{/formatDate}} </span> </header> <section class="writings centered-content"> {{{body}}} </section> {{/first}} {{/tagged.Writings}} {{/allEntries}}

Previous 1 2 3 4 14 Next