Developers
132 questions tagged ‘Developers’
Fallback thumbnail?
Is there a way to set a default thumbnail image that will be used for posts without an image attached?
Creating a Drop Cap in the Blog Template
Just thought I would share what worked for me for those looking to do the same thing. Add to your CSS file. /* Drop Cap */ .entry > p:first-of-type::first-letter { color: #A52A2A; float: left; font-size: 3em; margin: .1em .1em .1em .1em; line-height: 0.85; }
List 5 most recent entries
I am working on a static homepage and part of that I would like to have a section where It just lists the 5 most recent posts with no summary. Output would be something like: TITLE posted on DATE I tried just getting list of all entries as a start but just showing blank area {{#recent_entries}} <p><a href="{{url}}">{{title}}</a></p> {{/recent_entries}}
Is there a way to increase the size of default photo for my website?
I'd like the default photo to be more prominent on my home page. Is there a way to increase the size? I know very little about coding and I didn't see this addressed elsewhere. Thanks!
How do back links work?
Your back links feature works well (at least in Magazine template) so the geek in me is curious how it works, how does Blot know there are existing links to a post? Does it scan the site or some internal database when a new post is generated?
Wider text column in Magazine template?
What do i need to do to make the text column larger in the magazine template?
Menu doesn't render inside entry context?
I'm still investigating this other question and as part of that I'm back and forth looking at what the template debug is giving me and what I'm trying to access. One thing that I'm seeing now though is that, when inside of #entry, I'm able to use #allEntries, even though that's declared outside the scope of entry. The docs mention searching for parent keys so I suspect that is why. However, when I try to do the same for #menu, nothing is rendered if I'm inside #entry, even though menu/allEntries exist at the same json level and are outside of entry. Is this a bug or intended behavior? I'd definitely like #menu to be used inside of an entry, especially given that I need entry metadata.
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.