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 @@
html {
padding: 0;
margin: 0;

height: 100%;
}

body {
font-family: -apple-system, "Helvetica Neue", "Lucida Sans Unicode", "Lucida Grande", sans-serif;

background-color: #362b70;
color: #eadef6;

font-size: 1.35em;
line-height: 1.65em;

overflow-y: scroll;

padding: 0;
margin: 0;
}

a,
a:visited,
a:active {
text-decoration: none;
color: #a77bdb;

transition: color .05s ease-in;
}

a:hover {
color: #7f50c3;
}

h1,
h6 {
letter-spacing: 2px;
}

.container {
width: 90%;
max-width: 800px;

margin: 0 auto;
}

.main-header,
footer {
text-align: center;
}

ul.nav {
margin: 0;
padding: 0;
}

ul.nav li {
display: inline-block;
padding-left: 5px;
padding-right: 5px;
}

img {
max-width: 100%;
border-radius: 5px;
}

.pagination {
text-align: center;
}

+ 60
- 0
default.hbs View File

@@ -0,0 +1,60 @@
<!--
,-. .-,
|-.\ __ /.-|
\ ` ` /
/ _ _ \
| _`q p _ |
'._=/ \=_.'
{`\()/`}`\
{ } \
|{ } \
\ '--' .- \
|- / \
| | | | | ;
| | |.;.,..__ |
.-"";` `|
/ | /
`-../____,..---'`
-->

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<title>{{meta_title}}</title>
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> {{!--
<link rel="stylesheet" type="text/css" href="{{asset " css/normalize.css "}}" />
<link rel="stylesheet" type="text/css" href="{{asset " css/icons.css "}}" />
<link rel="stylesheet" type="text/css" href="{{asset " css/screen.css "}}" />
<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"
rel="stylesheet"> --}}

<link rel="stylesheet" href="{{asset 'css/main.css'}}">

{{ghost_head}}
</head>

<body class="{{body_class}}">
<header class="main-header">
<h1 class="blog-title">
{{@blog.title}}
</h1>

{{navigation}}
</header>

<div class="container">
{{{body}}}
</div>

<footer class="site-footer">
🐾
</footer>

{{ghost_foot}}
</body>

</html>

+ 25
- 0
index.hbs View File

@@ -0,0 +1,25 @@
{{!< default }}

{{#foreach posts}}
<article class="{{post_class}}">
<header class="post-header">
<h1 class="post-title">
<a href="{{url}}">{{title}}</a>
</h1>

<section class="post-meta">
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">
{{date format="DD MMMM YYYY"}}
</time>
</section>

<section class="post-content">
{{content}}
</section>

<a href="{{url}}">Read more &hellip;</a>
</header>
</article>
{{/foreach}}

{{pagination}}

+ 17
- 0
package.json View File

@@ -0,0 +1,17 @@
{
"name": "syfaro",
"description": "Syfaro theme",
"version": "0.1.0",
"engines": {
"ghost": ">=1.0.0"
},
"license": "MIT",
"author": {
"name": "Syfaro",
"email": "syfaro@huefox.com",
"url": "https://syfaro.net"
},
"config": {
"posts_per_page": 10
}
}

+ 21
- 0
post.hbs View File

@@ -0,0 +1,21 @@
{{!< default }}

{{#post}}
<article class="{{post_class}}">
<header class="post-header">
<h1 class="post-title">
<a href="{{url}}">{{title}}</a>
</h1>

<section class="post-meta">
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">
{{date format="DD MMMM YYYY"}}
</time>
</section>

<section class="post-content">
{{content}}
</section>
</header>
</article>
{{/post}}

Loading…
Cancel
Save