在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:danpros/htmly开源软件地址:https://github.com/danpros/htmly开源编程语言:PHP 45.8%开源软件介绍:HTMLy is an open source Databaseless Blogging Platform or Flat-File Blog prioritizes simplicity and speed written in PHP. HTMLy can be referred to as Flat-File CMS either since it will also manage your content. You do not need to use a VPS to run HTMLy, shared hosting or even free hosting should work as long as the host supports at least PHP 5.3. DemoVisit HTMLy demo as blog. Features
RequirementsHTMLy requires PHP 5.3 or greater, PHP-XML package, and PHP-ZIP package for backup feature. InstallationsInstall HTMLy using the source code:
Online installInstall HTMLy without downloading the source code and use the online installer:
ConfigurationsSet written permission for the In addition, HTMLy support admin user role. To do so, simply add the following line to your choosen user: role = admin Users assigned with the admin role can edit/delete all users' posts. To access the admin panel, add LighttpdThe following is an example configuration for lighttpd: $HTTP["url"] =~ "^/config" {
url.access-deny = ( "" )
}
$HTTP["url"] =~ "^/system/includes" {
url.access-deny = ( "" )
}
$HTTP["url"] =~ "^/system/admin/views" {
url.access-deny = ( "" )
}
url.rewrite-once = (
"^/(themes|system|vendor)/(.*)" => "$0",
"^/(.*\.php)" => "$0",
# Everything else is handles by htmly
"^/(.*)$" => "/index.php/$1"
) NginxThe following is a basic configuration for Nginx: server {
listen 80;
server_name example.com www.example.com;
root /usr/share/nginx/html;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log error;
index index.php;
location ~ /config/ {
deny all;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
} Making a secure passwordPasswords can be stored in
This will produce a hash which is to be placed in the Both Online or OfflineThe built-in editor found in the admin panel, also provides you the ability to write to Markdown files offline by uploading them (see naming convention below) into the
For static pages you can upload it to the CategoryThe default category is <!--t New category title t-->
<!--d New category meta description d-->
New category info etc. The slug for the new category is
File Naming ConventionWhen you write a blog post and save it via the admin panel, HTMLy automatically create a .md file extension with the following name, example:
Here's the explanation (separated by an underscore):
For static pages, use the following format:
In the example above, the Thus, if you write/create files offline, you must name the .md file in the format above. For static subpages, use the following format:
This will create the URL: Content TagsIf you are writing offline, you need specify the content tags below: Title <!--t Title t--> Meta description <!--d The meta description d--> Tags This is just the tags display and for the slug is in the filename. <!--tag Tag1,Tag2 tag--> Featured image Post with featured image. <!--image http://www.example.com/image-url/image.jpg image--> Featured youtube video Post with featured youtube video. <!--video https://www.youtube.com/watch?v=xxxxxxx video--> Featured soundcloud audio Post with featured soundcloud audio. <!--audio https://soundcloud.com/xxxx/audio-url audio--> Featured link Post with featured link. <!--link https://github.com/danpros/htmly link--> Featured quote Post with featured quote. <!--quote Premature Optimization is The Root of All Evil quote--> Example Example of how your post would look like: <!--t Here is the post title t-->
<!--d The meta description d-->
<!--tag Tag1,Tag2 tag-->
<!--video https://www.youtube.com/watch?v=xxxxxxx video-->
Paragraph 1
Paragraph 2 etc. Contribute
ContributorsCopyright / LicenseFor copyright notice please read COPYRIGHT.txt. HTMLy is licensed under the GNU General Public License Version 2.0 (or later). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论