Commit 912556c7 authored by Laurent Sittler's avatar Laurent Sittler ©
Browse files

Ghost v4 compatibility

parents 56fcef50 b0e40d01
Pipeline #1029 passed with stages
in 2 minutes and 41 seconds
......@@ -45,7 +45,7 @@ Use the provided Docker compose to install and test the theme:
```
* Windows
```
C:\Windows\System32\driver\etc\hosts
C:\Windows\System32\drivers\etc\hosts
```
* MAC and Linux
```
......
......@@ -602,6 +602,10 @@ body {
overflow: hidden;
}
.ms-Fabric {
color: var(--black)!important;
}
.fluentPage {
display: flex;
flex-direction: column;
......@@ -911,6 +915,7 @@ blockquote.is-success {
.codeHeader>.action {
padding: 2px 10px;
margin: 0;
background-color: var(--themePrimary);
border: 0;
border-left: 1px solid var(--neutralLight);
......@@ -1085,7 +1090,7 @@ input[type="search"]::-webkit-search-results-decoration {
}
#HeaderSuiteBar #CenterRegion #searchBoxRegion form {
background-color: var(--neutralQuaternaryAlt);
background-color: var(--neutralLight);
color: #000;
border-radius: 3px;
height: 32px;
......@@ -1103,7 +1108,7 @@ input[type="search"]::-webkit-search-results-decoration {
#HeaderSuiteBar #CenterRegion #searchBoxRegion form>div>label {
display: inline-block;
color: #0062AF;
color: var(--themePrimary);
border: none;
background-image: initial;
background-position: initial;
......@@ -1129,7 +1134,7 @@ input[type="search"]::-webkit-search-results-decoration {
font-family: inherit;
flex: 1 0 0;
width: 100%;
color: inherit;
color: var(--black);
background-color: transparent;
border: 0;
border-radius: 2px;
......@@ -1866,8 +1871,7 @@ html[data-theme=dark] #HeaderSuiteBar #CenterRegion #topButtonsRegion #MainLink_
padding: 1px 6px;
}
.button-commandBar .button-text,
.button-primary .button-text {
.button-commandBar .button-text {
display: none;
}
}
......@@ -3439,6 +3443,8 @@ footer.extended .megaMenu-section .menu-item {
.kg-image-card img {
max-width: 100%;
width: 100%;
height: auto;
}
.kg-image-card.kg-width-wide {
......
......@@ -3236,10 +3236,10 @@
if (undefined !== typeof ghost_root_url || null != ghost_root_url) {
ghost_root = ghost_root_url;
} else {
ghost_root = "/ghost/api/v3";
ghost_root = "/ghost/api/v4";
}
} catch (e) {
ghost_root = "/ghost/api/v3";
ghost_root = "/ghost/api/v4";
}
var postsUrl = ghost_root + "/content/posts/?key=" + ghosthunter_key + "&limit=all&include=tags";
......@@ -3436,7 +3436,7 @@
ghost_root = ghost_root_url;
}
} catch (e) {
ghost_root = "/ghost/api/v3";
ghost_root = "/ghost/api/v4";
}
var postsUrl = ghost_root + "/content/posts/?key=" + ghosthunter_key + "&limit=all&fields=id" + "&filter=" + "updated_at:>\'" + this.latestPost.replace(/\..*/, "").replace(/T/, " ") + "\'";
......
client_max_body_size 16m;
\ No newline at end of file
<!DOCTYPE html>
<html lang="{{@site.lang}}" dir="ltr">
<html lang="{{@site.locale}}" dir="ltr">
<head>
{{!-- Document Settings --}}
......@@ -20,7 +20,7 @@
{{!-- Ghost Reusable Settings --}}
<script type="text/javascript">
var _ghostPageContext = { siteUrl: '{{@site.url}}', lang: '{{@site.lang}}', timezone: '{{@site.timezone}}' };
var _ghostPageContext = { siteUrl: '{{@site.url}}', lang: '{{@site.locale}}', timezone: '{{@site.timezone}}' };
</script>
{{ghost_head}}
......
......@@ -146,6 +146,9 @@ services:
- default
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- type: bind
source: ./config/client_max_body_size.conf
target: /etc/nginx/conf.d/client_max_body_size.conf
- type: bind
source: ./config/elk/fluent-ui.local_location
target: /etc/nginx/vhost.d/fluent-ui.local_location
......
......@@ -134,14 +134,14 @@ async function deploy(done) {
const api = new GhostAdminApi({
url,
key: admin_api_key,
version: 'v3'
version: 'v4'
});
await api.themes.upload({ file: zipFile });
await api.themes.activate(themeName);
done();
} catch (err) {
handleError(done)
handleError(done);
}
}
......
{
"name": "fluent-ui",
"description": "A Ghost Theme based on Microsoft Fluent UI Framework and Microsoft SharePoint design",
"version": "0.0.4",
"version": "0.1.0",
"engines": {
"ghost": ">=3.0.0",
"ghost-api": "v3"
"ghost-api": "v4"
},
"license": "MIT",
"screenshots": {},
......@@ -33,7 +33,9 @@
"url": "https://gitlab.lsonline.fr/ghost-themes/ghost-fluent-ui"
},
"bugs": "https://gitlab.lsonline.fr/ghost-themes/ghost-fluent-ui/-/issues",
"contributors": ["https://gitlab.lsonline.fr/ghost-themes/ghost-fluent-ui/-/graphs/master"],
"contributors": [
"https://gitlab.lsonline.fr/ghost-themes/ghost-fluent-ui/-/graphs/master"
],
"scripts": {
"lint": "gulp lint",
"dev": "gulp",
......@@ -45,13 +47,13 @@
"dependencies": {},
"devDependencies": {
"@tryghost/admin-api": "^1.3.6",
"autoprefixer": "10.0.2",
"beeper": "2.0.0",
"autoprefixer": "^10.2.5",
"beeper": "^2.1.0",
"cssnano": "4.1.10",
"dotenv": "^8.2.0",
"eslint": "^7.17.0",
"eslint-junit": "^1.0.1",
"gscan": "^3.6.0",
"gscan": "^4.0.1",
"gulp": "4.0.2",
"gulp-concat": "2.6.1",
"gulp-csslint": "^1.0.1",
......@@ -59,8 +61,8 @@
"gulp-livereload": "4.0.2",
"gulp-postcss": "9.0.0",
"gulp-uglify": "3.0.2",
"gulp-zip": "5.0.2",
"postcss": "8.1.8",
"gulp-zip": "^5.1.0",
"postcss": "^8.2.8",
"postcss-color-mod-function": "3.0.3",
"postcss-easy-import": "3.0.0",
"pump": "3.0.0"
......
......@@ -71,7 +71,7 @@
<time datetime="{{date}}">Published {{date post.published_at format="L"}}</time>
</span>
</button>
<button class="button-primary" type="button" data-automation-id="scrollToTopButton" disabled="true">
<button class="button-commandBar button-primary" type="button" data-automation-id="scrollToTopButton" disabled="true">
<span class="flexContainer">
<i class="button-icon ms-Icon ms-Icon--ChevronUpEnd6"></i>
<span class="button-text">Scroll to top</span>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment