Skip to content

Commit

Permalink
WIP commit ...
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadajmi committed Sep 6, 2023
1 parent aebaf48 commit 751bbc7
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 97 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ on:
- main
jobs:
deploy:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: TryGhost/[email protected]
- uses: actions/checkout@v3
- name: Deploy to Plain Demo
uses: TryGhost/[email protected]
with:
api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
### Plain Ghost Theme

* * *

📄 [Theme Documentation](https://aspirethemes.com/docs/plain)
### Plain — Ghost Theme
23 changes: 0 additions & 23 deletions _home.hbs

This file was deleted.

18 changes: 14 additions & 4 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
--body-width: 650px;
}

.c-skip {
display: none;
}

body {
margin: 32px auto;
padding: 0 16px;
Expand Down Expand Up @@ -36,6 +32,19 @@ article {
flex-direction: column;
}

.post-item {
display: flex;
align-items: center;
justify-content: space-between;
}

.post-item hr {
margin-right: 8px;
margin-left: 8px;
flex: 1 0 1rem;
border: 0.5px solid;
}

/*
Cards
*/
Expand All @@ -47,6 +56,7 @@ article {
/* Responsive embeds (Video) */

.kg-embed-card {
width: 100%;
display: flex;
align-items: center;
flex-direction: column;
Expand Down
20 changes: 3 additions & 17 deletions index.hbs
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
{{!< default}}

{{#contentFor 'title'}}{{t 'Blog' }}{{/contentFor}}

{{#is 'home'}}
{{#get 'pages' slug='home' as |page| }}
{{#page}}
<h1>{{ title }}</h1>

{{#if custom_excerpt}}
<p><strong>{{ custom_excerpt }}</strong></p>
{{/if}}

<article class='{{ post_class }}'>
{{ content }}
</article>
{{/page}}
{{/get}}
{{/is}}
{{#if @site.description}}
<p>{{ @site.description }}</p>
{{/if}}

<h2>{{t 'Posts' }}</h2>

Expand Down
27 changes: 0 additions & 27 deletions locales/en.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
{
"Skip to content": "Skip to content",

"Page Not Found": "Page Not Found",

"Featured Posts": "Featured Posts",
"Recent Posts": "Recent Posts",
"Next": "Next",

"1 minute read": "1 minute read",
"% minutes read": "% minutes read",

"Loading": "Loading",
"Load More": "Load More",

"Subscribe": "Subscribe",
"Email address": "Email address",
"Subscribe to receive the latest posts in your inbox.": "Subscribe to receive the latest posts in your inbox.",
"Please check your inbox and click the link to confirm your subscription.": "Please check your inbox and click the link to confirm your subscription.",
"Please enter a valid email address.": "Please enter a valid email address.",
"An error occurred, please try again later.": "An error occurred, please try again later.",

"This content is for Members": "This content is for Members",
"This content is for Paid Members": "This content is for Paid Members",
"This content is for Subscribers on the ": "This content is for Subscribers on the ",
"Upgrade your account": "Upgrade your account",
"Already have an account?": "Already have an account?",

"Published with {ghostLink} & {themeLink}": "Published with {ghostLink} & {themeLink}"
}
2 changes: 0 additions & 2 deletions page.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{{!< default}}

{{#contentFor 'title'}}{{ meta_title }}{{/contentFor}}

{{#post}}
{{> page-header }}

Expand Down
5 changes: 3 additions & 2 deletions partials/card-post.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div class='{{ post_class }}'>
<time datetime='{{ date format='YYYY-MM-DD' }}'>{{ date format='MMM D, YYYY' }}</time>
<div class='post-item {{ post_class }}'>
<a href='{{ url }}'>{{ title }}</a>
<hr>
<time datetime='{{ date format='YYYY-MM-DD' }}'>{{ date format='MMM D, YYYY' }}</time>
</div>
2 changes: 1 addition & 1 deletion partials/page-header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<h1>{{ title }}</h1>

{{#if custom_excerpt}}
<p><strong>{{ custom_excerpt }}</strong></p>
<p>{{ custom_excerpt }}</p>
{{/if}}

<time datetime='{{ date format='YYYY-MM-DD' }}'><i>{{ date format='MMM D, YYYY' }}</i></time>
Expand Down
1 change: 0 additions & 1 deletion partials/skip.hbs

This file was deleted.

2 changes: 1 addition & 1 deletion partials/structure/head.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<head>
<meta charset='utf-8'>
<title>{{{block 'title'}}}</title>
<title>{{ meta_title }}</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>

<link rel='stylesheet' type='text/css' href="{{asset 'css/style.css'}}">
Expand Down
2 changes: 0 additions & 2 deletions partials/structure/header.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<header>
{{> skip }}

<nav aria-label='Main menu'>
<ul>{{ navigation }}</ul>
</nav>
Expand Down
2 changes: 0 additions & 2 deletions post.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{{!< default}}

{{#contentFor 'title'}}{{ meta_title }}{{/contentFor}}

{{#post}}
{{> page-header }}

Expand Down
5 changes: 0 additions & 5 deletions routes.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# routes:
# /:
# data: page.home
# template: index

collections:
/:
permalink: /{slug}/
Expand Down
2 changes: 0 additions & 2 deletions tag.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{{!< default}}

{{#contentFor 'title'}}{{ meta_title }}{{/contentFor}}

{{#tag}}
<header>
<h1>{{ name }}</h1>
Expand Down

0 comments on commit 751bbc7

Please sign in to comment.