Giter Site home page Giter Site logo

andrew-shay / lektor-theme-simple-strap Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 4.0 1.2 MB

A clean, simple, black and white theme for Lektor

Home Page: https://andrew-shay.github.io/lektor-theme-simple-strap/

License: MIT License

CSS 1.35% JavaScript 96.12% HTML 2.53%
simple strap lektor theme bootstrap black white lux light

lektor-theme-simple-strap's Introduction

Simple Strap - Lektor Theme

Simple Strap is a theme for Lektor.

It's a clean, simple, black and white theme.
It's built using Bootstrap 4.
The base theme is a modified version of Lux by Bootswatch.
Lux was modified with bootstrap.build.
See css_src/ for the CSS source.

Templates

  • templates/blog.html - Blog listing.
  • templates/blog-post.html - A single page that contains one blog post.
  • templates/layout.html - The base template for every page. Includes header and footer.
  • templates/page.html - The template for the homepage. A two column page. The right column will be the same for every page with this template.
  • templates/page_one_column.html - A single column page.
  • templates/page_two_column.html - A two column page.
  • templates/macros/blog.html - Renders a single blog post.
  • templates/macros/pagination.html - Renders the Previous and Next buttons for blog listing.

Models

  • models/page.ini - Body content formatted in markdown. Used for templates page.html and page_one_column.html.
  • models/page_html.ini - Body content formatted in HTML. Used for template page_one_column.html.
  • models/page_two_column.html.ini - Body content and Right content formatted in HTML. Used for template page_two_column.html.
  • models/page_two_column_markdown.ini - Body content and Right content formatted in markdown. Used for template page_two_column.html.

Screenshot

Demo Site

example-site image

License

MIT

lektor-theme-simple-strap's People

Contributors

andrew-shay avatar nixjdm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lektor-theme-simple-strap's Issues

simple-strap with Tags Plugin

Hi Andrew, thank you for this theme. I want to use in common with the Tags Plugin. Unfortunately the plugin´s script for the blog-post.html-template

{% if this.tags %}
  <ul>
    {% for t in this.tags -%}
      <li>
        <a href="{{ ('/blog@tag/' ~ t.lower())|url }}">
          All posts tagged {{ t }}
        </a>
      </li>
    {% endfor %}
  </ul>
{% endif %}

gives back a wrong URL to the tags page: /blog@tag/dita instead of /blog/tag/dita. Astonishingly the Tags Plugin works fine with the quickstart template of lektor. All other prerequisites like configs/tags.ini etc I have done as well. I am using Python 3.8. Do you have any idea?

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.