antitheme 0.1.0 → 0.3.0

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: a4705886702d106a7f24a268d1a82c7a17066a959ac1ba8b0f1923c679e7a90a
4
- data.tar.gz: 01e22129c487adfde24e1b835caffdc407d4df0fdc55ed6f312997c36ac03dd3
3
+ metadata.gz: f2ecfbc781309398254febf239cafb4f24cd94b2931d9786fc2e218cd31fdda0
4
+ data.tar.gz: 0423e9ce00633042a9b4b0c9bf54bc24476343d01c5006dda276727a6f21f129
5
5
  SHA512:
6
- metadata.gz: fee9f9da955d1f0f135ed77b13351d2443fd7721d15c2d475cbec20952d56a694a27126e7a6d019285761f9027caf986729e17d37f207a4d9e4862927fdc380f
7
- data.tar.gz: 19a39b17761bdac4f7f084137e8646cc4afa7a69dcc871c4ad21c583845351ce7d22587f66bb9daaa40007312d71153510ff6860d327ffc9d4e90fd4e44f57c1
6
+ metadata.gz: 1572467c483d19af1ecc3fd9f635f67506a0577d3f14369867fa7d6ff8271583e5b6291a8cd80c9746b90d10910563bd4300905ebfa7776cb531f8736c0fe711
7
+ data.tar.gz: bebf10ad4602caf96687f0d51579599918f7882ebc62168abbd20d967d6730e7f7113fb88229937a52a7dba2b64ed7474d00a899a70512ec1da6f3390abdf17e
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 ADDED
@@ -0,0 +1,12 @@
1
+ pages:
2
+ - title: Home
3
+ url: /
4
+
5
+ - title: CV
6
+ url: /cv
7
+
8
+ - title: Academic
9
+ url: /academic
10
+
11
+ - title: Contact
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 +1,37 @@
1
- {{ content }}
1
+ <!DOCTYPE html>
2
+ <html lang="en" data-theme="antitheme">
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>
9
+
10
+ <body>
11
+ <div class="container">
12
+
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-%}
24
+ </nav>
25
+ </header>
26
+
27
+ <main>
28
+ {{ content }}
29
+ </main>
30
+
31
+ <footer>
32
+ </footer>
33
+
34
+ </div>
35
+ </body>
36
+
37
+ </html>
@@ -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
+ }
@@ -0,0 +1,35 @@
1
+ html, body { background: black; }
2
+
3
+ html { height: 100%; }
4
+
5
+ body {
6
+ color: gray;
7
+ font-family: monospace;
8
+ font-size: 16px;
9
+ line-height: 1.4;
10
+ margin: 0;
11
+ min-height: 100%;
12
+ overflow-wrap: break-word;
13
+ }
14
+
15
+ .container {
16
+ max-width: 800px;
17
+ margin: 0 auto;
18
+ padding: 2rem 2rem;
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 {}
File without changes
@@ -0,0 +1,7 @@
1
+ ---
2
+ ---
3
+ @import "variables";
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.1.0
4
+ version: 0.3.0
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-05 00:00:00.000000000 Z
11
+ date: 2024-04-11 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,14 +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
39
+ - _data/nav.yaml
40
+ - _includes/academic.html
41
+ - _includes/contact.html
42
+ - _includes/cv.html
43
+ - _layouts/academic.html
44
+ - _layouts/contact.html
45
+ - _layouts/cv.html
36
46
  - _layouts/default.html
37
- - _layouts/page.html
38
- - _layouts/post.html
47
+ - _sass/_academic.scss
48
+ - _sass/_contact.scss
49
+ - _sass/_cv.scss
50
+ - _sass/_default.scss
51
+ - _sass/_variables.scss
52
+ - assets/css/main.scss
39
53
  homepage: https://gitlab.com/zluudg/antitheme
40
54
  licenses:
41
55
  - MIT
42
56
  metadata: {}
43
- post_install_message:
57
+ post_install_message:
44
58
  rdoc_options: []
45
59
  require_paths:
46
60
  - lib
@@ -55,8 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
69
  - !ruby/object:Gem::Version
56
70
  version: '0'
57
71
  requirements: []
58
- rubygems_version: 3.4.6
59
- signing_key:
72
+ rubygems_version: 3.4.20
73
+ signing_key:
60
74
  specification_version: 4
61
75
  summary: Attempted minimalistic Jekyll theme.
62
76
  test_files: []