-
Notifications
You must be signed in to change notification settings - Fork 86
/
themes.html
115 lines (113 loc) · 3.51 KB
/
themes.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
layout: default
title: Themes
---
<header id="header">
<div class="container">
<div class="row">
<div class="col-sm-12">
<h1>Themes</h1>
</div>
</div>
</div>
</header>
<div id="themes" class="container">
<p>
There are over
<a
href="https://www.npmjs.com/search?ranking=maintenance&q=jsonresume-theme"
>400+ npm packages</a
>
of themes that we pick official themes from. They are all open source and
built by the community.
</p>
<p>
Not all themes that are available in our hosted offering are listed below,
you can see a list at
<a href="https://registry.jsonresume.org/themes"
>https://registry.jsonresume.org/themes</a
>
</p>
<p>
Preview them by just editing the query string
<a href="https://registry.jsonresume.org/thomasdavis?theme=flat"
>https://registry.jsonresume.org/thomasdavis?theme=flat</a
>
</p>
<div class="row">
{% for theme in site.data.themes %}
<div class="col-sm-4 col-md-3">
<div class="theme">
<div class="row">
<div class="col-sm-12 col-xs-6">
<a
href="https://registry.jsonresume.org/thomasdavis?theme={{ theme.slug }}"
>
<img
style="height: 129px;"
src="/img/themes/{{ theme.slug }}.jpeg"
/>
</a>
</div>
<div class="col-sm-12 col-xs-6 meta">
<div class="name">{{ theme.name }}</div>
<div class="author">
by <a href="{{theme.link}}" target="_blank">{{ theme.author }}</a>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<a
href="https://registry.jsonresume.org/thomasdavis?theme={{ theme.slug }}"
class="btn"
>Preview theme</a
>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="row">
<div class="clear: both;"></div>
<h2>Want to develop your own?</h2>
<p>
Check out an example boilerplate theme ->
<a href="https://github.com/jsonresume/jsonresume-theme-boilerplate"
>https://github.com/jsonresume/jsonresume-theme-boilerplate</a
>.
<br />
<br />
Here is an example of a more well done and modern theme ->
<a href="https://github.com/davcd/jsonresume-theme-actual"
>https://github.com/davcd/jsonresume-theme-actual</a
>.
<br />
<br />
For an even better theme development environment, try this ->
<a href="https://github.com/kelyvin/jsonresume-theme-caffeine"
>https://github.com/kelyvin/jsonresume-theme-caffeine</a
>.
<br />
<br />
In short, if you want to add a theme to the official list, you need to
publish an NPM module named `jsonresume-theme-{name}`. That module needs
to export a function called `render` that takes a `resume.json` and
returns a plain HTML string.
</p>
<h3>Getting started</h3>
<p>
If you are using the registry to host your resume, you can easily test
different themes by appending a query string e.g.
</p>
<a href="https://registry.jsonresume.org/thomasdavis?theme=flat"
>https://registry.jsonresume.org/thomasdavis?theme=flat</a
>
<p>
Or you can set the default theme for your resume on the registry by using
the <code>--theme</code> option in the CLI tool e.g.
</p>
<code>resume publish --theme flat</code>
</div>
</div>