arco 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 860a024f04415c6e0d8650dbcd4cdb11413b5fdd0ae5097a1fd843d81c4bf92d
4
- data.tar.gz: 245a865ff73a7b353aabd0cdb176a4d3191f82320f5d3843578dcfa8d3efbddd
3
+ metadata.gz: f309ed261570f257e221b24de154d9c7d9b0f2f443a73a25a88775ab4b83ef27
4
+ data.tar.gz: 871b1fcc3c148d04d37ccd2daee45430ec53c169cdf8cd4fcfbfe03e67d5a876
5
5
  SHA512:
6
- metadata.gz: 984f567c79b653a1de26f90d8e81d32d68a7bd53361d899169bee115c45d992c39f2ad1b6fd9bd5d83b766e34fee25624628f2f9e96e51fbe3693420f6015e32
7
- data.tar.gz: 3351f049130df6f552c283a1b3cc8e45342641ca54ebb39346a1207c7e139bf90eba472839c71d831e8e9fe5c490cd5ed7fb024ba21ede2f2f2ce7d32246516e
6
+ metadata.gz: 1174e51ab1b86d2c54ce1ca29cf2d2032a5249bcbb5f0bd133f894b1e4eca76b7d21c3df181a170e94773b4552c94ca202c7b8f839991df6c35db6e21803ccd4
7
+ data.tar.gz: 6a058386d888ec2ee6bc5f30deda5f863b662e66ab6165348fe03544d9e401c76b9153c41a801288196a432c3fad043b647efa54bd45ba1ee5e21c112516796e
@@ -0,0 +1,63 @@
1
+ # arco
2
+
3
+ Arco is a responsive fixed-sidebar layout with a two column masonry grid which also features a landing page, a 404 page and a simple permalink structure.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your Jekyll site's `Gemfile`:
8
+
9
+ ```ruby
10
+ gem "arco"
11
+ ```
12
+
13
+ And add this line to your Jekyll site's `_config.yml`:
14
+
15
+ ```yaml
16
+ theme: arco
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install arco
26
+
27
+ ## Usage
28
+
29
+ ### Site configuration
30
+
31
+ The following settings can be configured in your site's `_config.yml`
32
+
33
+ ```yaml
34
+ title: Site title
35
+ description: Site description
36
+ image: /assets/image.png
37
+ github_url: https://github.com/meebuhs
38
+ resume: true | false
39
+ ```
40
+
41
+ ### Expected post frontmatter
42
+
43
+ ```
44
+ ---
45
+ layout: post
46
+ title: Post title
47
+ summary: Post summary
48
+ category: completed | ongoing
49
+ permalink: /projects/post-title
50
+ cover-image: /assets/image-for-front-page.png
51
+ top-image: /assets/image-for-top-of-post.png
52
+ mathjax: true | false
53
+ ---
54
+ ```
55
+
56
+ ### Resume support
57
+
58
+ To add a resume to the site, set `resume: true` in your `_config.yml`.
59
+ Then create a folder called `_includes` at the root of your site and add your `resume.html` to it.
60
+
61
+ ## License
62
+
63
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,2 +1,7 @@
1
+ title: sitetitle
2
+ description: sitedescription
3
+ image: /assets/images/image.png
4
+ github_url: https://github.com/meebuhs
5
+ resume: true
1
6
  theme: arco
2
7
  highlighter: rouge
@@ -1,9 +1,10 @@
1
1
  <section id="cover" class="cover">
2
2
  <div class="cover-text">
3
- <h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1>
4
- <h6>{{ site.description | default: site.github.project_tagline }}</h6>
3
+ {% if site.image %}<img class="site-image" src="{{ site.image }}" />{% endif %}
4
+ <h1>{{ site.title }}</a></h1>
5
+ <h6>{{ site.description }}</h6>
5
6
  </div>
6
7
  <div id="open-button-container" class="open-button-container">
7
- <a href="/projects/" class="open-button">See my projects →</a>
8
+ <a href="/projects/" class="open-button">See my projects</a>
8
9
  </div>
9
10
  </section>
@@ -1,8 +1,9 @@
1
1
  <section id="sidebar" class="sidebar">
2
2
  <svg id="sidebar-fader"></svg>
3
3
  <div class="sidebar-text">
4
- <h1><a href="{{ "/projects/" | absolute_url }}" class="fade-onclick">{{ site.title | default: site.github.repository_name }}</a></h1>
5
- <h6>{{ site.description | default: site.github.project_tagline }}</h6>
4
+ {% if site.image %}<img class="site-image" src="{{ site.image }}" />{% endif %}
5
+ <h1><a href="{{ "/projects/" }}" class="fade-onclick">{{ site.title }}</a></h1>
6
+ <h6>{{ site.description }}</h6>
6
7
  </div>
7
8
  <div class="sidebar-links">
8
9
  {% assign identifier = page.url | split: "/" | last %}
@@ -17,7 +18,6 @@
17
18
  {% else %}
18
19
  <a href="{{ "/projects/ongoing" }}" class="fade-onclick">ongoing</a>
19
20
  {% endif %}
20
- /
21
- {% if site.github %}<a href="{{ site.github }}">github</a> {% endif %}{% if site.resume %} / <a href="{{ "/resume" }}" class="fade-onclick">resume</a> {% endif %}
21
+ {% if site.github_url %} / <a href="{{ site.github_url }}">github</a> {% endif %}{% if site.resume %} / <a href="{{ "/resume" }}" class="fade-onclick">resume</a> {% endif %}
22
22
  </div>
23
23
  </section>
@@ -0,0 +1,10 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-AU">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <link rel="stylesheet" href="/assets/css/main.css">
6
+ </head>
7
+ <body>
8
+ {{ content }}
9
+ </body>
10
+ </html>
@@ -7,5 +7,4 @@
7
7
  <body>
8
8
  {% include cover.html %}
9
9
  </body>
10
- <script src="/assets/js/cover-transitions.js"></script>
11
10
  </html>
@@ -0,0 +1,29 @@
1
+ @import "constants";
2
+ @import "fonts";
3
+
4
+ .notfound-text {
5
+ h1 {
6
+ color: $primary-highlight;
7
+ margin: 0;
8
+ }
9
+ h6 {
10
+ text-transform: uppercase;
11
+ font-size: .9rem;
12
+ color: $text-colour-light;
13
+ }
14
+ }
15
+
16
+ .notfound {
17
+ height: 100%;
18
+ width: 100%;
19
+ display: flex;
20
+ flex-direction: column;
21
+ text-align: center;
22
+ justify-content: center;
23
+ top: 0;
24
+ position: fixed;
25
+ z-index: 9999;
26
+ background: $sidebar-colour;
27
+ color: $text-colour-light;
28
+ transition: all .25s ease;
29
+ }
@@ -133,11 +133,15 @@ td, th {
133
133
  border-radius: 2px;
134
134
  }
135
135
 
136
-
137
136
  li, ul {
138
137
  line-height: 1.5em;
139
138
  }
140
139
 
140
+ .site-image {
141
+ width: 200px;
142
+ border-radius: 50%;
143
+ }
144
+
141
145
  .content {
142
146
  width: auto;
143
147
  height: auto;
@@ -3,10 +3,8 @@
3
3
 
4
4
  .cover-text {
5
5
  h1 {
6
+ color: $primary-highlight;
6
7
  margin: 0;
7
- :hover {
8
- color: lighten($primary-highlight, 14%);
9
- }
10
8
  }
11
9
  h6 {
12
10
  text-transform: uppercase;
@@ -71,11 +69,6 @@
71
69
  display: flex;
72
70
  flex-direction: column;
73
71
  }
74
-
75
- .slide {
76
- height: $sidebar-height;
77
- animation-name: slide-up;
78
- }
79
72
  }
80
73
 
81
74
  /* horizontal layout */
@@ -85,29 +78,4 @@
85
78
  text-align: center;
86
79
  justify-content: center;
87
80
  }
88
-
89
- .slide {
90
- width: $sidebar-width;
91
- animation-name: slide-left;
92
- }
93
- }
94
-
95
- @keyframes slide-left {
96
- from {
97
- width: 100%;
98
- }
99
-
100
- to {
101
- width: $sidebar-width;
102
- }
103
- }
104
-
105
- @keyframes slide-up {
106
- from {
107
- height: 100%;
108
- }
109
-
110
- to {
111
- height: $sidebar-height;
112
- }
113
- }
81
+ }
@@ -3,6 +3,7 @@
3
3
 
4
4
  @import "arco";
5
5
  @import "cover";
6
+ @import "404";
6
7
  @import "sidebar";
7
8
  @import "footer";
8
9
  @import "post-list";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - meebuhs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-26 00:00:00.000000000 Z
11
+ date: 2020-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -26,22 +26,25 @@ dependencies:
26
26
  version: '4.1'
27
27
  description:
28
28
  email:
29
- - alexeksharpe@gmail.com
29
+ - meebuhs@gmail.com
30
30
  executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
34
  - LICENSE.txt
35
+ - README.md
35
36
  - _config.yml
36
37
  - _includes/cover.html
37
38
  - _includes/footer.html
38
39
  - _includes/mathjax.html
39
40
  - _includes/sidebar.html
41
+ - _layouts/404.html
40
42
  - _layouts/default.html
41
43
  - _layouts/landing.html
42
44
  - _layouts/post-list.html
43
45
  - _layouts/post.html
44
46
  - _layouts/resume.html
47
+ - _sass/404.scss
45
48
  - _sass/arco.scss
46
49
  - _sass/constants.scss
47
50
  - _sass/cover.scss
@@ -65,7 +68,6 @@ files:
65
68
  - assets/fonts/roboto-mono/RobotoMono-BoldItalic.ttf
66
69
  - assets/fonts/roboto-mono/RobotoMono-Italic.ttf
67
70
  - assets/fonts/roboto-mono/RobotoMono-Regular.ttf
68
- - assets/js/cover-transitions.js
69
71
  - assets/js/fade-transitions.js
70
72
  - assets/js/post-grid-init.js
71
73
  - assets/js/sidebar.js
@@ -1,16 +0,0 @@
1
- document.addEventListener("DOMContentLoaded", function() {
2
- let openButton = document.getElementsByClassName("open-button");
3
- openButton[0].addEventListener("click", function(event) {
4
- let cover = document.getElementById("cover"),
5
- anchor = event.currentTarget;
6
-
7
- let listener = function() {
8
- window.location = anchor.href;
9
- cover.removeEventListener("animationend", listener);
10
- };
11
- cover.addEventListener("animationend", listener);
12
-
13
- event.preventDefault();
14
- cover.classList.add("slide");
15
- });
16
- });