Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
k8scat committed Jan 27, 2022
1 parent 707cc9e commit 7a9230c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Lint"
on: push

jobs:
ci:
name: "Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: dominikh/[email protected]
with:
version: "2021.1.1"
7 changes: 5 additions & 2 deletions pkg/markdown/meta_ordered.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,13 @@ func (m Meta) Set(path string, value interface{}) Meta {

root := m
t := m
for _, s := range strings.Split(subpath, ".") {
parts := strings.Split(subpath, ".")
for j, s := range parts {
n := Meta{}
t = append(t, yaml.MapItem{Key: s, Value: n})
t = n
if j < len(parts)-1 {
t = n
}
}
return root
}
Expand Down

0 comments on commit 7a9230c

Please sign in to comment.