Browse Source

Initial commit.

master
Syfaro 1 year ago
commit
fc769e4226
5 changed files with 194 additions and 0 deletions
  1. 71
    0
      assets/css/main.css
  2. 60
    0
      default.hbs
  3. 25
    0
      index.hbs
  4. 17
    0
      package.json
  5. 21
    0
      post.hbs

+ 71
- 0
assets/css/main.css View File

@@ -0,0 +1,71 @@
1
+html {
2
+  padding: 0;
3
+  margin: 0;
4
+
5
+  height: 100%;
6
+}
7
+
8
+body {
9
+  font-family: -apple-system, "Helvetica Neue", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
10
+
11
+  background-color: #362b70;
12
+  color: #eadef6;
13
+
14
+  font-size: 1.35em;
15
+  line-height: 1.65em;
16
+
17
+  overflow-y: scroll;
18
+
19
+  padding: 0;
20
+  margin: 0;
21
+}
22
+
23
+a,
24
+a:visited,
25
+a:active {
26
+  text-decoration: none;
27
+  color: #a77bdb;
28
+
29
+  transition: color .05s ease-in;
30
+}
31
+
32
+a:hover {
33
+  color: #7f50c3;
34
+}
35
+
36
+h1,
37
+h6 {
38
+  letter-spacing: 2px;
39
+}
40
+
41
+.container {
42
+  width: 90%;
43
+  max-width: 800px;
44
+
45
+  margin: 0 auto;
46
+}
47
+
48
+.main-header,
49
+footer {
50
+  text-align: center;
51
+}
52
+
53
+ul.nav {
54
+  margin: 0;
55
+  padding: 0;
56
+}
57
+
58
+ul.nav li {
59
+  display: inline-block;
60
+  padding-left: 5px;
61
+  padding-right: 5px;
62
+}
63
+
64
+img {
65
+  max-width: 100%;
66
+  border-radius: 5px;
67
+}
68
+
69
+.pagination {
70
+  text-align: center;
71
+}

+ 60
- 0
default.hbs View File

@@ -0,0 +1,60 @@
1
+<!--
2
+,-.      .-,
3
+|-.\ __ /.-|
4
+\  `    `  /
5
+/ _     _  \
6
+| _`q  p _ |
7
+'._=/  \=_.'
8
+  {`\()/`}`\
9
+  {      }  \
10
+  |{    }    \
11
+  \ '--'   .- \
12
+  |-      /    \
13
+  | | | | |     ;
14
+  | | |.;.,..__ |
15
+.-"";`         `|
16
+/    |           /
17
+`-../____,..---'`
18
+-->
19
+
20
+<!DOCTYPE html>
21
+<html>
22
+<head>
23
+  <meta charset="utf-8" />
24
+  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
25
+
26
+  <title>{{meta_title}}</title>
27
+  <meta name="HandheldFriendly" content="True" />
28
+  <meta name="viewport" content="width=device-width, initial-scale=1.0" /> {{!--
29
+  <link rel="stylesheet" type="text/css" href="{{asset " css/normalize.css "}}" />
30
+  <link rel="stylesheet" type="text/css" href="{{asset " css/icons.css "}}" />
31
+  <link rel="stylesheet" type="text/css" href="{{asset " css/screen.css "}}" />
32
+  <link href="https://fonts.googleapis.com/css?family=Bree+Serif|Lato:100,100i,300,300i,400,400i,700,700i|Source+Code+Pro:300,400,500,700"
33
+    rel="stylesheet"> --}}
34
+
35
+  <link rel="stylesheet" href="{{asset 'css/main.css'}}">
36
+
37
+  {{ghost_head}}
38
+</head>
39
+
40
+<body class="{{body_class}}">
41
+  <header class="main-header">
42
+    <h1 class="blog-title">
43
+      {{@blog.title}}
44
+    </h1>
45
+
46
+    {{navigation}}
47
+  </header>
48
+
49
+  <div class="container">
50
+    {{{body}}}
51
+  </div>
52
+
53
+  <footer class="site-footer">
54
+    🐾
55
+  </footer>
56
+
57
+  {{ghost_foot}}
58
+</body>
59
+
60
+</html>

+ 25
- 0
index.hbs View File

@@ -0,0 +1,25 @@
1
+{{!< default }}
2
+
3
+{{#foreach posts}}
4
+  <article class="{{post_class}}">
5
+    <header class="post-header">
6
+      <h1 class="post-title">
7
+        <a href="{{url}}">{{title}}</a>
8
+      </h1>
9
+
10
+      <section class="post-meta">
11
+        <time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">
12
+          {{date format="DD MMMM YYYY"}}
13
+        </time>
14
+      </section>
15
+
16
+      <section class="post-content">
17
+        {{content}}
18
+      </section>
19
+
20
+      <a href="{{url}}">Read more &hellip;</a>
21
+    </header>
22
+  </article>
23
+{{/foreach}}
24
+
25
+{{pagination}}

+ 17
- 0
package.json View File

@@ -0,0 +1,17 @@
1
+{
2
+    "name": "syfaro",
3
+    "description": "Syfaro theme",
4
+    "version": "0.1.0",
5
+    "engines": {
6
+        "ghost": ">=1.0.0"
7
+    },
8
+    "license": "MIT",
9
+    "author": {
10
+        "name": "Syfaro",
11
+        "email": "syfaro@huefox.com",
12
+        "url": "https://syfaro.net"
13
+    },
14
+    "config": {
15
+        "posts_per_page": 10
16
+    }
17
+}

+ 21
- 0
post.hbs View File

@@ -0,0 +1,21 @@
1
+{{!< default }}
2
+
3
+{{#post}}
4
+<article class="{{post_class}}">
5
+  <header class="post-header">
6
+    <h1 class="post-title">
7
+      <a href="{{url}}">{{title}}</a>
8
+    </h1>
9
+
10
+    <section class="post-meta">
11
+      <time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">
12
+        {{date format="DD MMMM YYYY"}}
13
+      </time>
14
+    </section>
15
+
16
+    <section class="post-content">
17
+      {{content}}
18
+    </section>
19
+  </header>
20
+</article>
21
+{{/post}}

Loading…
Cancel
Save