项目作者: dado3212

项目描述 :
A theme for Anchor, a lightweight blog CMS
高级语言: PHP
项目地址: git://github.com/dado3212/anchor-folium.git
创建时间: 2016-02-01T16:44:32Z
项目社区:https://github.com/dado3212/anchor-folium

开源协议:

下载


Folium

Folium is a theme for Anchor (Github), a lightweight blog system that I use on my blog.

This is what it looks like:

Screenshot 2025-05-23 at 11 35 24 PM

Fonts

  • [X] Vollkolm (too thick)

Additions

There are a number of additions I’ve made to the base code. This is probably not exhaustive, but it’s a lot of them.

There are also some that aren’t documented.

Automatically making links open in a new tab
/anchor/libraries/markdown.php

  1. function _doAnchors_inline_callback($matches) {
  2. ...
  3. - $result = "<a href=\"$url\"";
  4. + $result = "<a target=\"_blank\" href=\"$url\"";
  5. ...

Copied over time constants from the official repo
/anchor/language/en_GB/posts.php

  1. + 'time' => 'Published on (GMT)',
  2. + 'time_explain' => 'Pattern: YYYY-MM-DD HH:MM:SS',
  3. + 'time_invalid' => 'Invalid time pattern',

and in the UI, to be able to adjust publication date.
/anchor/views/posts/edit.php

  1. <em><?php echo __('posts.slug_explain'); ?></em>
  2. </p>
  3. + <p>
  4. + <label><?php echo __('posts.time'); ?>:</label>
  5. + <?php echo Form::text('created', Input::previous('created', $article->created)); ?>
  6. + <em><?php echo __('posts.time_explain'); ?></em>
  7. + </p>

Inspiration

TODO

  • Display category of post (or tags?)
  • Handle dark mode