Giter VIP home page Giter VIP logo

leafpub's Introduction

Leafpub

Simple, beautiful publishing.

Gitter   Twitter Follow

Created by Cory LaViska

Maintained by Marc Apfelbaum

Screenshots

Requirements

  • PHP 7.1+ with curl, gd lib, mbstring, openssl & pdo
  • MySQL 5.5.3+

Download

This is the development repo! You'll need to build Leafpub using the instructions below before running it.

Download the latest ready-to-use version from: https://leafpub.org/download

Contributing

Leafpub uses Composer and NPM to manage dependencies and Gulp as its task runner. To contribute to this project, you'll need to clone the repository and install the required development tools listed below.

Please read through our contributing guidelines.

Something is wrong with a translation? Your language isn't available? Please read through the language section

Building

Once you have the necessary development tools installed:

  1. Open a terminal
  2. Navigate to the root directory of your cloned repo
  3. Run the following command:
composer install

Composer will install its own dependencies and then run npm install. This may take a few minutes as packages are downloaded. Once complete, Composer will trigger gulp build which will generate all the assets you need to run Leafpub.

Important: You'll also need to add the default theme to content/themes/range/ manually. This will happen automatically once Leafpub is out of beta.

Using Gulp

From the root directory, you can use gulp help to see all available tasks:

Usage
    gulp [TASK] [OPTIONS...]

Available tasks
    build          Run all build tasks. [build:fonts, build:images, build:prune, build:scripts, build:styles]
    build:fonts    Build font assets. [clean:fonts]
    build:images   Optimize images. [clean:images]
    build:prune    Prune unused files from vendor packages.
    build:scripts  Build scripts. [jshint, clean:scripts]
    build:styles   Build styles. [clean:styles]
    clean          Clean up generated files. [clean:fonts, clean:images, clean:scripts, clean:styles]
    clean:fonts    Delete generated fonts.
    clean:images   Delete generated images.
    clean:scripts  Delete generated scripts.
    clean:styles   Delete generated styles.
    default        Run the default task. [watch]
    help           Display this help text.
    jshint         Lint source scripts with JSHint.
    release:clean  Delete all generated releases.
    release:make   Generate a release.
    watch          Watch for script and style changes.

For development, use gulp watch to automatically compile Sass/JavaScript as you work.

Testing

You can run Leafpub on PHP's built in web server using the following command:

php -S localhost:8080 -t app

Then open http://localhost:8080 in your browser.

Note: You might need to use 127.0.0.1 instead of localhost in your database config!

Versioning

Leafpub is maintained under the Semantic Versioning guidelines and we adhere to them as closely as possible.

Developers

Marc Apfelbaum

License

©2018 Marc

This software is copyrighted. You may use it under the terms of the GNU GPLv3 or later. See LICENSE.md for licensing details.

All code is copyright 2016-2018 by Marc except where noted. Third-party libraries are copyrighted and licensed by their respective owners.

Theme & Plugin Policy

We do not consider Leafpub themes and plugins to be derivative works, as they are used to extend and enhance the software's functionality strictly through its API and they do not in any way modify Leafpub's core codebase. Therefore, in our opinion, themes and plugins may be licensed completely at the author's discretion.

Support

Please visit leafpub.org/support for support.


“The starting point of all achievement is desire.” — Napoleon Hill

leafpub's People

Contributors

afonsogomes avatar claviska avatar cyrilreze avatar fedesanchez avatar hengkit avatar karsasmus avatar micalm avatar napolux avatar ninoskopac avatar pablojoan avatar panarnaud avatar takeshi81 avatar thedewil avatar webcrew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leafpub's Issues

Frontend menu items point to a deleted post/page

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.


Issue Summary

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.

Steps to Reproduce

Tell us how to replicate the problem.

  1. Link a post/page in the menu
  2. Delete the post/page
  3. Click the menu link in frontend

Additional info

  • Postleaf version: master branch
  • PHP version: 5.5.9
  • Affected browsers: Chrome 52
  • Operating system: Ubuntu/ChromeOS

Scrollbar issues in Advance tab

Issue Summary

Seem have two scrollbar auto-appear when I scroll mouse up and down.
It seems problem at CSS.

Steps to Reproduce

Tell us how to replicate the problem.

animation

Additional info

  • Postleaf version: 1.0.0-beta3
  • PHP version: 5.6.19
  • Affected browsers: Chrome
  • Operating system: Windows 7 x64.

Support for Plugins

This issue is for plugin planning and development.

TODO

  • Events
    • add listeners
    • remove listeners
    • dispatch events
      • post.*
      • tag.*
      • user.*
      • navigation.*
      • setting.*
      • route.*
      • ui.*
      • admin.*
      • system.*
        • ready
        • terminate
  • Database table
    • Fields TBD
    • Update default.database.sql
    • Add upgrade instructions to INSTALL.md
  • Plugin class
    • Method to scan content/plugins (similar to Theme::getAll())
    • Method to retrieve enabled plugins
    • Methods to enable/disable plugins
    • Method to delete plugins
  • [] Documentation

Password reset does not work

Issue Summary

The password reset does not work.

Steps to Reproduce

  1. Go to admin login page and click on the forgot password link
  2. Enter your username
  3. Click on link in the password reset email
  4. Put new password in both fields and click submit.

Expected Response

Success or go to admin dashboard.

Actual Response

"Invalid Username" shown on screen.

Additional info

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}}">

Template File Post.hbs is missing

Issue Summary

The pre existing posts do not show up and I can't create new posts. -> pic
post.hbs template is missing
image

Steps to Reproduce

Tell us how to replicate the problem.

  1. install postleaf as opposed
  2. click on one existing post

Additional info

  • Postleaf version: master branch
  • PHP version: 7.0.8 (cli)
  • Affected browsers: Chrome Version 52.0.2743.116 m
  • Operating system: Windows 10

Can't edit editable areas of posts/pages when double clicked to select

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.


Issue Summary

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.

Steps to Reproduce

Tell us how to replicate the problem.

  1. Login as admin/author
  2. Go to the Post page
  3. Double click on a post or page to open it (do not click once and click on the edit/pencil icon)
  4. Try to type in the editable areas. Half the time it does not allow for editting

Additional info

  • Postleaf version: version beta 1,2 & 3
  • PHP version: 5.6
  • Affected browsers: firefox & chrome
  • Operating system: all?

Provide any additional information that may be relevant to the bug here.

Image Path Breaks (when using uploader)

Issue Summary

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.

Steps to Reproduce

Tell us how to replicate the problem.

  1. Setup Postleaf site in a /directory/directory
  2. Upload an image
  3. The image is broken

Additional info

  • Postleaf version: 1.0.0-beta2
  • PHP version: 5.6.19
  • Affected browsers: all
  • Operating system: MAC OS

Administrator Login redirect

Issue Summary

Not redirect to admin control panel after login. It redirects to the login form. Reloading the page will show the admin CP.

Steps to Reproduce

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%](

Additional info

  • Postleaf version: Latest commit
  • PHP version: PHP 5.6.24-1~dotdeb+7.1 (cli) (built: Jul 22 2016 00:07:27)
  • Affected browsers: Chrome Version 52.0.2743.116 (64-bit)
  • Operating system: Debian 8.5

How to change default theme?

Issue Summary

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.

Uploads (media) manager

This issue is for planning out the uploads manager. Current thoughts:

  • A dedicated section in the admin panel to manage uploads.
  • A control that can attach to an input or button that lets users browse for uploaded items. This should include a search and the ability to delete items if privileges allow.
  • The ability to tag files and search/sort by tag might be useful
  • It might be useful to track which user uploads a file. Easy enough to do, and could make it easier to search/sort/delete your own files.
  • Indicator to show if file is being used on a post or other part of the site
  • Thumbnail previews of images

Caddy Support

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.


Issue Summary

Support for Caddy was requested here Postleaf/postleaf#11 (comment)

Steps to Reproduce

Tell us how to replicate the problem.

  1. Try to run Postleaf using Caddy.

Additional info

  • Postleaf version: *
  • PHP version: *
  • Affected browsers: *
  • Operating system: *

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

@doughnet

Language Pack Case Sensitivity

Issue Summary

So have some issues with camelcase files in languages directory

Steps to Reproduce

captura de tela_2016-08-24_16-32-37

  1. Change your language to pt-PT
  2. Refresh the page

Additional info

  • Postleaf version: lastest
  • PHP version: 7
  • Affected browsers: tested on Firefox and Chrome
  • Operating system: Xubuntu 16.04

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 😄

Nested navigation items

Add the ability to nest navigation one or two levels deep.

Requirements:

  • Must be able to drag and drop to achieve this
  • Must be touch friendly

This library seems to have picked up the nested sortable project. It's currently in alpha but worth investigating.

Broken links in Available Backups table

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):

Broken links in Available Backups table

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'))
        );
    });

Error: Template missing: blog.hbs

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:

animation

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.

Error when building Postleaf

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

Auto Updater

  • Notify when there's a new version available
  • Move up or down to any version
  • Handle database migrations
  • If files can't be written, show instructions on how to fix it and offer manual update instructions

Manual Updates

Until the updater is ready, you can update by swapping out index.php and source/ with the new versions.

SQLite support

Would be useful to have SQLite support as an alternative to MySQL.

Ability to fetch resources with helpers

We need some additional helpers to make templates more useful.

  • {{#posts}}
  • {{#tags}}
  • {{#authors}}

Example usage might look like this:

{{#posts author="bob" query="kittens" count="10" offset="0" sort="newest"}}
    {{#each posts}}
        ...
    {{/each}}
{{/posts}}

Enviroments without MySQL password can't install postleaf

Issue Summary

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.

Steps to Reproduce

Simply install and leave the database password field empty.

Additional info

  • Postleaf version: 1.0.0 beta3
  • PHP version: 7
  • Affected browsers: All tested (Chrome, FireFox, Opera, etc)
  • Operating system: Tested on Windows and Linux (Windows running XAMPP and Linux running Apache+MariaDB+PHP7).

Template missing

Issue Summary

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.

Steps to Reproduce

Install app as the README.

Additional info

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)

Timezone issues during installation

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?

Check routes during installation

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?

Installation fails

Issue Summary

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.

Steps to Reproduce

  1. Download installer from website (Postleaf 1.0.0-beta1).
  2. extract postleaf to webserver and navigate to it's directory using web browser.
  3. fill in all required installer fields.

Additional info

  • Postleaf version: Postleaf 1.0.0-beta1
  • PHP version: 5.6.18
  • Affected browsers: N/A (server side error)
  • Operating system: Windows 7 64-bit with Apache 2.4.18

Editing Posts Not Working

Issue Summary

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.

Steps to Reproduce

  1. Create and publish a post.
  2. Go back and try to edit that post.
  3. Click Save

Additional info

  • Postleaf version: 1.0.0-beta6
  • PHP version: 5.5.38
  • MySQL: 5.5.31
  • Operating system: CentOS 6 / Apache

Steps taken to fix

  • Temporarily set all permissions to 777

Apache logs

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

http/https urls

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.


Issue Summary

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.

Screenshot with Console

Steps to Reproduce

Tell us how to replicate the problem.

  1. Serve postleaf over https

Additional info

  • Postleaf version: master branch
  • PHP version: 5.5.9-1ubuntu4.17
  • Affected browsers: Chrome 52
  • Operating system: ChromeOS

Provide any additional information that may be relevant to the bug here.

Embed alignment

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.


Issue Summary

Alignment issues with embeds.

center: Text is marked, you can't add a new line nor delete the mark
align center

right:
align right

left:
left align

Steps to Reproduce

Tell us how to replicate the problem.

  1. Embed a simple link <a href="something.html"> Something </a>
  2. choose alignment center
  3. copy this embed
  4. choose the copy's alignment right/left

Additional info

  • Postleaf version: master branch
  • PHP version: 5.5.9
  • Affected browsers: Chrome 52
  • Operating system: Ubuntu/ChromeOS

Handlebars.js can't apply css/image/js in site?

Issue Summary

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.

Additional info

  • Postleaf version: latest.

WordPress/Ghost importer

Ability to import posts, pages, tags/categories, and media items from other platforms:

  • WordPress
  • Ghost
  • Others? Suggestions welcome.

On page pl-toolbar not visible on desktop browsers

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.


Issue Summary

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.

Steps to Reproduce

Tell us how to replicate the problem.

  1. Login as admin
  2. View a live page
  3. Bottom right corner has overlay for pl-toolbar icons/buttons (or should)

Additional info

  • Postleaf version: 1.00 beta
  • PHP version: 5.6
  • Affected browsers: Chrome & Firefox
  • Operating system: Windows 8.1

Provide any additional information that may be relevant to the bug here.

Unit Tests

"require-dev": {
        "phpunit/phpunit": "5.5.*"
}

Lets do this sooner than later.

NGINX Support

This is already a common request, so let's work on getting Nginx supported officially through the installer.

Frontend admin links has no images on Firefox and IE

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:
capture
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).

Buttons aren't disabled after delete

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.


Issue Summary

After I deleted a post, the edit/view/delete buttons aren't disabled.

Steps to Reproduce

  1. Delete a post.
  2. Click on edit/view/delete Button. A click on delete generates an error, visible on console

Additional info

  • Postleaf version: master branch
  • PHP version: 5.5.9
  • Affected browsers: Chrome
  • Operating system: Ubuntu

hhvm support

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.

Asset version tags are not populated

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}}">

Support for figure & figcaption

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.

Add system requirements check

Before installation installer should check if user has correct PHP version and required extensions, MySQL version and directory permissions.

Filter out data-mce-* attributes from copy/pasted embed blocks

To replicate:

  1. Insert an embed block with this HTML:

    <a href="something.html">
      Something
    </a>
  2. Copy the embed block and paste it elsewhere in the document.

  3. 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.

Optional SMTP wrapper for emails

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.

Backend caching

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.


Issue Summary

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.

Steps to Reproduce

Tell us how to replicate the problem.

  1. Change setting "posts per page"
  2. Reload/Refresh the site
  3. Setting "posts per page" has the old value

Additional info

  • Postleaf version: master branch
  • PHP version: 5.5.9
  • Affected browsers: Chrome 52
  • Operating system: Ubuntu/ChromeOS

Provide any additional information that may be relevant to the bug here.

Saving settings goes back to posts list

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.

Visual indicator for scheduled posts

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.

Database error during installation

Issue Summary

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'

Additional info

  • Postleaf version: 1.0.0-beta5
  • PHP version: 5.6.18

Column twitter is missing in app/source/defaults/default.database.sql .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.