Giter Site home page Giter Site logo

resume-it's Introduction

Resume-it

一个灵活的数据模板分离的在线简历生成器。 效果:https://xiao555.github.io/Resume/ 如果喜欢的话请给个star ^_^

Configuration

默认模板

这个默认模板是别人那搞得。。如果要用的话只需要修改 data.yaml 里的数据即可,YAML语法可以参考这里, 如果需要用到Markdowm语法,请在字段开头加上 !!md ,相应的前端模板要渲染md的话请加上safe过滤:{{ example | safe}}

自定义模板

HTML

html部分在template/index.html,这一部分是页面body的内容,采用Nunjucks模板引擎,如果需要修改head,请前往template/base.html.

写模板的时候请在必要的地方用一下判断,有的地方可能没有数据。

CSS

css部分在src/styles, 用stylus写的话写在stylus,css写的写在styles,新建的文件需要在index.jsimport一下,也可以import npm安装的库。

stylus的一些变量函数可以放在variables.styl, 其他文件直接用就行

注:

  1. 已经加载了font-awesome,可以直接用
  2. 加载了PostStylus,autoprefixer插件自动补全前缀
  3. 除了variables.styl默认导入,其他css文件都要在index.js里import

其他文件

如果有图片的话,放在src/assets/images/, 字体文件的话src/assets/fonts/,引用的时候无论html还是css路径这样写assets/path/to/file即可。

Usage

npm i
npm start

自动打开浏览器访问:http://localhost:4001/。 Browsersync 修改html、css、js后实时刷新。

Print

新增print版本,直接打印即可,注意勾选背景图片

Publish

请先在publish.sh 里配好repo地址,然后把已存在的build目录删掉,重新:

npm start
npm run publish

会提交到master分支和gh-pages分支 浏览:https://yourname.github.io/reponame/ 即可,print版访问:https://yourname.github.io/reponame/print.html

resume-it's People

Contributors

xiao555 avatar

Watchers

James Cloos avatar wj704 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.