Skip to content

Commit

Permalink
Update for Ghost 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Gelmo committed Oct 26, 2023
1 parent ab5f3ba commit 03a550e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion amp.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html amp lang="{{@site.lang}}">
<html amp lang="{{@site.locale}}">
<head>
<meta charset="utf-8">
<title>{{meta_title}}</title>
Expand Down
10 changes: 5 additions & 5 deletions default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
✎ @GodoFredoNinja
✈ Lima - Perú
-->
<html lang="{{@site.lang}}" data-theme="dark">
<html lang="{{@site.locale}}" data-theme="dark">
<head>
{{!-- Document Settings --}}
<meta charset="utf-8" />
Expand All @@ -33,7 +33,7 @@
{{!-- <style>{{> "styles"}}</style> --}}

{{!-- Ghost outputs important style and meta data with this tag --}}
<script type="text/javascript" src="/assets/scripts/itk.js"></script>
<script type="text/javascript" src="{{asset 'assets/scripts/itk.js'}}"></script>
{{ghost_head}}

<script>
Expand All @@ -53,7 +53,7 @@
{{> "header"}}

{{!-- Subscribe and tag -> this will be below the header --}}
{{#if @labs.members}}
{{#if @site.members_enabled}}
{{#is "index, home, tag"}}
{{> "widget/subscribe-and-secondary-menu"}}
{{/is}}
Expand Down Expand Up @@ -85,7 +85,7 @@
</div>

{{!-- notification Subscribe --}}
{{#if @labs.members}}
{{#if @site.members_enabled}}
<div class="subscribe-success-message u-flexCenter u-justify-content-center">
<span class="u-fontSize22" style="margin-right:10px">🎉</span> {{t "You've successfully subscribed to"}} {{@site.title}}!
<div class="notification-close button button--success">OK</div>
Expand All @@ -109,7 +109,7 @@
{{!-- Main scripts --}}
<script src="{{asset "scripts/main.js"}}"></script>

{{#if @labs.members}}
{{#if @site.members_enabled}}
<script>
// Parse the URL parameter
function getParameterByName(name, url) {
Expand Down
2 changes: 1 addition & 1 deletion error-404.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{@site.lang}}" data-theme="dark">
<html lang="{{@site.locale}}" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
Expand Down
2 changes: 1 addition & 1 deletion error.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{@site.lang}}" data-theme="dark">
<html lang="{{@site.locale}}" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"name": "simply",
"description": "simply theme for ghost by @GodoFredoNinja",
"demo": "https://godofredo.ninja",
"version": "0.2.9",
"version": "0.3.0",
"engines": {
"ghost": ">=3.0.0",
"ghost-api": "v3"
"ghost": ">=3.0.0"
},
"license": "GPLv3",
"screenshots": {
Expand Down
2 changes: 1 addition & 1 deletion partials/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<div class="header-right u-flex0 u-flex u-flexEnd u-menu-color">
{{^is "index, home, tag"}}
{{#if @labs.members}}
{{#if @site.members_enabled}}
<div class="button button--success js-m-subscribe-toggle u-hide-before-md">{{t "Subscribe"}} </div>
{{/if}}
{{else}}
Expand Down
2 changes: 1 addition & 1 deletion partials/widget/modal-subscribe.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{!-- Email subscribe form at the Top of the page --}}
{{#if @labs.members}}
{{#if @site.members_enabled}}

<aside class="m-subscribe u-fixed u-absolute0 u-flexColumnContentCenter u-flexCenter">
{{!-- Bg --}}
Expand Down

0 comments on commit 03a550e

Please sign in to comment.