Developers
135 questions tagged ‘Developers’
Hide specific tags from the RSS feed?
Is it possible to remove certain categories tags from the feed?
RSS defined by YAML front matter?
I have been trying various ways to have an rss feed defined by a YAML category holding the information about the language in which the post is written. Is there a way to achieve this? I got it to work with tags but would prefer that category not to show as a tag. Any pointers will be much appreciated.
How to display post title on home / entries page?
I was able to get the title to display on the entry itself by adding this line to the top of the entry.html template: <h1>{(entry.title}}</h1> However, on the home page where all entries are shown, there's no titles, which makes it hard to tell one post from another. How can I add the titles to the entries page too?
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.