Log in Sign up

Developers

129 questions tagged ‘Developers’

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}}

How to avoid showing the hamburger?

Hi! I'm using the Photo template, how can I avoid showing the menu nav hidden under the hamburger on mobile? And keep showing the links as I don't have too many. Thanks!

Template Sharing URL change?

If I share my current active template, does the URL break if I make additional changes to the template after the Share is initiated?

How to display the day of publication?

I have a template that presents entries by month and in that {{month}} {{year}} metadata works. But for each blog entry I want to include the day the blog was published. So if it was publised on the 20/4/2024 then just 20 would be returned. {{day}} would seem the logical construct but it does not work. I also can't find in the documentation where it says {{month}} & {{year}} are up to be used - if I could find that list, hopefully it might shed more light on all this. Thanks as ever.

Custom meta in feed.rss?

I've added custom meta to feed.rss without an issue before, but my recent attempt isn't working quite right. {{#metadata}} <figure> <figcaption>Listen:</figcaption> <audio controls src="{{audio}}"></audio> <a href="{{audio}}">Download audio</a> </figure> {{/metadata}} Where {{audio}} = the MP3's URL. The audio player is showing in the feed even when posts do not have {{audio}} custom meta data. Any suggestions?

Adding a tag-based indictor after {{Previous}} and {{Next}}

I use the following on the archives page to put a unicode arrow after a linkpost: <div class="column left"> <a href="{{{url}}}">{{title}} {{#tagged.linkpost}} ⇾ {{/tagged.linkpost}} </a> </div> I tried to use the same method within the Next and Previous sections shown below, but it showed the unicode arrow next to every post. My guess is that it's getting the Next/Previous values at pageload, but may not have visiblity to the tags for those entries to be able to handle what I'm trying to accomplish in the Previous and Next area. Is it possible? <div class="column rightpostfooter"> {{#tags}} <a class="small tag" href="/tagged/{{slug}}">{{name}}  </a> {{/tags}}<br> {{#date}} <span class="small">{{date}}</span> {{/date}}<br> {{#next}} <a class="link" href="{{{url}}}"><span class="smalllink">{{title}}</span></a> {{/next}}<br> {{#previous}} <a class="link" href="{{{url}}}"><span class="smalllink">{{title}}</span></a> {{/previous}}<br> </div>

Adding ai.txt to my site?

Where would one put an ai.txt file on their site? Spawning.ai says to put it on the "root" of you website? Is that just the home folder of my site in dropbox? Thanks! https://spawning.ai/ai-txt

Previous 1 2 3 4 13 Next