From 25ded86728651c023a7f73de71e609a3eca3fde2 Mon Sep 17 00:00:00 2001 From: nullnein Date: Thu, 5 Dec 2024 11:44:26 +0100 Subject: [PATCH 1/2] Added my jekyll yaml package --- packages/jekyll-yaml/0.1.0/README.md | 25 ++++++++++++++++++++++++ packages/jekyll-yaml/0.1.0/_manifest.yml | 6 ++++++ packages/jekyll-yaml/0.1.0/package.yml | 12 ++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 packages/jekyll-yaml/0.1.0/README.md create mode 100644 packages/jekyll-yaml/0.1.0/_manifest.yml create mode 100644 packages/jekyll-yaml/0.1.0/package.yml diff --git a/packages/jekyll-yaml/0.1.0/README.md b/packages/jekyll-yaml/0.1.0/README.md new file mode 100644 index 0000000..3025ce0 --- /dev/null +++ b/packages/jekyll-yaml/0.1.0/README.md @@ -0,0 +1,25 @@ +This package lets you add some yaml-metadata to a jekyll post. + +Typing `:newpost` yields the following: + +``` +--- +date: 2024-12-05 +author: YourName +tags: +category: +title: +--- +``` + +Date is set to the current date and authorname can obviously be adjusted. + +Please make sure to add tags like the following and remain consistent: + +``` +... +tags: + - tag1 + - tag2 +... +`` \ No newline at end of file diff --git a/packages/jekyll-yaml/0.1.0/_manifest.yml b/packages/jekyll-yaml/0.1.0/_manifest.yml new file mode 100644 index 0000000..3002b8d --- /dev/null +++ b/packages/jekyll-yaml/0.1.0/_manifest.yml @@ -0,0 +1,6 @@ +name: "jekyll yaml metadata" +title: "Jekyll YAML metadata" +description: A simple package to add metadata to your jekyll posts before writing. +version: 0.1.0 +author: mathis +tags: ["jekyll", "yaml"] \ No newline at end of file diff --git a/packages/jekyll-yaml/0.1.0/package.yml b/packages/jekyll-yaml/0.1.0/package.yml new file mode 100644 index 0000000..7e68e35 --- /dev/null +++ b/packages/jekyll-yaml/0.1.0/package.yml @@ -0,0 +1,12 @@ +matches: + - trigger: ":newpost" + replace: "---\ndate: {{mydate}}\nauthor: {{autorname}}\ntags:\ncategory:\ntitle:\n---" + vars: + - name: autorname + type: echo + params: + echo: YourName + - name: mydate + type: date + params: + format: "%Y-%m-%d" \ No newline at end of file From 6eef6ff8bc6e88acfc62ef4b21a34561eacb827f Mon Sep 17 00:00:00 2001 From: nullnein Date: Thu, 5 Dec 2024 19:31:58 +0100 Subject: [PATCH 2/2] small changes after review, both bot and human --- packages/jekyll-yaml/0.1.0/README.md | 8 +++++--- packages/jekyll-yaml/0.1.0/_manifest.yml | 5 +++-- packages/jekyll-yaml/0.1.0/package.yml | 9 +++++---- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/packages/jekyll-yaml/0.1.0/README.md b/packages/jekyll-yaml/0.1.0/README.md index 3025ce0..80913f9 100644 --- a/packages/jekyll-yaml/0.1.0/README.md +++ b/packages/jekyll-yaml/0.1.0/README.md @@ -14,12 +14,14 @@ title: Date is set to the current date and authorname can obviously be adjusted. +Change the value `YourName` in line 5 of this package's `package.yml`. + Please make sure to add tags like the following and remain consistent: ``` -... +author: tags: - tag1 - tag2 -... -`` \ No newline at end of file +category: +``` \ No newline at end of file diff --git a/packages/jekyll-yaml/0.1.0/_manifest.yml b/packages/jekyll-yaml/0.1.0/_manifest.yml index 3002b8d..d8cd9ad 100644 --- a/packages/jekyll-yaml/0.1.0/_manifest.yml +++ b/packages/jekyll-yaml/0.1.0/_manifest.yml @@ -1,6 +1,7 @@ -name: "jekyll yaml metadata" +name: "jekyll-yaml" title: "Jekyll YAML metadata" description: A simple package to add metadata to your jekyll posts before writing. version: 0.1.0 author: mathis -tags: ["jekyll", "yaml"] \ No newline at end of file +tags: ["jekyll", "yaml"] +homepage: https://github.com/nullnein/espanso-hub/tree/main \ No newline at end of file diff --git a/packages/jekyll-yaml/0.1.0/package.yml b/packages/jekyll-yaml/0.1.0/package.yml index 7e68e35..2fb33e4 100644 --- a/packages/jekyll-yaml/0.1.0/package.yml +++ b/packages/jekyll-yaml/0.1.0/package.yml @@ -1,11 +1,12 @@ +global_vars: + - name: autorname + type: echo + params: + echo: YourName matches: - trigger: ":newpost" replace: "---\ndate: {{mydate}}\nauthor: {{autorname}}\ntags:\ncategory:\ntitle:\n---" vars: - - name: autorname - type: echo - params: - echo: YourName - name: mydate type: date params: