leafpub / leafpub Goto Github PK
View Code? Open in Web Editor NEWSimple, beautiful, open source publishing.
License: GNU General Public License v3.0
Simple, beautiful, open source publishing.
License: GNU General Public License v3.0
When you change a setting then save it, the admin page is redirected to admin/posts instead of staying on the settings page. Occurs when saving on the navigation page also.
I tried custom default theme with my single page theme.
I change code in blog.hbs
and page.hbs
with statics HTML. I only need this statics site.
But when refresh, don't have any change.
I tried with code like:
<!--{{!-- Include the header from partials/header.hbs --}}
{{> header}}
{{!-- Show the cover photo --}}
<header class="cover" {{#if @settings.cover}}style="background-image: url('{{url @settings.cover}}');"{{/if}}>
<div class="content">
{{!-- Site title & tagline --}}
<h1 class="title">{{@settings.title}}</h1>
<div class="subtitle">{{@settings.tagline}}</div>
{{!-- Show the down arrow on page 1 --}}
{{#is pagination.current_page '1'}}
<a href="#continue" class="continue"><span class="hidden">Continue</span></a>
{{/is}}
</div>
</header>
<div class="container">
<div class="row">
<div class="col-md-8 push-md-2 col-sm-10 push-sm-1">
{{!-- Include the post loop from partials/loop.hbs --}}
{{> loop}}
{{!-- Include pagination from partials/pagination.hbs --}}
{{> pagination}}
</div>
</div>
</div>
{{!-- Include the footer from partials/footer.hbs --}}
{{> footer}}-->
<header class="navbar-fixed-top">
<div class="container">
<div class="row">
<div class="header_top">
<div class="col-md-2">
<div class="logo_img">
<a href="#"><img src="images/logo.png" alt="logoimage"></a>
</div>
</div>
<div class="col-md-10">
<div class="menu_bar">
<nav role="navigation" class="navbar navbar-default">
<div class="navbar-header">
<button id="menu_slide" aria-controls="navbar" aria-expanded="false" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="navbar">
<ul class="nav navbar-nav">
<li><a href="#home" class="js-target-scroll">Home</a></li>
<li><a href="#services" class="js-target-scroll">About</a></li>
</ul>
</div>
</nav>
</div>
</div>
</div>
</div>
</div>
</header>
I tried to insert between header in .hbs file, but it also not happen anything.
So, I tried comment all code and replace with static HTML code but still not anything update.
This issue is for planning out the uploads manager. Current thoughts:
So have some issues with camelcase files in languages directory
I'hve fixed renaming the file:
app/source/languages/pt-pt.php -> app/source/languages/pt-PT.php
I think that doesn't need an pull request, but I can do it if you like ๐
Thanks for using Postleaf! ๐๐
This issue tracker is ONLY for bug reports. If you need help with something or would like to request a feature, please ask on https://community.postleaf.org/ instead.
Perhaps not a real issue, but i thought it's no problem to write this down.
I changed the setting "posts per page" from 10 to 3. The setting was properly saved - the frontend shows only 3 posts - but as I refreshed the settings page, the setting "posts per page" was 10.
After the refresh, the cached site was loaded.
Tell us how to replicate the problem.
Provide any additional information that may be relevant to the bug here.
Before installation installer should check if user has correct PHP version and required extensions, MySQL version and directory permissions.
We need some additional helpers to make templates more useful.
{{#posts}}
{{#tags}}
{{#authors}}
Example usage might look like this:
Trying to install latest version built from git. After filling in all required fields I get following error message:
Unable to create the owner user: Database error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'twitter' in 'field list'
Column twitter
is missing in app/source/defaults/default.database.sql .
Thanks for using Postleaf! ๐๐
This issue tracker is ONLY for bug reports. If you need help with something or would like to request a feature, please ask on https://community.postleaf.org/ instead.
After I deleted a post, the edit/view/delete buttons aren't disabled.
Thanks for using Postleaf! ๐๐
This issue tracker is ONLY for bug reports. If you need help with something or would like to request a feature, please ask on https://community.postleaf.org/ instead.
Support for Caddy was requested here Postleaf/postleaf#11 (comment)
Tell us how to replicate the problem.
This is what appears to be working for me:
postleaf.dev:7755 {
root ./app
gzip
tls off
fastcgi / 127.0.0.1:9000 php
rewrite {
regexp ^/backups
status 403
}
rewrite {
to {path} {path}/ /index.php?{query}
}
}
It would be good if someone else could verify it works for them too. Caddy isn't a web server I'm very familiar with, but maybe this will serve as a starting point. I think the last rewrite rule can be improved on. Without it, tar file for backup downloads served by the API wouldn't work for me. - fixed based on feedback from this issue and information found here caddyserver/caddy/issues/289
Need an option to disabling caching from the admin panel. Also need a way to clear cache.
Thanks for using Postleaf! ๐๐
This issue tracker is ONLY for bug reports. If you need help with something or would like to request a feature, please ask on https://community.postleaf.org/ instead.
At the admin page for section with list of posts/pages you can click on a page and edit it by clicking the pencil OR double clicking on it. If you double click on it sometimes it does not allow for editing the inline text content.
Tell us how to replicate the problem.
Provide any additional information that may be relevant to the bug here.
Great job Cory! I have Postleaf working with nginx and php5-fpm but it doesn't seem to work with my preferred PHP server hhvm. Would be good to get this going.
Ability to import posts, pages, tags/categories, and media items from other platforms:
Installing Postleaf fails after pressing "Install" button. Installer only populates "_settings" table in database and silently fails, as there are no error messages. Cannot login to admin, because "_user" table is empty.
I've tested the Download and Delete buttons in the Available Backups table, and I've found they are broken (note: I haven't tested the Restore button):
Updating the path for the download handler in app/source/scripts/settings.js
fixes the Download button:
// Download backup
$('.available-backups').on('click', '[data-download-backup]', function() {
location.href = Postleaf.url(
'backups/' + encodeURIComponent($(this).attr('data-download-backup'))
);
});
Proposed format:
<figure class="image">
<img src="image.png" alt="Alt text">
<figcaption>Caption goes here</figcaption>
</figure>
TinyMCE's image plugin supports figure/figcaption, so it's becoming more standard.
In admin pages source some assets have {{version}} tags, e.g.
<link rel="stylesheet" href="http://localhost/postleaf/source/assets/css/lib.css?v={{version}}">
phantom, steam and sticko themes in release on website contains .git directories.
Default timezone is 'America/New_York'. If server has different timezone set, initial posts might not be displayed until user changes timezone in Postleaf advanced settings or some time passes until pub_date will be valid for that timezone. This might bring some confusion for some users.
Maybe it would be nice to put timezone selection on setup screen, or even try to get timezone automatically from PHP settings during setup?
To replicate:
Insert an embed block with this HTML:
<a href="something.html">
Something
</a>
Copy the embed block and paste it elsewhere in the document.
The new embed block will have this HTML:
<a href="http://dev.postleaf.dev/something.html" data-mce-href="something.html">
Something
</a>
The <div>
container will also have a lot of inline styles, but that's a TinyMCE paste issue.
"require-dev": {
"phpunit/phpunit": "5.5.*"
}
Lets do this sooner than later.
MySQL password is not always required to access to database And it even needs to be 8 chars length.
MySQL servers not always are password protected, into developing enviroments MySQL don't have a default password also (XAMPP, etc...).
In short, don't allow users install PostLeaf if their database dont have a password is kinda weird (this dont happens in most of CMS, Wordpress for example).
The restriction of request an 8 chars length MySQL password has also nosense, since this password is not setup by postleaf is a server side decision.
Simply install and leave the database password field empty.
Not redirect to admin control panel after login. It redirects to the login form. Reloading the page will show the admin CP.
I create an admin role account and try login. You can see the demo at http://postleaf.buu.vn/admin/
Username: demo
Password: 5*LS+4Tpe(Fv3%](
PHP 5.6.24-1~dotdeb+7.1 (cli) (built: Jul 22 2016 00:07:27)
Chrome Version 52.0.2743.116 (64-bit)
Debian 8.5
Would be useful to have SQLite support as an alternative to MySQL.
The password reset does not work.
Success or go to admin dashboard.
"Invalid Username" shown on screen.
The rendered password reset page does not have values for the two hidden fields username
and token
, as such the POST on clicking submit does not have the username
or token
in its POST parameters.
It appears as though the following lines in login.reset.hbs are not being rendered correctly.
<input type="hidden" name="username" value="{{@request.get.username}}">
<input type="hidden" name="token" value="{{@request.get.token}}">
Provide a dark variation of the zen mode editor for night time use or users who prefer dark mode.
Thanks for using Postleaf! ๐๐
This issue tracker is ONLY for bug reports. If you need help with something or would like to request a feature, please ask on https://community.postleaf.org/ instead.
After deleting a post, which was linked in the frontend menu, the menu item will not be deleted. If you click on that menu item, postleaf generates a 404.
We should check the menu items if they exist or not.
Tell us how to replicate the problem.
Postleaf can run on Apache, NGINX, Caddy, and any other web server that supports the appropriate rewrites. However, when a sample configuration is missing one can be fooled into thinking they have a working server config for Postleaf when in fact some of the rewrites are missing or erroneous.
We've seen this issue a few times and I think it can be prevented during installation. Below are my thoughts from a private discussion about this elsewhere:
I think we can simply check for a known route after the .htaccess
file is written. For example, we can use an existing unprotected route (i.e. a route that doesn't require authentication) and check for a 200 OK
response:
GET /login
If the route returns a 404 Not Found
response, we can assume rewrites aren't configured properly.
More extensively, we could test a whole series of routes to ensure they work as expected (e.g. make sure the backups/
directory is inaccessible). But that's the general idea.
This approach should work for non-Apache servers too, since they require preconfig and those redirects need to be in place before the installer even runs.
Generally speaking, I don't think Postleaf should bother too much with server configs, but checking certain routes during installation can prevent buggy installs and potential security risks.
Any additional thoughts on this?
Emails are only sent [currently] for password resets, but they almost always end up in the spam folder when they come from mail()
. Allowing users to configure an SMTP server will circumvent this problem.
This is already a common request, so let's work on getting Nginx supported officially through the installer.
Until the updater is ready, you can update by swapping out index.php
and source/
with the new versions.
After initially creating a post, everything works as intended. However if you go back to edit that post and select to save, the post does not save.
Access Logs (PUT 404):
127.0.0.1 - - [06/Aug/2016:18:56:59 -0400] "PUT /blog/api/posts/postasdf HTTP/1.1" 404 556 "http://domain.com/blog/admin/posts/postasdf"
Error Logs
[Sat Aug 06 18:56:59.589097 2016] [access_compat:error] [pid 18461] [client 127.0.0.1:50498] AH01797: client denied by server configuration: /home/user/public_html/blog/api
Ability to paste in embed code or a URL. If a URL is pasted in, we should grab the appropriate embed code from the appropriate site and inject that instead.
Spec: http://oembed.com/
Thanks for using Postleaf! ๐๐
This issue tracker is ONLY for bug reports. If you need help with something or would like to request a feature, please ask on https://community.postleaf.org/ instead.
Once logged in and viewing a live page the pl-toolbar is only blank. See image for example LINK. The area it should be is visible but the icons are not visible on desktop. Tried on Firefox & Chrome. On mobile devices it shows up fine.
Tell us how to replicate the problem.
Provide any additional information that may be relevant to the bug here.
A TinyMCE bug is responsible for this.
Reported here: tinymce/tinymce#3057
After installing the Postleaf, I have error when to go to localhost/postleaf/app
:
Application Error
Template missing: blog.hbs
localhost
And have problem like this:
You can see when press button install, the bar process appear quick. And it not auto redirected to homepage after install success. I think you need navigation to homepage after install success.
Add the ability to nest navigation one or two levels deep.
Requirements:
This library seems to have picked up the nested sortable project. It's currently in alpha but worth investigating.
After install Postleaf. I can use admin panel. But it said that:
Application Error
Template missing: blog.hbs
postleaf.test
I check and there is no range
themes folder; nothing in /app/content/themes
folder.
Install app as the README.
I use Postleaf both HEAD ver and 1.0.0-beta6/ commit 4c4a656
node -v
v6.3.1
npm -v
3.10.3
php --version
PHP 5.6.24-0+deb8u1 (cli) (built: Jul 26 2016 08:17:07)
lsb_release -d
Description: Debian GNU/Linux 8.5 (jessie)
The pre existing posts do not show up and I can't create new posts. -> pic
post.hbs template is missing
Tell us how to replicate the problem.
Thanks for using Postleaf! ๐๐
This issue tracker is ONLY for bug reports. If you need help with something or would like to request a feature, please ask on https://community.postleaf.org/ instead.
Hello,
I'm using Cloud9 for developing.
Cloud9 serves the projects via https. It seems that Postleafs url helper function doesn't recognize the https and generates a http link for the theme files. Consequently Chrome doesn't load the theme files.
Tell us how to replicate the problem.
Provide any additional information that may be relevant to the bug here.
It would be helpful to have a label in the post list when a post is scheduled to publish. Currently, posts can be scheduled for the future but there's no obvious way to know without comparing the date.
I set up Postleaf within a folder on my site (/postleaf-beta/). When uploading an image, the image displays in preview (at first) but then breaks when viewing the post. The image path seems to have extra folders added to the path that do not exist ("postleaf-beta/postleaf-beta/postleaf-beta/[the image]"), which is why the image shows as broken.
Tell us how to replicate the problem.
I build a single page site; I only need information like name post, content, and image of this post.
In document of HandleBar.js
:
Handlebars templates look like regular HTML, with embedded handlebars expressions.
So, I think it will understand and render statics code in *.html
file.
I was using handlebars.js
into easy manipulate.
I also have the template of a website is HTML file.
I tried to add all code from *.html
file to *.hbs
file.
You can see like:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Custom</title>
<!-- Bootstrap CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- CSS Custom -->
<link rel="stylesheet" type="text/css" href="css/style.css">
<body>
<header class="navbar-fixed-top">
<div class="container">
<div class="col-md-2">
<div class="logo_img">
<a href="#"><img src="images/logo.png" alt="logoimage"></a>
</div>
</div>
<div class="col-md-10">
<div class="menu_bar">
<nav role="navigation" class="navbar navbar-default">
<div class="collapse navbar-collapse" id="navbar">
<ul class="nav navbar-nav">
<li><a href="#home" class="js-target-scroll">Home</a></li>
<li><a href="#services" class="js-target-scroll">About</a></li>
</ul>
</div>
</nav>
</div>
</div>
</div>
</header>
</body>
</html>
In this code, will show like:
It only shows only HTML code, seem CSS/JS/(link to an image) not working.
This issue is for plugin planning and development.
default.database.sql
INSTALL.md
content/plugins
(similar to Theme::getAll()
)After logging in as admin, there are two links to admin functions on bottom right of the screen (.pl-home and .pl-new-post).
On Firefox and Internet Explorer images are not displayed:
Firefox complains about "XML Parsing Error: unclosed token, Line Number 1, Column 338".
SVG must be URI encoded, e.g. http://codepen.io/RwwL/pen/Aczds ( encodeURIComponent() + UTF8 SVG with full charset=utf-8 works on all browsers correctly).
I have error when run command: npm install both at Windows 7/10 and Manjaro.
How to fix it? Thanks.
> [email protected] postinstall /srv/http/postleaf/node_modules/gifsicle
> node index.js
path.js:7
throw new TypeError('Path must be a string. Received ' + inspect(path));
^
TypeError: Path must be a string. Received { url: 'https://raw.github.com/imagemin/gifsicle-bin/v0.1.7/vendor/linux/x64/gifsicle',
name: 'gifsicle',
os: 'linux',
arch: 'x64' }
at assertPath (path.js:7:11)
at Object.basename (path.js:1357:5)
at /srv/http/postleaf/node_modules/download/index.js:35:43
at each (/srv/http/postleaf/node_modules/each-async/each-async.js:63:4)
at module.exports (/srv/http/postleaf/node_modules/download/index.js:33:5)
at /srv/http/postleaf/node_modules/bin-wrapper/index.js:108:20
at /srv/http/postleaf/node_modules/bin-wrapper/index.js:141:24
at /srv/http/postleaf/node_modules/bin-check/index.js:30:20
at /srv/http/postleaf/node_modules/executable/index.js:39:20
at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN install:[email protected] [email protected] postinstall: `node index.js`
npm WARN install:[email protected] Exit status 1
> [email protected] postinstall /srv/http/postleaf/node_modules/jpegtran-bin
> node index.js
> [email protected] postinstall /srv/http/postleaf/node_modules/optipng-bin
> node index.js
path.js:7
throw new TypeError('Path must be a string. Received ' + inspect(path));
^
TypeError: Path must be a string. Received { url: 'https://raw.github.com/imagemin/optipng-bin/v0.3.11/vendor/linux/x64/optipng',
name: 'optipng',
os: 'linux',
arch: 'x64' }
at assertPath (path.js:7:11)
at Object.basename (path.js:1357:5)
at /srv/http/postleaf/node_modules/download/index.js:35:43
at each (/srv/http/postleaf/node_modules/each-async/each-async.js:63:4)
at module.exports (/srv/http/postleaf/node_modules/download/index.js:33:5)
at /srv/http/postleaf/node_modules/bin-wrapper/index.js:108:20
at /srv/http/postleaf/node_modules/bin-wrapper/index.js:141:24
at /srv/http/postleaf/node_modules/bin-check/index.js:30:20
at /srv/http/postleaf/node_modules/executable/index.js:39:20
at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN install:[email protected] [email protected] postinstall: `node index.js`
npm WARN install:[email protected] Exit status 1
See TryGhost/Ghost#3900 for how Ghost approached this issue.
Thanks for using Postleaf! ๐๐
This issue tracker is ONLY for bug reports. If you need help with something or would like to request a feature, please ask on https://community.postleaf.org/ instead.
Alignment issues with embeds.
center: Text is marked, you can't add a new line nor delete the mark
Tell us how to replicate the problem.
<a href="something.html"> Something </a>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.