Coder Social home page Coder Social logo

haplo / reflex Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7.28 MB

The minimalist Pelican theme.

Home Page: http://haplo.github.io/reflex

License: MIT License

JavaScript 0.68% CSS 86.42% HTML 6.82% Python 1.40% Shell 0.32% Less 3.86% Makefile 0.50%
pelican pelican-theme python static-site-generator

reflex's Issues

Shynet tracking support

Shynet is a simple self-hosted web analytics tool.

  • Add support for tracking through Shynet to the theme.
  • Document new integration and settings.

Fix styles for figure elements

alexandrevicenzi/Flex#225 added styles for figures, but only for <div class="figure">. I'm using markdown-captions markdown extension to generate figures, and it uses semantic <figure> and <figcaption> elements. It would make sense for the theme to support both cases.

This PR extends the selectors of the existing styles, plus:

  • Center-align figure captions.
  • Add an optional style to add a border to figures.

Example of default style (left alignment and no border)

image

Example with border and center alignment:

image

This issue was originally created as alexandrevicenzi/Flex#302.

Set up gulp watch

For developing the theme it would be useful to support a gulp watch command so any changes to source files would be compiled and available automatically.

See alexandrevicenzi/Flex#226 for original issue in Flex theme.

Style for toc markdown extension

Markdown has a Table of Contents (toc) extension but their output styles are currently unstyled in this theme.

Example document

Title: Table of Content test

[TOC]

# Header 1
blablabla

#Header 2
blablabla

#Header 3
blablabla

Current style

image

Proposed style

image

The "Table of Contents" text is controlled in settings:

TOC configuration

MARKDOWN = {
    'extension_configs': {
        'markdown.extensions.toc': {
            'title': 'Table of Contents'
        },
    },
}

Refer to the markdown toc extension docs for full configuration, but the above works for me.

This issue was originally created in alexandrevicenzi/Flex#300.

Put example site in Github pages

  • Update example site settings and content
  • Add TOC to example site
  • Add figures to example site
  • Include link to example site in README
  • Github action to rebuild example site on changes to master

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.