Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout, Template Partial: how do they relate to each other #4108

Open
Eleanora1998 opened this issue Jan 29, 2020 · 0 comments
Open

Layout, Template Partial: how do they relate to each other #4108

Eleanora1998 opened this issue Jan 29, 2020 · 0 comments

Comments

@Eleanora1998
Copy link

@Eleanora1998 Eleanora1998 commented Jan 29, 2020

Check List

Please check followings before submitting a new issue.

  • [*] I have already read Docs page & Troubleshooting page
  • [*] I have already searched existing issues and they are not help to me
  • I examined error or warning messages and it's difficult to solve
  • [] Using the latest version of Hexo (run hexo version to check)
  • Node.js is higher than 8.6.0

Question

Do I understand correctly that

  1. there are two types of templates: layout and partial?
  2. Any template that is named exactly layout.ejs wraps not only layout templates with predefinded names (like page.ejs tag.ejs) but also custom layouts I create (e.g. my-own-template.ejs)?
  3. The template file is treated partial only when it's located under the folder named exactly partial?

Environment & Settings

Node.js & npm version

npm: v6.9.0
node: v10.16.3

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Hexo and Plugin version(npm ls --depth 0)

website@3.0.0 C:\Users\elean\Desktop\himnark\website
+-- UNMET DEPENDENCY firebase-tools@7.3.2
+-- hexo@3.9.0
+-- UNMET DEPENDENCY hexo-all-minifier@0.5.3
| +-- bluebird@3.5.3 deduped
| +-- cheerio@1.0.0-rc.3
| +-- clean-css@4.2.1
| +-- html-minifier@3.5.21
| +-- imagemin@6.1.0
| +-- imagemin-gifsicle@6.0.1
| +-- imagemin-jpegtran@6.0.0
| +-- imagemin-mozjpeg@8.0.0
| +-- imagemin-optipng@6.0.0
| +-- imagemin-pngquant@7.0.0
| +-- imagemin-svgo@7.0.0
| +-- minimatch@3.0.4 deduped
| `-- uglify-es@3.3.9
+-- hexo-filter-highlight@0.0.3
+-- hexo-generator-archive@0.1.5
+-- hexo-generator-author@0.0.5
+-- hexo-generator-category@0.1.3
+-- hexo-generator-i18n@0.0.7
+-- hexo-generator-index@0.2.1
+-- hexo-generator-index-i18n@0.2.1
+-- hexo-generator-search@2.4.0
+-- hexo-generator-tag@0.2.0
+-- hexo-pagination@1.0.0
+-- hexo-related-popular-posts@2.0.6
+-- hexo-renderer-ejs@0.3.1
+-- hexo-renderer-marked@0.3.2
+-- hexo-renderer-stylus@0.3.3
`-- hexo-server@0.3.3

npm ERR! missing: firebase-tools@7.3.2, required by website@3.0.0
npm ERR! missing: hexo-all-minifier@0.5.3, required by website@3.0.0
npm ERR! extraneous: firebase-tools@7.3.2 C:\Users\elean\Desktop\himnark\website\node_modules\firebase-tools       
npm ERR! missing: cheerio@1.0.0-rc.3, required by hexo-all-minifier@0.5.3
npm ERR! missing: imagemin-pngquant@7.0.0, required by hexo-all-minifier@0.5.3
npm ERR! missing: execa@1.0.0, required by imagemin-pngquant@7.0.0
npm ERR! missing: pngquant-bin@5.0.2, required by imagemin-pngquant@7.0.0
npm ERR! missing: cross-spawn@6.0.5, required by execa@1.0.0
npm ERR! missing: get-stream@4.1.0, required by execa@1.0.0
npm ERR! missing: execa@0.10.0, required by pngquant-bin@5.0.2
npm ERR! missing: cross-spawn@6.0.5, required by execa@0.10.0

Your package.json package.json

{
  "name": "website",
  "version": "3.0.0",
  "private": true,
  "scripts": {
    "build": "hexo generate",
    "serve": "hexo server",
    "deploy": "firebase deploy --token $FIREBASE_TOKEN"
  },
  "hexo": {
    "version": "3.9.0"
  },
  "dependencies": {
    "firebase-tools": "latest",
    "hexo": "^3.9.0",
    "hexo-all-minifier": "^0.5.3",
    "hexo-filter-highlight": "0.0.3",
    "hexo-generator-archive": "^0.1.5",
    "hexo-generator-author": "0.0.5",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-i18n": "0.0.7",
    "hexo-generator-index": "^0.2.1",
    "hexo-generator-index-i18n": "^0.2.1",
    "hexo-generator-search": "^2.4.0",
    "hexo-generator-tag": "^0.2.0",
    "hexo-pagination": "^1.0.0",
    "hexo-related-popular-posts": "^2.0.6",
    "hexo-renderer-ejs": "^0.3.1",
    "hexo-renderer-marked": "^0.3.2",
    "hexo-renderer-stylus": "^0.3.3",
    "hexo-server": "^0.3.3"
  },
  "devDependencies": {
    "hexo-server": "^0.3.1"
  }
}

Others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.