arco 0.2.0 → 0.4.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: f309ed261570f257e221b24de154d9c7d9b0f2f443a73a25a88775ab4b83ef27
4
- data.tar.gz: 871b1fcc3c148d04d37ccd2daee45430ec53c169cdf8cd4fcfbfe03e67d5a876
3
+ metadata.gz: 7beb38bf0a9a4adf4aaef25d3efe27ad09db049c4a758f6d1398903b1ca7be66
4
+ data.tar.gz: 44d36acf3c59cb7bd38f2d2e42bc5eff4a5373299cc1cd2878b2740ace5bdd96
5
5
  SHA512:
6
- metadata.gz: 1174e51ab1b86d2c54ce1ca29cf2d2032a5249bcbb5f0bd133f894b1e4eca76b7d21c3df181a170e94773b4552c94ca202c7b8f839991df6c35db6e21803ccd4
7
- data.tar.gz: 6a058386d888ec2ee6bc5f30deda5f863b662e66ab6165348fe03544d9e401c76b9153c41a801288196a432c3fad043b647efa54bd45ba1ee5e21c112516796e
6
+ metadata.gz: 45504652d58ebb721e9e0987db680eb0453410ae02c169bdb5c5d06aa5232dc829a2c2f59f627a46c3fe72e6cae8a66c7ec1afc60fc72b5d16c9a66e8b4cf8ea
7
+ data.tar.gz: 22ff65c7b2342089b236e1ff4de8c2f87693fb5a00790e1c86e381022a63027bdc679a1fe94e043c4c1ed0c666dcd171267fd93748ef42466fb917f4a5e96880
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # arco
2
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.
3
+ Arco is a responsive fixed-sidebar layout with a two column masonry grid which also features a landing page, a 404 page, smooth page transitions and a simple permalink structure.
4
+
5
+ This theme also utilises [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag) and [jekyll-sitemap](https://github.com/jekyll/jekyll-sitemap) to ensure your work will be seen.
6
+
7
+ See this theme in use at [meebuhs.github.io](https://meebuhs.github.io) and check the [https://github.com/meebuhs/meebuhs.github.io](source code) to get yourself started.
4
8
 
5
9
  ## Installation
6
10
 
@@ -24,35 +28,68 @@ Or install it yourself as:
24
28
 
25
29
  $ gem install arco
26
30
 
31
+ ## Github Pages
32
+
33
+ In your `_config.yml` delete the `theme: ` line and add:
34
+
35
+ ```yaml
36
+ remote_theme: meebuhs/arco
37
+ ```
38
+
39
+ You also need to make the following changes in your `Gemfile`:
40
+
41
+ ```Gemfile
42
+ # Comment the jekyll gem
43
+ # gem "jekyll", "~> 4.1.0"
44
+ # Uncomment github-pages
45
+ gem "github-pages", group: :jekyll_plugins
46
+ ```
47
+
27
48
  ## Usage
28
49
 
50
+ ### Setup
51
+
52
+ To get started you need to copy the `pages` folder from this repository to your site.
53
+
54
+ By default it features a landing page, if you would like to bypass the landing page, delete `index.html` and then rename `projects.html` to `index.html`.
55
+
29
56
  ### Site configuration
30
57
 
31
58
  The following settings can be configured in your site's `_config.yml`
32
59
 
33
60
  ```yaml
34
- title: Site title
35
- description: Site description
36
- image: /assets/image.png
61
+ title: site-title
62
+ tagline: site-tagline
63
+ description: site-description
64
+ image: /assets/images/image.png
65
+ url: https://github.com/meebuhs/arco
37
66
  github_url: https://github.com/meebuhs
38
67
  resume: true | false
68
+ author: Alex Sharpe
69
+ lang: en-AU
39
70
  ```
40
71
 
72
+ There are additional parameters which can be set for use with `jekyll-seo-tag`. [See here for a complete list](https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md)
73
+
41
74
  ### Expected post frontmatter
42
75
 
43
76
  ```
44
77
  ---
45
78
  layout: post
46
79
  title: Post title
47
- summary: Post summary
80
+ description: Post description
48
81
  category: completed | ongoing
49
82
  permalink: /projects/post-title
50
83
  cover-image: /assets/image-for-front-page.png
51
- top-image: /assets/image-for-top-of-post.png
84
+ image: /assets/image-for-top-of-post.png
52
85
  mathjax: true | false
53
86
  ---
54
87
  ```
55
88
 
89
+ ### Markdown features
90
+
91
+ [Check here](https://meebuhs.github.io/projects/arco) for examples of the supported markdown features.
92
+
56
93
  ### Resume support
57
94
 
58
95
  To add a resume to the site, set `resume: true` in your `_config.yml`.
@@ -1,7 +1,16 @@
1
- title: sitetitle
2
- description: sitedescription
1
+ # Site settings
2
+ title: site-title
3
+ tagline: site-tagline
4
+ description: site-description
3
5
  image: /assets/images/image.png
6
+ url: https://github.com/meebuhs/arco
4
7
  github_url: https://github.com/meebuhs
5
8
  resume: true
9
+ author: Alex Sharpe
10
+ lang: en-AU
11
+
12
+ # Build settings
6
13
  theme: arco
7
- highlighter: rouge
14
+ plugins:
15
+ - jekyll-seo-tag
16
+ - jekyll-sitemap
@@ -1,10 +1,10 @@
1
- <section id="cover" class="cover">
1
+ <section class="cover">
2
2
  <div class="cover-text">
3
3
  {% if site.image %}<img class="site-image" src="{{ site.image }}" />{% endif %}
4
4
  <h1>{{ site.title }}</a></h1>
5
5
  <h6>{{ site.description }}</h6>
6
6
  </div>
7
- <div id="open-button-container" class="open-button-container">
8
- <a href="/projects/" class="open-button">See my projects</a>
7
+ <div class="open-button-container">
8
+ <a href="/projects/" id="open-button" class="button-dark">See my projects</a>
9
9
  </div>
10
10
  </section>
@@ -5,6 +5,7 @@
5
5
  <link rel="stylesheet" href="/assets/css/main.css">
6
6
  <link rel="stylesheet" href="/assets/flexmasonry/flexmasonry.css">
7
7
  <script src="/assets/flexmasonry/flexmasonry.js"></script>
8
+ {% seo %}
8
9
  </head>
9
10
  <body>
10
11
  {% include sidebar.html %}
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
5
  <link rel="stylesheet" href="/assets/css/main.css">
6
+ {% seo %}
6
7
  </head>
7
8
  <body>
8
9
  {% include cover.html %}
@@ -2,18 +2,21 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {% include mathjax.html %}
5
+ {% if page.mathjax %}
6
+ {% include mathjax.html %}
7
+ {% endif %}
6
8
 
7
9
  <section class="content">
8
10
  <svg id="content-fader"></svg>
9
11
  <div class="post">
10
12
  <div class="post-title"><h1>{{ page.title }}</h1></div>
13
+ <div class="post-description">{{ page.description }}</div>
11
14
  <div class="post-header">
12
15
  <span class="post-date">{{ page.date | date_to_string}}</span>
13
16
  &middot;
14
17
  <a href="{{ "/projects/" }}{{ page.category }}" class="fade-onclick"><span class="post-category">{{ page.category }}</span></a>
15
18
  </div>
16
- <img class="post-image" src="{{ page.top-image }}" />
19
+ <img class="post-image" src="{{ page.image }}" />
17
20
 
18
21
  <div class="post-content">
19
22
  {{ content }}
@@ -84,12 +84,9 @@ blockquote {
84
84
  padding: 0.5em 1em;
85
85
  }
86
86
 
87
- table, th, td {
88
- border: none;
89
- }
90
-
91
87
  .table {
92
88
  display: table;
89
+ border-collapse: collapse;
93
90
  }
94
91
 
95
92
  .table-cell {
@@ -114,14 +111,6 @@ table {
114
111
  > tr:nth-child(odd) {
115
112
  background-color: $table-background-colour;
116
113
  }
117
- > tr > td {
118
- border-radius: 0;
119
- }
120
- }
121
- &.centered {
122
- thead tr th, tbody tr td, tfoot tr td {
123
- text-align: center;
124
- }
125
114
  }
126
115
  }
127
116
 
@@ -130,7 +119,6 @@ td, th {
130
119
  display: table-cell;
131
120
  text-align: left;
132
121
  vertical-align: middle;
133
- border-radius: 2px;
134
122
  }
135
123
 
136
124
  li, ul {
@@ -0,0 +1,47 @@
1
+ @mixin button($background, $highlight) {
2
+ display: inline-block;
3
+ padding: 10px 25px;
4
+ border-radius: 5px;
5
+ transition: all .25s ease;
6
+ justify-content: center;
7
+ text-align: center;
8
+ border: 2px solid $background;
9
+ background-color: $background;
10
+ color: $highlight;
11
+ &:hover, &:focus {
12
+ background-color: $highlight;
13
+ color: $background;
14
+ }
15
+ }
16
+
17
+ .button-dark {
18
+ @include button(white, $sidebar-colour)
19
+ }
20
+
21
+ .button-dark-primary {
22
+ @include button($primary-highlight, $sidebar-colour)
23
+ }
24
+
25
+ .button-dark-secondary {
26
+ @include button($secondary-highlight, $sidebar-colour)
27
+ }
28
+
29
+ .button-dark-tertiary {
30
+ @include button($tertiary-highlight, $sidebar-colour)
31
+ }
32
+
33
+ .button-light {
34
+ @include button($sidebar-colour, white)
35
+ }
36
+
37
+ .button-light-primary {
38
+ @include button($primary-highlight, white)
39
+ }
40
+
41
+ .button-light-secondary {
42
+ @include button($secondary-highlight, white)
43
+ }
44
+
45
+ .button-light-tertiary {
46
+ @include button($tertiary-highlight, white)
47
+ }
@@ -19,22 +19,11 @@
19
19
  }
20
20
  }
21
21
 
22
- .open-button {
23
- height: 50px;
24
- width: 200px;
25
- border: 2px solid white;
26
- border-radius: 5px;
27
- transition: all .25s ease;
22
+ #open-button {
28
23
  display: flex;
29
24
  flex-direction: column;
30
25
  justify-content: center;
31
26
  text-align: center;
32
- background-color: $sidebar-colour;
33
- color: white;
34
- &:hover, &:focus {
35
- background-color: white;
36
- color: $sidebar-colour
37
- }
38
27
  }
39
28
 
40
29
  .open-button-container {
@@ -54,28 +43,7 @@
54
43
  background: $sidebar-colour;
55
44
  color: $text-colour-light;
56
45
  transition: all .25s ease;
46
+ flex-direction: column;
47
+ text-align: center;
48
+ justify-content: center;
57
49
  }
58
-
59
- /* vertical layout */
60
- @media only screen and (max-width: calc(2 * #{$sidebar-width - 1})), (orientation: portrait) {
61
- #cover {
62
- flex-direction: row;
63
- justify-content: space-evenly;
64
- align-items: center;
65
- text-align: center;
66
- }
67
-
68
- .cover-text {
69
- display: flex;
70
- flex-direction: column;
71
- }
72
- }
73
-
74
- /* horizontal layout */
75
- @media only screen and (min-width: calc(2 * #{$sidebar-width})) and (orientation: landscape) {
76
- #cover {
77
- flex-direction: column;
78
- text-align: center;
79
- justify-content: center;
80
- }
81
- }
@@ -3,10 +3,14 @@
3
3
  width: 100%;
4
4
  }
5
5
 
6
- .post-title h1{
6
+ .post-title h1 {
7
7
  margin-bottom: 0;
8
8
  }
9
9
 
10
+ .post-description {
11
+ margin-bottom: 0.5em;
12
+ }
13
+
10
14
  .post-date {
11
15
  color: $secondary-highlight;
12
16
  font-weight: bold;
@@ -34,4 +38,5 @@
34
38
  max-height: 600px;
35
39
  display: block;
36
40
  margin: 0 auto;
41
+ border-radius: 5px;
37
42
  }
@@ -39,8 +39,10 @@ pre code {
39
39
 
40
40
  .highlight {
41
41
  margin: 0;
42
+ border-radius: 5px;
42
43
  pre {
43
44
  position: relative;
45
+ border-radius: 5px;
44
46
  }
45
47
  pre code {
46
48
  color: #cccccc;
@@ -9,4 +9,5 @@
9
9
  @import "post-list";
10
10
  @import "post";
11
11
  @import "normalize";
12
- @import "syntax-highlighting";
12
+ @import "syntax-highlighting";
13
+ @import "buttons";
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.1
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-27 00:00:00.000000000 Z
11
+ date: 2020-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.1'
19
+ version: '3.5'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '3.5'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '4.1'
32
+ version: '5.0'
27
33
  description:
28
34
  email:
29
35
  - meebuhs@gmail.com
@@ -46,6 +52,7 @@ files:
46
52
  - _layouts/resume.html
47
53
  - _sass/404.scss
48
54
  - _sass/arco.scss
55
+ - _sass/buttons.scss
49
56
  - _sass/constants.scss
50
57
  - _sass/cover.scss
51
58
  - _sass/fonts.scss