{"action":"opened","issue":{"url":"https://api.github.com/repos/hexojs/hexo/issues/3192","repository_url":"https://api.github.com/repos/hexojs/hexo","labels_url":"https://api.github.com/repos/hexojs/hexo/issues/3192/labels{/name}","comments_url":"https://api.github.com/repos/hexojs/hexo/issues/3192/comments","events_url":"https://api.github.com/repos/hexojs/hexo/issues/3192/events","html_url":"https://github.com/hexojs/hexo/issues/3192","id":333406799,"node_id":"MDU6SXNzdWUzMzM0MDY3OTk=","number":3192,"title":"hexo generate transpiles .yml to .json","user":{"login":"djmtype","id":930713,"node_id":"MDQ6VXNlcjkzMDcxMw==","avatar_url":"https://avatars3.githubusercontent.com/u/930713?v=4","gravatar_id":"","url":"https://api.github.com/users/djmtype","html_url":"https://github.com/djmtype","followers_url":"https://api.github.com/users/djmtype/followers","following_url":"https://api.github.com/users/djmtype/following{/other_user}","gists_url":"https://api.github.com/users/djmtype/gists{/gist_id}","starred_url":"https://api.github.com/users/djmtype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djmtype/subscriptions","organizations_url":"https://api.github.com/users/djmtype/orgs","repos_url":"https://api.github.com/users/djmtype/repos","events_url":"https://api.github.com/users/djmtype/events{/privacy}","received_events_url":"https://api.github.com/users/djmtype/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-18T19:37:08Z","updated_at":"2018-06-18T19:37:08Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nThank you for reporting an issue. For general issues/bugs, please view https://hexo.io/docs/troubleshooting.html .\r\nBefore you submit your issue, please provide the following information as much as possible.\r\n-->\r\n\r\n## Environment Info\r\n\r\nNode version(`node -v`):\r\n8.1.0\r\nYour site `_config.yml` (Optional):\r\n\r\n```\r\n# Hexo Configuration\r\n## Docs: https://hexo.io/docs/configuration.html\r\n## Source: https://github.com/hexojs/hexo/\r\n\r\n# Site\r\ntitle: Hexo\r\nsubtitle:\r\ndescription:\r\nkeywords:\r\nauthor: John Doe\r\nlanguage:\r\ntimezone:\r\n\r\n# URL\r\n## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'\r\nurl: http://yoursite.com\r\nroot: /\r\npermalink: :year/:month/:day/:title/\r\npermalink_defaults:\r\n\r\n# Directory\r\nsource_dir: source\r\npublic_dir: public\r\ntag_dir: tags\r\narchive_dir: archives\r\ncategory_dir: categories\r\ncode_dir: downloads/code\r\ni18n_dir: :lang\r\nskip_render:\r\n\r\n# Writing\r\nnew_post_name: :title.md # File name of new posts\r\ndefault_layout: post\r\ntitlecase: false # Transform title into titlecase\r\nexternal_link: true # Open external links in new tab\r\nfilename_case: 0\r\nrender_drafts: false\r\npost_asset_folder: true\r\nrelative_link: false\r\nfuture: true\r\nhighlight:\r\n  enable: true\r\n  line_number: true\r\n  auto_detect: false\r\n  tab_replace:\r\n  \r\n# Home page setting\r\n# path: Root path for your blogs index page. (default = '')\r\n# per_page: Posts displayed per page. (0 = disable pagination)\r\n# order_by: Posts order. (Order by date descending by default)\r\nindex_generator:\r\n  path: ''\r\n  per_page: 10\r\n  order_by: -date\r\n  \r\n# Category & Tag\r\ndefault_category: uncategorized\r\ncategory_map:\r\ntag_map:\r\n\r\n# Date / Time format\r\n## Hexo uses Moment.js to parse and display date\r\n## You can customize the date format as defined in\r\n## http://momentjs.com/docs/#/displaying/format/\r\ndate_format: YYYY-MM-DD\r\ntime_format: HH:mm:ss\r\n\r\n# Pagination\r\n## Set per_page to 0 to disable pagination\r\nper_page: 10\r\npagination_dir: page\r\n\r\n# Extensions\r\n## Plugins: https://hexo.io/plugins/\r\n## Themes: https://hexo.io/themes/\r\ntheme: landscape\r\n\r\n# Deployment\r\n## Docs: https://hexo.io/docs/deployment.html\r\ndeploy:\r\n  type:\r\n\r\nall_minifier: false\r\n```\r\nYour theme `_config.yml` (Optional): \r\nDefault - Landscape\r\nHexo and Plugin version(`npm ls --depth 0`): \r\n\r\n## For BUG\r\n\r\n<!--\r\n 1. BUG description\r\n 2. The way to reproduce\r\n 3. Log with hexo <command> --debug\r\n-->\r\n\r\n```\r\n19:11:16.912 DEBUG Hexo version: 3.7.1\r\n19:11:16.913 DEBUG Working directory: ~/Sites/flimflam/\r\n19:11:16.962 DEBUG Config loaded: ~/Sites/flimflam/_config.yml\r\n19:11:16.976 DEBUG Plugin loaded: hexo-command-gzip\r\n19:11:16.976 DEBUG Plugin loaded: hexo-all-minifier\r\n19:11:16.977 DEBUG Plugin loaded: hexo-generator-archive\r\n19:11:16.978 DEBUG Plugin loaded: hexo-generator-category\r\n19:11:16.979 DEBUG Plugin loaded: hexo-generator-tag\r\n19:11:16.980 DEBUG Plugin loaded: hexo-generator-index\r\n19:11:16.981 DEBUG Plugin loaded: hexo-renderer-ejs\r\n19:11:16.982 DEBUG Plugin loaded: hexo-renderer-njucks\r\n19:11:17.050 DEBUG Plugin loaded: hexo-renderer-scss\r\n19:11:17.054 DEBUG Plugin loaded: hexo-renderer-marked\r\n19:11:17.055 DEBUG Plugin loaded: hexo-renderer-stylus\r\n19:11:17.094 DEBUG Plugin loaded: hexo-server\r\n19:11:17.097 DEBUG Script loaded: themes/landscape/scripts/fancybox.js\r\n19:11:17.097 DEBUG Loading database.\r\n19:11:17.111 INFO  Start processing\r\n19:11:17.133 DEBUG Processed: _posts/a-post.md\r\n19:11:17.133 DEBUG Processed: _posts/hello-world.md\r\n19:11:17.133 DEBUG Processed: about/index.md\r\n19:11:17.134 DEBUG Processed: admin/config.yml\r\n19:11:17.134 DEBUG Processed: admin/index.html\r\n19:11:17.139 DEBUG Processed: contact/index.md\r\n19:11:17.147 DEBUG Processed: _posts/a-post/hexo.png\r\n19:11:17.152 DEBUG Theme config loaded.\r\n19:11:17.153 DEBUG Processed: _config.yml\r\n19:11:17.153 DEBUG Processed: source/css/style.styl\r\n19:11:17.154 DEBUG Processed: source/fancybox/blank.gif\r\n19:11:17.154 DEBUG Processed: source/fancybox/fancybox_loading.gif\r\n19:11:17.154 DEBUG Processed: source/fancybox/fancybox_loading@2x.gif\r\n19:11:17.154 DEBUG Processed: source/fancybox/fancybox_overlay.png\r\n19:11:17.154 DEBUG Processed: source/fancybox/fancybox_sprite.png\r\n19:11:17.154 DEBUG Processed: source/fancybox/fancybox_sprite@2x.png\r\n19:11:17.155 DEBUG Processed: source/fancybox/jquery.fancybox.css\r\n19:11:17.155 DEBUG Processed: source/fancybox/jquery.fancybox.js\r\n19:11:17.155 DEBUG Processed: source/fancybox/jquery.fancybox.pack.js\r\n19:11:17.155 DEBUG Processed: source/js/script.js\r\n19:11:17.165 DEBUG Processed: layout/archive.ejs\r\n19:11:17.165 DEBUG Processed: layout/category.ejs\r\n19:11:17.165 DEBUG Processed: layout/index.ejs\r\n19:11:17.165 DEBUG Processed: layout/layout.ejs\r\n19:11:17.165 DEBUG Processed: layout/page.ejs\r\n19:11:17.166 DEBUG Processed: layout/post.ejs\r\n19:11:17.166 DEBUG Processed: layout/tag.ejs\r\n19:11:17.168 DEBUG Processed: languages/de.yml\r\n19:11:17.168 DEBUG Processed: languages/default.yml\r\n19:11:17.169 DEBUG Processed: languages/es.yml\r\n19:11:17.169 DEBUG Processed: languages/fr.yml\r\n19:11:17.169 DEBUG Processed: languages/ja.yml\r\n19:11:17.169 DEBUG Processed: languages/ko.yml\r\n19:11:17.169 DEBUG Processed: languages/nl.yml\r\n19:11:17.169 DEBUG Processed: languages/no.yml\r\n19:11:17.169 DEBUG Processed: languages/pt.yml\r\n19:11:17.169 DEBUG Processed: languages/ru.yml\r\n19:11:17.169 DEBUG Processed: languages/zh-CN.yml\r\n19:11:17.169 DEBUG Processed: languages/zh-TW.yml\r\n19:11:17.169 DEBUG Processed: source/css/fonts/FontAwesome.otf\r\n19:11:17.170 DEBUG Processed: source/css/fonts/fontawesome-webfont.eot\r\n19:11:17.170 DEBUG Processed: source/css/fonts/fontawesome-webfont.woff\r\n19:11:17.170 DEBUG Processed: source/fancybox/helpers/fancybox_buttons.png\r\n19:11:17.170 DEBUG Processed: source/fancybox/helpers/jquery.fancybox-buttons.css\r\n19:11:17.170 DEBUG Processed: source/fancybox/helpers/jquery.fancybox-buttons.js\r\n19:11:17.171 DEBUG Processed: source/fancybox/helpers/jquery.fancybox-media.js\r\n19:11:17.171 DEBUG Processed: source/fancybox/helpers/jquery.fancybox-thumbs.css\r\n19:11:17.171 DEBUG Processed: source/fancybox/helpers/jquery.fancybox-thumbs.js\r\n19:11:17.172 DEBUG Processed: source/css/fonts/fontawesome-webfont.ttf\r\n19:11:17.194 DEBUG Processed: layout/_partial/after-footer.ejs\r\n19:11:17.194 DEBUG Processed: layout/_partial/archive-post.ejs\r\n19:11:17.194 DEBUG Processed: layout/_partial/archive.ejs\r\n19:11:17.194 DEBUG Processed: layout/_partial/article.ejs\r\n19:11:17.194 DEBUG Processed: layout/_partial/footer.ejs\r\n19:11:17.194 DEBUG Processed: layout/_partial/gauges-analytics.ejs\r\n19:11:17.194 DEBUG Processed: layout/_partial/google-analytics.ejs\r\n19:11:17.194 DEBUG Processed: layout/_partial/head.ejs\r\n19:11:17.194 DEBUG Processed: layout/_partial/header.ejs\r\n19:11:17.194 DEBUG Processed: layout/_partial/mobile-nav.ejs\r\n19:11:17.194 DEBUG Processed: layout/_partial/sidebar.ejs\r\n19:11:17.194 DEBUG Processed: layout/_widget/archive.ejs\r\n19:11:17.195 DEBUG Processed: layout/_widget/category.ejs\r\n19:11:17.195 DEBUG Processed: layout/_widget/recent_posts.ejs\r\n19:11:17.195 DEBUG Processed: layout/_widget/tag.ejs\r\n19:11:17.195 DEBUG Processed: layout/_widget/tagcloud.ejs\r\n19:11:17.196 DEBUG Processed: source/css/fonts/fontawesome-webfont.svg\r\n19:11:17.196 DEBUG Processed: source/css/images/banner.jpg\r\n19:11:17.198 DEBUG Processed: layout/_partial/post/category.ejs\r\n19:11:17.198 DEBUG Processed: layout/_partial/post/date.ejs\r\n19:11:17.198 DEBUG Processed: layout/_partial/post/gallery.ejs\r\n19:11:17.198 DEBUG Processed: layout/_partial/post/tag.ejs\r\n19:11:17.198 DEBUG Processed: layout/_partial/post/title.ejs\r\n19:11:17.198 DEBUG Processed: layout/_partial/post/nav.ejs\r\n19:11:17.206 DEBUG Generator: page\r\n19:11:17.206 DEBUG Generator: post\r\n19:11:17.206 DEBUG Generator: archive\r\n19:11:17.206 DEBUG Generator: category\r\n19:11:17.206 DEBUG Generator: tag\r\n19:11:17.206 DEBUG Generator: index\r\n19:11:17.207 DEBUG Generator: asset\r\n19:11:17.210 INFO  Files loaded in 113 ms\r\n19:11:17.215 DEBUG Rendering page: about/index.html\r\n19:11:17.227 DEBUG Rendering page: admin/index.html\r\n19:11:17.233 DEBUG Rendering page: contact/index.html\r\n19:11:17.237 DEBUG Rendering post: 2018/06/17/a-post/index.html\r\n19:11:17.242 DEBUG Rendering post: 2018/06/15/hello-world/index.html\r\n19:11:17.246 DEBUG Rendering archive: archives/index.html\r\n19:11:17.249 DEBUG Rendering archive: archives/2018/index.html\r\n19:11:17.251 DEBUG Rendering archive: archives/2018/06/index.html\r\n19:11:17.254 DEBUG Rendering index: index.html\r\n19:11:17.335 INFO  0 files generated in 125 ms\r\n19:11:17.338 DEBUG Database saved\r\n```\r\n\r\n<!-- If you find that markdown files are not rendered as expected, please go to https://marked.js.org/demo/ to see if it can be reproduced there. If it can be reproduced, please file a bug to https://github.com/markedjs/marked.\r\n-->\r\n\r\n## For question\r\n\r\nI am trying to hook up Netlify's CMS to my Hexo site. It requires an `admin` directory to live inside the `public` directory. A `config.yml` file is required inside the `admin` directory in order to make the connection. Running `hexo generate` is converting this `config.yml` file into `config.json` for some reason. Is there a way to ignore this file from being processed, but included in the build?\r\n\r\nIncluding the following statement inside Hexo's `_config.yml` file will completely exclude the `admin/config.yml` file from being added to the `public` directory: \r\n\r\n```\r\nexclude:\r\n  - \"admin/config.yml\"\r\n```\r\n\r\nI found this advice somewhere. But, including the following inside Hexo's `_config.yml` doesn't work either, and will break the build process of `hexo generate`: \r\n\r\n```\r\nskip_render: \r\n  - \"admin/config.yml\"\r\n```"}}
{"actor":{"display_login":"djmtype"}}