Compare commits
No commits in common. "c023d0e7e4ae687f0a2eccdf51ba6c6a2838d5df" and "1e23aa628c350ea7457e4eba9b3ae95bcbbf3599" have entirely different histories.
c023d0e7e4
...
1e23aa628c
12
.eleventy.js
12
.eleventy.js
@ -3,7 +3,6 @@ require("dotenv").config();
|
||||
const GhostContentAPI = require("@tryghost/content-api");
|
||||
const pluginNavigation = require("@11ty/eleventy-navigation");
|
||||
const pluginRss = require("@11ty/eleventy-plugin-rss");
|
||||
const localImages = require('eleventy-plugin-local-images');
|
||||
|
||||
const api = new GhostContentAPI({
|
||||
url: process.env.GHOST_API_URL,
|
||||
@ -15,19 +14,12 @@ const stripDomain = url => {
|
||||
return url.replace(process.env.GHOST_API_URL, "");
|
||||
};
|
||||
|
||||
module.exports = function (eleventyConfig) {
|
||||
module.exports = function(eleventyConfig) {
|
||||
eleventyConfig.addPlugin(pluginNavigation);
|
||||
eleventyConfig.addPlugin(pluginRss);
|
||||
|
||||
|
||||
eleventyConfig.addPassthroughCopy("css");
|
||||
|
||||
eleventyConfig.addPlugin(localImages, {
|
||||
distPath: '_site',
|
||||
assetPath: '/assets/images',
|
||||
selector: 'img',
|
||||
verbose: false
|
||||
});
|
||||
|
||||
eleventyConfig.addCollection("posts", async function (collection) {
|
||||
collection = await api.posts
|
||||
.browse({
|
||||
|
@ -1,24 +1,11 @@
|
||||
version: "3"
|
||||
services:
|
||||
ghost:
|
||||
image: ghost:5-alpine
|
||||
image: ghost:4-alpine
|
||||
ports:
|
||||
- 2368:2368
|
||||
environment:
|
||||
# see https://ghost.org/docs/config/#configuration-options
|
||||
database__client: mysql
|
||||
database__connection__host: db
|
||||
database__connection__user: root
|
||||
database__connection__password: password
|
||||
database__connection__database: ghost
|
||||
url: http://localhost:2368
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ghost:/var/lib/ghost/content
|
||||
db:
|
||||
image: mysql:8.0
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: password
|
||||
volumes:
|
||||
ghost:
|
||||
|
@ -8,7 +8,7 @@ pagination:
|
||||
{% block content %}
|
||||
{% set postslist = collections.posts %}
|
||||
|
||||
<section class="h-feed prose dark:prose-invert">
|
||||
<section class="h-feed prose">
|
||||
{% for post in postslist %}
|
||||
<article class="h-entry">
|
||||
<h2 class="p-name">
|
||||
|
3400
package-lock.json
generated
3400
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -24,9 +24,8 @@
|
||||
"@tailwindcss/typography": "^0.5.2",
|
||||
"@tryghost/content-api": "^1.9.4",
|
||||
"dotenv": "^16.0.1",
|
||||
"eleventy-plugin-local-images": "^0.4.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"rimraf": "^3.0.2",
|
||||
"tailwindcss": "^3.0.24"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user