First steps to upgrade to Ghost 3

This commit is contained in:
Eduardo Gomez 2020-02-25 17:10:57 +01:00
parent af3f6cf8d9
commit 74f5ba8577
10 changed files with 317 additions and 321 deletions

View file

@ -33,11 +33,7 @@ into the {body} of the default.hbs template --}}
<div class="m-featured-slider__list js-featured-articles"> <div class="m-featured-slider__list js-featured-articles">
{{#foreach featured}} {{#foreach featured}}
<div class="m-featured-slider__list__item"> <div class="m-featured-slider__list__item">
{{#if feature_image}} <article class="m-featured-article {{#unless feature_image}}no-picture{{/unless}}">
<article class="m-featured-article">
{{else}}
<article class="m-featured-article no-picture">
{{/if}}
<div class="m-featured-article__picture"> <div class="m-featured-article__picture">
{{#if feature_image}} {{#if feature_image}}
<div class="lozad no-fade-animation" data-background-image="{{img_url feature_image size="l"}}"></div> <div class="lozad no-fade-animation" data-background-image="{{img_url feature_image size="l"}}"></div>

View file

@ -30,8 +30,8 @@
"demo": "https://liebling.eduardogomez.io", "demo": "https://liebling.eduardogomez.io",
"description": "Beautiful and clean theme that is easy and comfortable to use.", "description": "Beautiful and clean theme that is easy and comfortable to use.",
"engines": { "engines": {
"ghost": ">=2.0.0", "ghost": ">=3.0.0",
"ghost-api": "v2" "ghost-api": "v3"
}, },
"gpm": { "gpm": {
"type": "theme", "type": "theme",
@ -54,5 +54,5 @@
"desktop": "assets/screenshot-desktop.jpg", "desktop": "assets/screenshot-desktop.jpg",
"mobile": "assets/screenshot-mobile.jpg" "mobile": "assets/screenshot-mobile.jpg"
}, },
"version": "0.6.5" "version": "0.6.6"
} }

View file

@ -2,11 +2,7 @@
This header template is shared across all the pages. This header template is shared across all the pages.
--}} --}}
{{#if background}} <header class="m-header {{#if background}}with-picture{{/if}} js-header">
<header class="m-header with-picture js-header">
{{else}}
<header class="m-header js-header">
{{/if}}
<div class="m-mobile-topbar" data-aos="fade-down"> <div class="m-mobile-topbar" data-aos="fade-down">
<button class="m-icon-button in-mobile-topbar js-open-menu" aria-label="Open menu"> <button class="m-icon-button in-mobile-topbar js-open-menu" aria-label="Open menu">
<span class="icon-menu"></span> <span class="icon-menu"></span>

View file

@ -2,7 +2,7 @@ version: '3'
services: services:
ghost: ghost:
image: ghost:2.31.1 image: ghost:3.7.0
container_name: ghost container_name: ghost
volumes: volumes:
- ./..:/var/lib/ghost/content/themes/liebling - ./..:/var/lib/ghost/content/themes/liebling

View file

@ -382,6 +382,10 @@
padding: 20px; padding: 20px;
} }
} }
&.line-numbers > code {
padding: 0;
}
} }
form { form {