#Frontmatter

Have you validated your :rss: #RSS feed? rssboard.org/rss-validator/

I just did and realised there were lots of intraoperability suggestions on one of my blogs running #Hugo and it was actually not even valid because I had a missing trailing slash on my baseURL!

But I managed to sqash the errors (e.g. using absolute permalinks instead of relPermalinks and ensuring the date in the #frontmatter was in the right format).

PS. Thanks @joel for inadvertently making me aware of the situation!

#rssfeed

your auntifa liza 🇵🇷 🦛 🦦blogdiva
2025-04-13

Y’ALL!
i need help

y’all know how you can add filters to frontmatter variables?
help.obsidian.md/web-clipper/f

how do i do this?

1. TAKE A TITLE
"Ohai This Is A Title: Made a long ass mess with all this text"

2. USE THE COLON AS DELIMITER
title: "Ohai This Is A Title"
subtitle: "Made a long ass mess with all this text"

3. SO I CAN TEMPLATE IT AS

title: {{title|replace: ? : " " }}
subtitle: {{title|replace: ? : " " }}
alias: {{title}}

2025-01-19

#Markdown の序文にメタ情報みたいなの書くやつ、#FrontMatter っていうのか。

jekyllrb-ja.github.io/docs/fro

2024-11-28

I am looking for a sane/simple setup for "templating" in #Obsidian #markdown. I am not interested in javascript or whatever some tutorials are recommending. Just want to prefill #frontmatter with stuff like note title as tags... it can't be that complicated?

Caleb Hearth :d6:caleb@calebhearth.com
2024-11-23

📝Tell GitHub to Render Markdown Pages with .gitattributes

Articles on Hearthside are written in #Markdown (#GitHub-flavored), but the file extension is .md.yaml as they also make use of Jekyll-style front matter. My #Frontmatter gem requires that files it handles end in .yaml or .yml, so this is necessary.

#Meta #NaBloPoMo2024
calebhearth.com/m/github-lingu

2024-07-27

Do you know if it's possible to make a markdown link to a post from the front matter of a Jekyll website?

#Help #FrontMatter #Jekyll #Dev #Markdown

2024-07-27

Vous savez s'il est possible de faire un lien en markdown vers un post depuis le front matter d'un site web sous Jekyll ?

#Help #FrontMatter #Jekyll #Dev #Markdown

2024-06-20

Завершил ещё один небольшой open source-проект: Preambula — обработчик Markdown-файлов, позволяющий преобразовывать их на лету в HTML, вставлять в заданный шаблон, добавлять или автоматически генерировать основные meta-теги и отображать как обычную Web-страницу. Использовал чистый PHP без всяких frameworks, поэтому работает быстро и с минимальным потреблением памяти.

Скачать можно тут: https://preambula.4xpro.ru
GitHub-репозиторий — https://github.com/XXXXPro/Preambula

Изначально думал, что напишу за два-три дня (и базовую рабочую версию за это время и сделал, причём один день ушёл на выбор Markdown-парсера), но потом всякие мелкие доделки и написание документации заняли ещё две недели.
#markdown #frontmatter #opensource #open_source

Barry Mienybarrymieny
2024-02-13

A blog post 22 months in the making!

You may think that it proclaims something profound, but I actually just forgot to do a follow-up post. Apologies for the letdown, but it's still an interesting topic: how to enrich Eleventy data.

tl;dr: Keep your front matter and directory data files clean and easily maintainable while smooshing them together with global data before using them in your templates.

The long version: barry.mieny.com/2024/02/13/enr

2024-02-03

I'm still not out of the rabbit hole of searching for an #OpenSource #PersonalKnowledgeManagement software. 🐰

I'm gonna give a second try to @zettlr tomorrow! Their docs are *surprisingly* user-friendly and they claim to stick to the pure #CommonMark where probable. It's all the while being nice to researchers with citing, inline usage of #TeXLaTeX, #MermaidJS, and pop-over #footnotes. Provision of the simple #PDF export and #Pandoc customization are welcome, too!

But, to be fair, I may be overexaggerating how good #Zettlr is because of my recent disgust with #VendorLocking. In fact, almost anything that closely follows the common spec and is #FreeSoftware might suffice already. Having something as advanced and closer to the roots is certainly refreshing!

#Markdown #zettelkasten #authoring #Zettlr #ReferenceManager #ReferenceManagers #PKM #NoteTaking #NoteTakingApp #NoteTakingApps #KaTeX #frontmatter #Obsidian #Logseq #Anytype #Notion #VendorLock #VendorLockIn #FOSS #FLOSS

2024-01-29

@mfru I can't wait to try out the extensions, but I'm going to take it slow (at least I'll try!) - I'll keep this on a back burner though. Although I have a lot of things integrated into vscode like #Frontmatter and #Platform.io, I can definitely see a future when simplicity will be better for certain projects. Unless there's anything in #emacs that could cater for #microcontroller programming or static site generation? I mean it's emacs, I'm sure there is 😂

Andreas Scherbaumascherbaum
2023-11-06

Using the Python "frontmatter" module, how can I output an empty list?

When I set the value to:

fm["field"] = []

Then the output does not include "field" at all. However I need the actual empty list in the output.

Any ideas? Thanks!

Reading Time: 3 minutesTable of Contents

  1. Decap CMS
  2. Yet Another Service
  3. FrontMatter.Code
  4. ClassicPress and WordPress
  5. And Finally

For weeks, or even months, by now I have been playing/experimenting with Hugo, 11ty and other solutions. I really like that with Hugo I can use FrontMatter as a CMS to create new posts, add the appropriate meta data, and keep track of what is published and what is in draft form. It allows me to create posts with the right metadata in seconds, rather than having to write the date, time, draft status and more by hand. It also generates the right file title for good archival practices.

Decap CMS

As I was looking for a CMS tool to make managing 11ty content easier I came across Decap CMS and it seemed interesting. I installed a version locally, and then I started to look at the code manually, rather than using the CMS tool. It felt complicated so I did some more research. Eventually I learned that in order to play with Decap CMS you need to setup a netlify account, a github account and then expose yourself to accidental charges when playing with a static website generator. I was struck by the paradox. Why would you use a CMS tool that requires you to commit to an external hosting tool? Why not use ClassicPress or WordPress and cut out the middle man. Of course the short answer is "because you still generate a static tool, but the interface is intuitive for non coders.

Yet Another Service

By requiring us to set things up via Netlify we're forced to use yet another service, which is fine, when you're using the service in the first place. I am not.

FrontMatter.Code

Within a few minutes frontmatter.codes could be setup locally do do what I want, to manage documents and frontmatter for an 11ty site. In so doing I keep development on the local machine, only connecting to the external server when I'm uploading site changes. I can use the same workflow as I have for Hugo, once I set it up.

ClassicPress and WordPress

It's easier, for me to setup a ClassicPress or WordPress CMS and use that. ClassicPress feels very fast and I can use markdown or html for pages that I am creating, or that already exist. Within a short amount of time I can do what Decap CMS does, anywhere I want.

For WordPress you can use this method/tutorial or with the free playground option. Within seconds you can have a wordpress instance running on azure, up and ready for a new site and content.

In particular, while App Service F1 will not generate any cost, database usage is chargeable for "pay as you go" plans or when the usage limit of 750 hours per month for 12 months is exceeded. So, in order to ensure they will not pay for the WordPress playground, developers should monitor and track their database usage.

With this tool a wordpress instance is prepared for you, and for a month you can see what the cost would be, before jumping into a financial commitment.

And Finally

If I am experimenting with a Static website generator like Hugo or 11ty I want to have local versions to play with, rather than remote ones that may cost something if I am not careful. If I'm reading it correctly the basic plan I'm experimenting with is 3 CHF per month for a server in Northern Switzerland. With this "playground" I have the opportunity to experiment, and see whether that is the case.

The testing options are cheap, but for production Azure and other cloud solutions are expensive, which is why we use other cloud solutions, especially for personal sites. I will spend time experimenting with Frontmatter, set up for 11ty, following this learning experience.

#11ty #CMS #eleventy #frontmatter #hugo

https://blog.main-vision.com/static-web-generators-and-cmses/

A firefish and a laptop
2023-08-21

Now that #Obsidian does proper support to links in frontmatter, I was finally motivated to replace the inline properties and add them to #frontmatter

Aritra Royaritraroy24
2023-08-06

I've written an article, "𝐇𝐨𝐰 𝐭𝐨 𝐒𝐞𝐧𝐝 𝐀𝐧𝐲 𝐃𝐚𝐭𝐚 𝐭𝐨 𝐘𝐨𝐮𝐫 𝐑𝐒𝐒 𝐅𝐞𝐞𝐝? 𝐀 𝐆𝐮𝐢𝐝𝐞 𝐰𝐢𝐭𝐡 𝐀𝐬𝐭𝐫𝐨 + 𝐑𝐒𝐒" on 𝕄𝕪 𝕎𝕖𝕓𝕤𝕚𝕥𝕖 www.aritraroy.live - Please take a look at my article with the following link-

aritraroy.live/tutorial/blogs/

## 𝙿𝚕𝚎𝚊𝚜𝚎 𝚌𝚘𝚖𝚖𝚎𝚗𝚝 𝚊𝚗𝚍 𝚜𝚑𝚊𝚛𝚎 🙏🙏🙏
-feed

--- 𝘼𝙧𝙞𝙩𝙧𝙖 𝙍𝙤𝙮, 𝙋𝙤𝙣𝙙𝙞𝙘𝙝𝙚𝙧𝙧𝙮 𝙐𝙣𝙞𝙫𝙚𝙧𝙨𝙞𝙩𝙮 (𝙈.𝙎𝙘. 𝘾𝙝𝙚𝙢𝙞𝙨𝙩𝙧𝙮, 𝘾𝙄𝙎 𝙇𝙖𝙗𝙤𝙧𝙖𝙩𝙤𝙧𝙮)

2023-07-26

For two days I have been trying to understand how to use Jekyll, a Ruby version of Hugo. It is a Static website generator that is similar to Hugo but rather than being written in Go, it is written in Ruby. I find that it renders sites faster than Hugo, but that it has less assistance for creating pages, giving them layouts and the rest. That’s why I experimented with YQ

a lightweight and portable command-line YAML, JSON and XML processor. YQ uses jq like syntax but works with yaml files as well as json, xml, properties, csv and tsv. It doesn’t yet support everything jq does – but it does support the most common operations and functions, and more is being added continuously.

I read about it in this article. You can install YQ with a brew command brew install yq or you can install it in a number of other ways, depending on whether you’re using MacOS, Linux or Windows.

The Use case

Exporting a WordPress blog to MD files can be done with a multitude of tools but they don’t add all the FrontMatter that you need for a blog, especially Jekyll. I imported the most recent blog posts, that I created for Hugo, with a year-month-date-title.md name to the posts folder but I created a second one for the archive. As the file title was different Jekyll did not like the files. The problem was the file name format, so that’s why I created a separate directory.

Side Note on Reading the Archives MD Files

Bard’s help: I provide this to help you understand Jekyll logic, as well as Bard help.

Getting It To Work On MacOS

In the article about using YQ to edit FrontMatter for Hugo pages the first part worked fine, but it’s written for Linux rather than macOS so some commands failed. This is where Bard comes in.You can ask Bard to explain what parts of a line of code or a command does and it will explain it to you, and you can eventually transfer the command that is understood by one OS and get it to work with the other.

I tried this find -name “*.md” -exec yq –front-matter=”process” ‘.updated_at = now’ {} \; but it failed to work. Bard was kind enough to explain the options for me to figure out which options to use. I added the correct path, and specified that I was looking for the files with the ‘type f’ flag.

find ./_posts -type f -name “*.md” -exec yq ‘.title’ {} \; To see the title of .md files 

I wanted to add these two lines to the FrontMatter of the files in the relevant folder.

I tested find ../unprocessed “*.md” -exec yq –front-matter=”process” ‘.updated_at = now’ {} \; and this works but does not make changes.

This works and updates the pages to add the updated at field to the metadata with the keyword now. The -i tells it to write to the file.

The full command is find ../unprocessed -name “*.md” -exec yq e –front-matter=”process” ‘.updated_at = now’ -i {} \; works to add updated now tag .

Implementing the Required Change

The lines that I wanted to add to the front matter were ‘layout: post’ and ‘categories:

‘. After the trial and error described above I tried:

find ../unprocessed -name “*.md” -exec yq e –front-matter=”process” ‘.updated_at = now’ -i {} \; works to add updated now tag

find ../unprocessed -name “*.md” -exec yq e –front-matter=”process” ‘.layout = post’ -i {} \; works to add updated now tag

Finally the command to make a permanent change was:

find ../_archives -name “*.md” -exec yq e –front-matter=”process” ‘.layout = “post”‘ -i {} \; 

find ../_archives -name “*.md” -exec yq e –front-matter=”process” ‘.categories = “[categories]”‘ -i {} \; 

  • A Quick explanation. The ../archives needs to be replaced with the name of the folder your files are in, when terminal i in the same folder. .layout and .categories are the names of the field to add and the “text” part is the content that you want to add to the front matter.
  • I have unprocessed and archives folders because I tested the code on two files to start with, and when I saw that it worked, then I moved to the main archives folder. I also used git to have a backup of the latest versions. If something had gone wrong I could have “stashed” the mistake, and been back to normal.

The first line ads the layout information to the FrontMatter post and the second one adds the categories information to the posts. Instead of spending hours doing something manually I was able to find the right tools to do what I wanted within seconds.

The Process

I knew what I wanted to do. I started with a google search to see if I could find a tool with some instructions and I did. The instructions were useful, but of limited use for my setup so I used the app’s documentation to try one thing, establishing that this worked, before moving on to accomplish the task that I had set for myself-. Google Bard was able to provide me with some help, but so did chatGPT.

The value of AI tools, in my eyes, is to help us understand the code we’re looking at, but also to help us tweak it for the OS we’re using, when we get error messages. I appreciate that with AI we can ask “I’m getting this error message, why?” and it will help find an answer to the question.

If a web article had provided me with a solution that worked I would have stuck to the web page and I would have little to write about. It is because of trial and error, and using four sources to achieve the goal that I wanted to achieve, that it becomes blog worthy.

#frontmatter #hugo #jekyll #yq

https://www.main-vision.com/richard/blog/yq-frontmatter-and-jekyll/

Watering small trees
2023-07-12

For those who want to use Hugo, but find post creation and management complicated there is a FrontMatter plugin that should help. This is a plugin that makes it easy to create new posts in the category of your choice. It automatically creates the title, description field, that you need to populate, date, preview, draft status, tags and categories. It displays each post as a block and you can see within seconds whether a post is published, or just a draft.

Server Spin Up

If you want to check how the page that you’re working on works you can spin up an instance and every time you stop typing the layout will be updated to show your changes. It’s quick and easy to use. Instead of remembering the commands to spin up an instance, close it and more, the plugin does that.

File Managment is Great

Although your old file names,from importing to Markdown from WordPress might be a mess, every new post is called year-month-date-title. This means that as you write new posts they are ordered in chronological order. Finding the most recent posts is quick and easy.

The Draw Back

The key draw back that I have come across so far, is that algough it plays very well with markdown, it ignores html files. This limits the app to people creating markdown sites, rather than HTML ones. This is a shame, since I really wanted to use it for my static site, rather than just this blog.

Within VS Code

The App runs within VS Code so you get all of the plugins and functionality that you are used to, within VS Code. If you are used to using VIM and commands this interface is much easier, for those unfamiliar with VS Code. It’s quick, it’s efficient, it’s clean. You need to spin up the server to see a preview of the page you’re working on.

Intuitive

This is a quick and intuitive way to write content for a Hugo website, without the need for a website running a CMS. It requires a shorter learning curve than my previous workflow.

Tagging

The Plugin generates a json file and within this file it keeps a collection of all the tags that you have used. When you create a page you can then type a few characters and choose the relevant tags. This helps keep tags consistent. When tagging it’s easy to write “Switzerland” in one place, and “switzerland” in another. By keeping track of all tags you can avoid having too many similar tags. Each tag is a page, so duplicate tags split the results page in two.

Just the Surface

I have only skimmed the surface, for now. I eill explore and learn more about how to use FrontMatter.

#frontmatter #hugo

https://www.main-vision.com/richard/blog/playing-with-front-matter/

2023-04-30

#Obsidian Пробы плагинов

Плагин Projects показывает заметки в виде таблицы, используя метаданные #frontmatter. Ну, такое мне не особо надо, ведь я создаю хранилище в виде текстовой сети, т.е. гипертекста. Таблицы тут нафик не упёрлись. Удалил.

Плагин Timelines тоже использует метаданные, но мне не удалось его запустить. Указал все теги, все блоки - но нифига. К тому же он два года как заброшен, нафик такое. Удалил.

А таймлайн мне нужен, буду искать.

2023-02-15

An exciting discovery this morning. I installed VSCodium on a whim as it is the FOSS variant of VS Code. Why devs would use an IDE from MS is beyond me. While fiddling with the extensions available I found Front Matter.

Holy sh*t!

It is a CMS for your SSG of choice that gives you a dashboard view of the content you are building and also lets you preview while editing. ‘

<mind blown>

frontmatter.codes/

#VSCodium #FrontMatter #Hugo #Mac

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst