Skip to content

Commit

Permalink
feat: blog
Browse files Browse the repository at this point in the history
- add 'cut' for more
- spacing
  • Loading branch information
srl295 committed Jan 2, 2024
1 parent 7483bd2 commit d94c098
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .vitepress/theme/CodeHiveLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ const { frontmatter } = useData()
<template #doc-after v-if="frontmatter.index">
<ul>
<li class="bloglink" v-for="post of posts">
<a :href="post.url"><h1><b>{{ post.date[1] }}</b>: {{ post.title }}</h1></a>
<a :href="post.url"><h1><b>{{ post.title }}</b></h1></a>
<h2>{{ post.date[1] }}</h2>
<p v-if="post.excerpt" v-html="post.excerpt"/>
<a :href="post.url" v-if="post.excerpt"><i>Read more…</i></a>
</li>
</ul>
</template>
Expand All @@ -41,6 +44,11 @@ const { frontmatter } = useData()

<style scoped>
.bloglink i {
font-weight: bolder;
}
li.bloglink {
list-style-type: circle;
margin-left: 3em;
Expand Down
2 changes: 2 additions & 0 deletions en/posts/2022-in-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ date: 2022-12-26

Well, it was 2.5 years since I posted the [srl.next](https://srl295.github.io/2020/07/16/srl-next/) article and clearly a lot has gone on.

---

We’re at the end of the year, when in the [Gregorian calendar](https://en.wikipedia.org/wiki/Gregorian_calendar) we remember and celebrate Christ’s incarnation—Christmas! So this post will serve as a bit of an update.

## What’s been going on?
Expand Down
2 changes: 2 additions & 0 deletions en/posts/2022-kbd-progress.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ This is a follow-on to the end-of-year [Code Hive Tx 2022](./2022-in-review.md)

The purpose of this post is to give some updated progress on the status of implementing CLDR (LDML format) keyboards in [SIL Keyman](https://keyman.com).

---

# Basic Test

In Keyman, there’s a sample XML file named [`basic.xml`](https://github.com/keymanapp/keyman/blob/feature-ldml/developer/src/kmc-keyboard/test/fixtures/basic.xml). It’s not a “real” keyboard, but instead a unit test file. In fact, as a keyboard it has only two keys. Here is the file in part (skipping aspects not relevant to this test):
Expand Down
1 change: 1 addition & 0 deletions src/blog.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export { data };

export default createContentLoader('en/posts/*.md', {
excerpt: true,
render: true,
transform(raw): Post[] {
return raw
.filter(({ frontmatter }) => !frontmatter?.draft)
Expand Down

0 comments on commit d94c098

Please sign in to comment.