antitheme 0.2.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c752cdf9dad5fcb79c12eb82b7ef54736eb602d556765a3b14e1d575388a67ac
4
- data.tar.gz: 9261d236f67ff7a7ce6409efe5d4e8a2d9f2ec3acf02b5d78ccd9ba5794b5be3
3
+ metadata.gz: 5fd8cb4092cf9e85a5cbbc575e27c591b077ede3e37eb653eb254011240e5f31
4
+ data.tar.gz: b080cfb8b05619b3d595c91777ebab1957f03c5b40542d4f360e656f08f19e00
5
5
  SHA512:
6
- metadata.gz: 57a0b102b2841506a0379af0c464aa3c2f952aaee50c6e107bb99166d941448b3548ea0cee046c76c2772f68bd231575620dfc023ff8befe4fa7643360f8ec67
7
- data.tar.gz: 39dcb99732403efff9ec4cb002ca4ef3b6978c4a2789a0d4efe0b283d21161468cc013c34b455be8ebeb3e9a17c4c82ef14ef30d588c4b1ae7e52a446a53f36a
6
+ metadata.gz: a594548ee7ac3a91691e67c32fc84ee75b81a04f2f516f403cf90a1ec786bd94ea1b6af1b1a06e346123bbae9a37ce089db87b7cb09320c5ae62cb77471330f7
7
+ data.tar.gz: a9b550e6cd5c510d225e28180f2f1c62fb27599316ef64f1161dd6d36926c4bc502fb72e72e3ef4d17f19006e909afbfd54ec3a0a74d67eb98e81fb16803f677
data/README.md CHANGED
@@ -1,50 +1,4 @@
1
1
  # antitheme
2
-
3
- Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
-
5
- To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
-
7
- TODO: Delete this and the text above, and describe your gem
8
-
9
- ## Installation
10
-
11
- Add this line to your Jekyll site's `Gemfile`:
12
-
13
- ```ruby
14
- gem "antitheme"
15
- ```
16
-
17
- And add this line to your Jekyll site's `_config.yml`:
18
-
19
- ```yaml
20
- theme: antitheme
21
- ```
22
-
23
- And then execute:
24
-
25
- $ bundle
26
-
27
- Or install it yourself as:
28
-
29
- $ gem install antitheme
30
-
31
- ## Usage
32
-
33
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
34
-
35
- ## Contributing
36
-
37
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/antitheme. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
38
-
39
- ## Development
40
-
41
- To set up your environment to develop this theme, run `bundle install`.
42
-
43
- Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
44
-
45
- When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
46
- To add a custom directory to your theme-gem, please edit the regexp in `antitheme.gemspec` accordingly.
47
-
48
- ## License
49
-
50
- The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
2
+ A minimalist theme for CVs and personal pages. The idea behind it is to separate
3
+ relatively structured info (contact info, work history) to be more yaml-driven
4
+ while more unstructured content is more markdown heavy.
@@ -0,0 +1,24 @@
1
+ education:
2
+ - degree: "BSc in Something"
3
+ institution: "School of Something, Somewhere"
4
+ years: "2010-2013"
5
+ thesis:
6
+ title: "A Study of Somethingology"
7
+ link: "link.to.thesis.example.com"
8
+ - degree: "BSc in Something"
9
+ institution: "School of Something, Somewhere"
10
+ years: "2010-2013"
11
+ thesis:
12
+ title: "A Study of Somethingology"
13
+ link: "link.to.thesis.example.com"
14
+ publications:
15
+ - title: "A Publication"
16
+ link: "https://example.com/pub1"
17
+ authors: "Me et al."
18
+ venue: "A conference"
19
+ year: "2022"
20
+ - title: "Something: explained"
21
+ link: "https://example.com/pub2"
22
+ authors: "Me"
23
+ venue: "Journal of Somethingology"
24
+ year: "2024"
@@ -0,0 +1,2 @@
1
+ mail: "me@example.com"
2
+ matrix: "@me:example.com"
data/_data/cv.yaml ADDED
@@ -0,0 +1,10 @@
1
+ jobs:
2
+ - employer: "Taxi Corp."
3
+ start: "1957"
4
+ end: "1978"
5
+ description: "Drove taxi"
6
+
7
+ - employer: "Truck Corp."
8
+ start: "1980"
9
+ end: ""
10
+ description: "Drove truck"
data/_data/nav.yaml CHANGED
@@ -5,5 +5,8 @@ pages:
5
5
  - title: CV
6
6
  url: /cv
7
7
 
8
+ - title: Academic
9
+ url: /academic
10
+
8
11
  - title: Contact
9
12
  url: /contact
@@ -0,0 +1,21 @@
1
+ <div class="academic">
2
+ <h2>Publications</h2>
3
+ {%-for pub in site.data.academic.publications-%}
4
+ <p>
5
+ {{ pub.authors }},
6
+ "<a href="{{ pub.link }}">{{ pub.title }}</a>",
7
+ {{ pub.venue }},
8
+ {{ pub.year }}
9
+ </p>
10
+ {% endfor %}
11
+
12
+ <h2>Education</h2>
13
+ {%-for ed in site.data.academic.education-%}
14
+ <p>
15
+ <a>Degree: {{ ed.degree }}, {{ ed.years }}</a><br>
16
+ <a>Institution: {{ ed.institution }}</a><br>
17
+ <a>Thesis: {{ ed.thesis.title}}</a><br>
18
+ <a>Available: {{ ed.thesis.link}}</a><br>
19
+ </p>
20
+ {% endfor %}
21
+ </div>
@@ -0,0 +1,5 @@
1
+ <div class="contact">
2
+ {%-for item in site.data.contact-%}
3
+ <p>{{ item[0] }}: {{ item[1] }}</a>
4
+ {% endfor %}
5
+ </div>
data/_includes/cv.html ADDED
@@ -0,0 +1,16 @@
1
+ <div class="cv">
2
+ <table>
3
+ <tr>
4
+ <th>Employer</th>
5
+ <th>Period</th>
6
+ <th>Description</th>
7
+ </tr>
8
+ {%-for job in site.data.cv.jobs-%}
9
+ <tr>
10
+ <td>{{ job.employer }}</td>
11
+ <td>{{ job.start }} - {{ job.end }}</td>
12
+ <td>{{ job.description }}</td>
13
+ </tr>
14
+ {% endfor %}
15
+ </table>
16
+ </div>
@@ -3,3 +3,5 @@ layout: default
3
3
  ---
4
4
 
5
5
  {{ content }}
6
+
7
+ {% include academic.html %}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% include contact.html %}
@@ -3,3 +3,5 @@ layout: default
3
3
  ---
4
4
 
5
5
  {{ content }}
6
+
7
+ {% include cv.html %}
@@ -1,22 +1,34 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en" data-theme="antitheme">
3
- {%- include head.html -%}
3
+ <head>
4
+ <title>
5
+ {{ site.title }} &middot; {{ page.title }}
6
+ </title>
7
+ <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" />
8
+ </head>
4
9
 
5
10
  <body>
6
11
  <div class="container">
7
12
 
8
- <header class="masthead">
9
- <h1 class="masthead-title">{{ page.title }}</h1>
10
- <nav class="masthead-nav">
11
- {%-include nav.html collection=site.data.nav.pages-%}
13
+ <header>
14
+ <h1>{{ page.title }}</h1>
15
+ <nav>
16
+ {%-for item in site.data.nav.pages-%}
17
+ <a href="{{ item.url }}" title="{{ item.title }}">
18
+ __{{ item.title }}__
19
+ </a>
20
+ {% unless forloop.last %}
21
+ <a>|</a>
22
+ {% endunless %}
23
+ {%-endfor-%}
12
24
  </nav>
13
25
  </header>
14
26
 
15
- <main class="content">
27
+ <main>
16
28
  {{ content }}
17
29
  </main>
18
30
 
19
- <footer class="footer">
31
+ <footer>
20
32
  </footer>
21
33
 
22
34
  </div>
@@ -0,0 +1,5 @@
1
+ .academic {
2
+ p {
3
+ padding: 0px 2rem;
4
+ }
5
+ }
@@ -0,0 +1 @@
1
+ .contact {}
data/_sass/_cv.scss ADDED
@@ -0,0 +1,5 @@
1
+ .cv {
2
+ td, th {
3
+ padding: 0px 15px;
4
+ }
5
+ }
@@ -15,5 +15,21 @@ body {
15
15
  .container {
16
16
  max-width: 800px;
17
17
  margin: 0 auto;
18
- padding: 4rem 2rem;
18
+ padding: 2rem 2rem;
19
19
  }
20
+
21
+ header {
22
+ h1 {
23
+ color: grey;
24
+ font-size: 42px;
25
+ }
26
+ }
27
+
28
+ nav {
29
+ padding: 0rem 2rem 1rem;
30
+ a {
31
+ text-decoration: none;
32
+ }
33
+ }
34
+
35
+ main {}
data/assets/css/main.scss CHANGED
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  ---
3
3
  @import "variables";
4
- @import "base";
5
- @import "masthead";
6
- @import "content";
4
+ @import "default";
5
+ @import "academic";
6
+ @import "contact";
7
+ @import "cv";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antitheme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - zluudg
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-20 00:00:00.000000000 Z
11
+ date: 2024-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.3'
27
- description:
27
+ description:
28
28
  email:
29
29
  - zluudg@zluudg.com
30
30
  executables: []
@@ -33,22 +33,28 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - LICENSE.txt
35
35
  - README.md
36
+ - _data/academic.yaml
37
+ - _data/contact.yaml
38
+ - _data/cv.yaml
36
39
  - _data/nav.yaml
37
- - _includes/head.html
38
- - _includes/nav.html
40
+ - _includes/academic.html
41
+ - _includes/contact.html
42
+ - _includes/cv.html
43
+ - _layouts/academic.html
44
+ - _layouts/contact.html
45
+ - _layouts/cv.html
39
46
  - _layouts/default.html
40
- - _layouts/index.html
41
- - _layouts/page.html
42
- - _sass/_base.scss
43
- - _sass/_content.scss
44
- - _sass/_masthead.scss
47
+ - _sass/_academic.scss
48
+ - _sass/_contact.scss
49
+ - _sass/_cv.scss
50
+ - _sass/_default.scss
45
51
  - _sass/_variables.scss
46
52
  - assets/css/main.scss
47
53
  homepage: https://gitlab.com/zluudg/antitheme
48
54
  licenses:
49
55
  - MIT
50
56
  metadata: {}
51
- post_install_message:
57
+ post_install_message:
52
58
  rdoc_options: []
53
59
  require_paths:
54
60
  - lib
@@ -63,8 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
69
  - !ruby/object:Gem::Version
64
70
  version: '0'
65
71
  requirements: []
66
- rubygems_version: 3.4.6
67
- signing_key:
72
+ rubygems_version: 3.4.20
73
+ signing_key:
68
74
  specification_version: 4
69
75
  summary: Attempted minimalistic Jekyll theme.
70
76
  test_files: []
data/_includes/head.html DELETED
@@ -1,6 +0,0 @@
1
- <head>
2
- <title>
3
- {{ site.title }} &middot; {{ page.title }}
4
- </title>
5
- <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" />
6
- </head>
data/_includes/nav.html DELETED
@@ -1,5 +0,0 @@
1
- {%-for item in include.collection-%}
2
- <a href="{{ item.url }}" title="{{ item.title }}" class="masthead-nav-item">
3
- {{ item.title }}
4
- </a>&nbsp;|&nbsp;
5
- {%-endfor-%}
data/_sass/_content.scss DELETED
@@ -1 +0,0 @@
1
- .content {}
data/_sass/_masthead.scss DELETED
@@ -1 +0,0 @@
1
- .masthead {}