Skip to content

Commit d3722e9

Browse files
committed
update css
1 parent 920d0ca commit d3722e9

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Snippets/Alphabetized List 1/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,25 +109,25 @@ This version is much easier to read the code. It includes formatting and comment
109109
```dataviewjs
110110
dv.container.className += ' atx-alv1-dataview'
111111
112-
var html = "";
113-
let arrABC = [];
114-
let arrPages = dv.pages( "" )
112+
var html = "";
113+
let arrABC = [];
114+
let arrPages = dv.pages( "" )
115115
.forEach( p =>
116116
{
117-
const file = p.file
118-
const file_path = file.path;
119-
const file_name = file.name;
120-
const file_label = file.frontmatter.name || file.frontmatter.title || file.frontmatter.alias || file_name;
117+
const file = p.file
118+
const file_path = file.path;
119+
const file_name = file.name;
120+
const file_label = file.frontmatter.name || file.frontmatter.title || file.frontmatter.alias || file_name;
121121
122-
const letter = file_label.charAt( 0 ).toUpperCase( );
123-
let index = arrABC.findIndex( ( item ) => item.name === letter );
122+
const letter = file_label.charAt( 0 ).toUpperCase( );
123+
let index = arrABC.findIndex( ( item ) => item.name === letter );
124124
125125
if ( index === -1 )
126126
arrABC.push( { name: letter, pages: [ { name: file_name, label: file_label, path: file_path } ] } );
127127
else
128128
{
129-
var item = arrABC.find( item => item.name == letter );
130-
let arr = item.pages;
129+
var item = arrABC.find( item => item.name == letter );
130+
let arr = item.pages;
131131
132132
arr.push( { name: file_name, label: file_label, path: file_path } );
133133
}
@@ -139,15 +139,15 @@ dv.list(
139139
dv.array( arrABC )
140140
.forEach( obj =>
141141
{
142-
const arrPages = obj.pages;
142+
const arrPages = obj.pages;
143143
144144
html += "\n<details><summary>" + obj.name + "</summary>\n\n";
145145
146146
Promise.all( arrPages.map( async ( pages ) =>
147147
{
148-
const page_path = pages.path;
149-
const page_name = pages.name;
150-
const page_label = pages.label;
148+
const page_path = pages.path;
149+
const page_name = pages.name;
150+
const page_label = pages.label;
151151
152152
const file_link = dv.fileLink( page_path, false, page_label );
153153

0 commit comments

Comments
 (0)