This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import fs from "fs"; | |
| const photosJSONFile = "./src/photos/photos.json"; | |
| const authorId = 21073844; // Need to replace it with your author ID. | |
| const baseURL = "https://wordpress.org/photos/wp-json/wp/v2/photos/"; | |
| const getURL = (page, perPage) => { | |
| return ( | |
| baseURL + `?author=${authorId}&per_page=${perPage}&page=${page}&_embed` | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| theme = "emacs" | |
| [editor] | |
| # Line number will be based on your current cursor position. | |
| line-number = "relative" | |
| # Enable mouse mode (default: true) | |
| # If set to true, you'll be able to select text with your mouse, | |
| # and then you can perform normal actions like cut and paste, | |
| # personally I don't like it. | |
| mouse = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| theme = 'github_light_colorblind' | |
| [editor] | |
| line-number = 'absolute' | |
| mouse = false | |
| bufferline = 'always' | |
| auto-format = false | |
| auto-save = true | |
| true-color = true |