├── src ├── CNAME ├── README.md ├── index.md └── zh-cn │ └── index.md ├── .gitignore ├── README.md ├── _config.resume.yml ├── .gitmodules ├── hexo-offline.config.cjs ├── package.json ├── LICENSE ├── .github └── workflows │ └── auto-deploy.yml └── _config.yml /src/CNAME: -------------------------------------------------------------------------------- 1 | resume.js.org 2 | -------------------------------------------------------------------------------- /src/README.md: -------------------------------------------------------------------------------- 1 | 请在index.md中写 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | db.json 4 | .deploy_git 5 | public 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # resume-docs 2 | 3 | https://resume.js.org 4 | 5 | https://resume-docs.vercel.app 6 | -------------------------------------------------------------------------------- /_config.resume.yml: -------------------------------------------------------------------------------- 1 | # the footer of your site 2 | copyright: '[Copyright © 2017-2020 XXX](/)' 3 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "themes/resume"] 2 | path = themes/resume 3 | url = https://xaoxuu@github.com/xaoxuu/hexo-theme-resume.git 4 | -------------------------------------------------------------------------------- /hexo-offline.config.cjs: -------------------------------------------------------------------------------- 1 | // hexo-offline v2 版写法 2 | // https://github.com/JLHwung/hexo-offline 3 | module.exports = { 4 | globPatterns: ["**/*.{js,html,css,png,jpg,gif,svg,eot,ttf,woff,woff2}"], 5 | globDirectory: "public", 6 | swDest: "public/service-worker.js", 7 | runtimeCaching: [ 8 | { 9 | urlPattern: /^https:\/\/cdnjs\.cloudflare\.com\/.*/, 10 | handler: "CacheFirst" 11 | }, 12 | { 13 | urlPattern: /^https:\/\/cdn\.jsdelivr\.net\/.*/, 14 | handler: "CacheFirst" 15 | }, 16 | ] 17 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hexo-site", 3 | "private": true, 4 | "hexo": { 5 | "version": "6.3.0" 6 | }, 7 | "engines": { 8 | "node": ">=16.x" 9 | }, 10 | "scripts": { 11 | "start": "hexo server", 12 | "build": "node pre-deploy.js && hexo clean && hexo generate", 13 | "deploy": "npm run build && hexo deploy" 14 | }, 15 | "dependencies": { 16 | "hexo": "^6.3.0", 17 | "hexo-autonofollow": "^1.0.1", 18 | "hexo-deployer-git": "^4.0.0", 19 | "hexo-lazyload-image": "^1.0.13", 20 | "hexo-offline": "^2.0.0", 21 | "hexo-renderer-ejs": "^2.0.0", 22 | "hexo-renderer-marked": "^6.1.1", 23 | "hexo-renderer-stylus": "^2.1.0", 24 | "hexo-server": "^3.0.0", 25 | "hexo-all-minifier": "^0.5.7", 26 | "hexo-fs": "^4.1.0" 27 | } 28 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Mr. X 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /.github/workflows/auto-deploy.yml: -------------------------------------------------------------------------------- 1 | name: auto deploy # workflow name 2 | 3 | on: 4 | [push] # 触发事件 5 | 6 | jobs: 7 | build: # job1 id 8 | runs-on: ubuntu-latest # 运行环境为最新版 Ubuntu 9 | name: A job to deploy blog. 10 | steps: 11 | - name: Checkout # step1 获取源码 12 | uses: actions/checkout@v1 # 使用 actions/checkout@v1 13 | with: # 条件 14 | submodules: true # Checkout private submodules(themes or something else). 当有子模块时切换分支? 15 | 16 | # Caching dependencies to speed up workflows. (GitHub will remove any cache entries that have not been accessed in over 7 days.) 缓存压缩 node_modules,不用每次下载,使用时解压,可以加快工作流的执行过程,超过 7 天没有使用将删除压缩包。 17 | - name: Cache node modules # step2 18 | uses: actions/cache@v1 19 | id: cache 20 | with: 21 | path: node_modules 22 | key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} 23 | restore-keys: | 24 | ${{ runner.os }}-node- 25 | - name: Install Dependencies # step3 name 26 | if: steps.cache.outputs.cache-hit != 'true' # 如果变量 cache-hit 不等于 true 27 | run: npm install # 安装 node modules 相关依赖 28 | 29 | # Deploy hexo blog website. 30 | - name: Deploy # step4 31 | id: deploy 32 | uses: sma11black/hexo-action@v1.0.0 33 | with: 34 | deploy_key: ${{ secrets.DEPLOY_KEY }} 35 | user_name: ${{ secrets.NAME }} 36 | user_email: ${{ secrets.EMAIL }} 37 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | # Hexo Configuration 2 | 3 | # Site 4 | language: zh-CN 5 | 6 | shortcut_icon: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/avatar/avatar.png 7 | favicon: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/avatar/avatar.png 8 | avatar: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/avatar/avatar.png 9 | 10 | # 主题 11 | theme: resume 12 | theme_config: 13 | robots: index,follow 14 | # URL 15 | ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' 16 | url: https://resume.js.org 17 | # url: http://localhost:4000 18 | root: / 19 | permalink: posts/:title/ 20 | tag_dir: tags 21 | archive_dir: archives 22 | category_dir: categories 23 | code_dir: downloads/code 24 | 25 | # Directory 26 | source_dir: src 27 | public_dir: public 28 | skip_render: README.md 29 | exclude: README.md 30 | 31 | # Writing 32 | new_post_name: :title.md # File name of new posts 33 | default_layout: post 34 | auto_spacing: false # Add spaces between asian characters and western characters 35 | titlecase: false # Transform title into titlecase 36 | max_open_file: 100 37 | multi_thread: true 38 | filename_case: 0 39 | render_drafts: false 40 | post_asset_folder: false 41 | highlight: 42 | enable: true 43 | line_number: false 44 | auto_detect: false 45 | tab_replace: ' ' 46 | 47 | index_generator: 48 | path: 'index' 49 | per_page: 10 50 | order_by: -date 51 | 52 | # Category & Tag 53 | default_category: uncategorized 54 | category_map: 55 | tag_map: 56 | 57 | # Archives 58 | ## 2: Enable pagination 59 | ## 1: Disable pagination 60 | ## 0: Fully Disable 61 | archive: 0 62 | category: 0 63 | tag: 0 64 | 65 | # Server 66 | ## Hexo uses Connect as a server 67 | ## You can customize the logger format as defined in 68 | ## http://www.senchalabs.org/connect/logger.html 69 | port: 4000 70 | logger: false 71 | logger_format: 72 | 73 | # Date / Time format 74 | ## Hexo uses Moment.js to parse and display date 75 | ## You can customize the date format as defined in 76 | ## http://momentjs.com/docs/#/displaying/format/ 77 | date_format: 'YYYY-MM-DD dddd' 78 | time_format: HH:mm:ss 79 | 80 | # Pagination 81 | ## Set per_page to 0 to disable pagination 82 | per_page: 10 83 | pagination_dir: page 84 | 85 | # Disqus 86 | disqus_shortname: 87 | 88 | # Extensions 89 | ## Plugins: https://github.com/tommy351/hexo/wiki/Plugins 90 | ## Themes: https://github.com/tommy351/hexo/wiki/Themes 91 | 92 | exclude_generator: 93 | 94 | # Markdown 95 | ## https://github.com/chjj/marked 96 | markdown: 97 | gfm: true 98 | pedantic: false 99 | sanitize: false 100 | tables: true 101 | breaks: true 102 | smartLists: true 103 | smartypants: true 104 | 105 | 106 | import: 107 | meta: 108 | - "" 109 | - "" 110 | - "" 111 | link: 112 | - "" 113 | - "" 114 | - "" 115 | - "" 116 | - "" 117 | # script: 118 | 119 | # Offline v2 版写法不允许写到 _config.yml 中 120 | ## Config passed to sw-precache 121 | ## https://github.com/JLHwung/hexo-offline 122 | # offline config passed to sw-precache. 123 | # offline: 124 | # maximumFileSizeToCacheInBytes: 10485760 125 | # staticFileGlobs: 126 | # - public/**/*.{js,html,css,png,jpg,gif,svg,eot,ttf,woff,woff2} 127 | # stripPrefix: public 128 | # verbose: true 129 | # runtimeCaching: 130 | # - urlPattern: /* 131 | # handler: cacheFirst 132 | # options: 133 | # origin: cdn.jsdelivr.net 134 | # - urlPattern: /* 135 | # handler: cacheFirst 136 | # options: 137 | # origin: cdnjs.cloudflare.com 138 | 139 | nofollow: 140 | enable: true 141 | exclude: 142 | - xaoxuu.com 143 | 144 | 145 | # npm i hexo-neat 146 | neat_enable: true 147 | 148 | 149 | 150 | # 图片懒加载 151 | lazyload: 152 | enable: true 153 | onlypost: false 154 | loadingImg: https://img.vim-cn.com/92/d570170f4f12e1ee829ca0e85a7dffeb77343a.svg 155 | 156 | 157 | # 百度统计key 158 | # baidu_analytics_key: cd037d28d6a6eaf5b81b7c9b024741cc 159 | 160 | # Deployment 161 | ## Docs: http://zespia.tw/hexo/docs/deployment.html 162 | deploy: 163 | - type: git 164 | repo: https://github.com/xaoxuu/resume.js.org.git 165 | branch: master 166 | message: update pages 167 | 168 | feed: 169 | type: atom 170 | path: atom.xml 171 | limit: 20 172 | -------------------------------------------------------------------------------- /src/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | # Language (Optional) 3 | lang: en 4 | # Site Keywords & Description 5 | keywords: Resume,Hexo,Resume Theme 6 | description: This is a cool resume theme for hexo. 7 | # Resume Title 8 | resume_title: Jon Snow's Resume 9 | # Job Applicant Name 10 | name: Jon Snow 11 | avatar: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/avatar/avatar.png 12 | # Contact 13 | contact: 14 | # URL 15 | - icon: fas fa-globe-europe 16 | text: https://resume.js.org 17 | url: https://resume.js.org 18 | # Email 19 | - icon: fas fa-envelope 20 | text: your email 21 | url: 22 | # Phone Number 23 | - icon: fas fa-phone-alt 24 | text: 1xxxxxxxxxx 25 | url: tel:10086 26 | # PDF Download Link 27 | download: 28 | title: Download 29 | icon: fas fa-download fa-fw 30 | url: https://github.com/xaoxuu/resume-docs 31 | --- 32 | 33 | {% raw %} 34 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |