The bmannconsulting.com website
1--- 2title: April 21st, 2024 3date: 2024-04-21, 10:24:06 -07:00 4section: journal 5excerpt: A log of some blog coding that I did, including more Frames support, canonical links, article and code filtered listing pages, and this excerpt field. 6--- 7Going through some open tabs and made a bunch of updates. Now took myself to the coffee shop to work on some blog coding. 8 9**Custom Frames Support** 10 11I added [[Farcaster Frames]] support to the site, using just default settings similar to what is already inserted into page headers for [[OpenGraph]]. 12 13Using the [[Ghost]] page as an example, I'm modifying the [head template](https://github.com/bmann/bmcgarden/blob/archivetrim/_includes/head.html#L45) so that I can put in custom frame data per notes page. 14 15```yaml 16frame: 17 image: /assets/2024/ghost_logo_black.jpg 18 image-aspect-ratio: "1:1" 19 button2: 20 label: "Github" 21 action: "link" 22 target: https://github.com/TryGhost/Ghost 23 button1: 24 label: "Home" 25 action: "link" 26 target: "https://ghost.org" 27``` 28 29[[Obsidian]] doesn't support these kind of nested header properties, so I need to do it in source code view. 30 31Yes, there would be some way to create this in a way that loops through a button array. 32 33**Canonical Link** 34 35I take notes on articles. I keep a local copy of the article and capture when it was published, who the author was, and usually clip some quotes and make some comments of my own. 36 37I want people to go read the original! And I don't want to "steal" search traffic or attention from the original. In fact, I want to boost it! Reading [Wikipedia on the canonical link](https://en.wikipedia.org/wiki/Canonical_link_element), this not really what it's meant for. 38 39Regardless, adding some header meta data. This is the part of thinking for [[Community Search Engine]] that has to happen. 40 41**Articles Page** 42 43Turns out I had an unfinished [articles](/articles/) page! Fixed a couple of things with it, including getting year sorting done correctly. Design of it still needs a lot of work. 44 45**Code Page** 46 47Let's make a page with all the notes that have a code repository / git link! Here's [code](/code/). 48 49Oh fun, of course I have some people entries, and if I have their Github profile filled out, they'll show up on this page. 50 51There aren't that many entries on here because I have more in the old Logseq notes with [github](https://notes.bmannconsulting.com/#/page/github) and [git](https://notes.bmannconsulting.com/#/page/git) properties. 52 53And separately, I'd like to capture my [1.4K starred repos on Github](https://github.com/bmann?tab=stars). The "signal" of me adding a notes page is stronger than "merely" starring on Github, but it should at least contribute to a personal search index (which again leads into [[Community Search Engine]] too). 54 55**Excerpt for Journals** 56 57This is a very long journal post! My RSS automated cross posting with [[Fedica]] would attempt to turn this into a very very long set of threaded posts. 58 59I'll add an excerpt field which will get used in the RSS feed if it excepts. 60 61```liquid 62{% raw %} 63{% if post.excerpt %} 64 {% assign description = post.excerpt %} 65{% else %} 66 {% assign description = post.content %} 67{% endif %} 68{% endraw %} 69```