Giter Club home page Giter Club logo

arce's Introduction

arce

A minimal blog generator for photographers powered by Rust.

一个针对摄影师开发的静态博客生成器,兼具展示文章的功能。

Demo: icera's gallery

Current Version: 1.0.2

功能

  • 博文渲染与发布:监测指定文件夹内 markdown 文章,自动抓取可以部署的文章。
  • 照片压缩与展示:监测自定文件夹内的照片,自动将待部署的照片加入数据库内,对过大的图片会自动进行压缩。
  • 网页生成与部署:全自动定时部署,生成静态网页,并通过 scp 传输到服务器相应文件夹。

Features:

  • (速度)使用Rust编写 —— 速度很快,占用很低
  • (显示)简洁大方的网页主题,响应式 UI
  • (渲染)Full CommonMark (markdown), Latex and HTML support
  • (流程)配置好后,可一键,甚至是全自动生成并部署整个站点
  • (存储)在任何你习惯的本地路径中写作,无需将源文件放入 posts 文件夹内;同时,还支持多(文件夹)文章来源,对应不同网页路径
  • (摄影)自动从Exif中抓取光圈快门ISO、拍摄时间等信息;自动压缩尺寸大的图片;对于 md 文章内,路径为本地的照片,会自动上传到服务器上并进行路径替换
  • (加密)可以对文章进行加密,无法通过查看 html 等方式破解

代码说明

有待更新

鸣谢

照片部分 UI 灵感来自 camarts

文字部分 UI 部分借鉴了 Typora Whitely, 并使用了其 css。

主要依赖

  • Bootstrap4 网页 UI
  • Tera 网页渲染
  • kamadak-exif 照片信息读取
  • pulldown-cmark Markdown 渲染
  • r2d2_sqlite 持久化
  • notify 文件夹监测
  • aes/cbc 加密文章

Yaml Front Matter

在每篇文章开头请配置这些信息:

title: 标题
date: 日期(不作解析,请自行决定格式)
category: 归类
deploy: [true / false] 若不为 deploy: true 则不会部署到网站
path: [可选] 文章路径,不填写则会自动生成。
headline: [true / false] (是否显示在首页)
summary: [true / false] 文章概述,会显示在文章列表页
password: [可选] 如果要用密码加密文章,请添加此项并写上密码
hint: [可选] 密码的提示

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.