Giter Site home page Giter Site logo

zola-paper's Introduction

Zola-Paper

A clean theme inspired from hugo-paper.

Zola port of Hugo-Paper (with a few tweaks).

Demo: https://schoenenberg.github.com/zola-paper

Screenshot Dark Mode Screenshot

Installation

The easiest way to install this theme is to either clone it ...

git clone https://github.com/schoenenberg/zola-paper.git themes/zola-paper

... or to use it as a submodule.

git submodule add https://github.com/schoenenberg/zola-paper.git themes/zola-paper

Either way, you will have to enable the theme in your config.toml.

theme = "zola-paper"

Open Graph Integration

This theme has an integration of Open Graph meta tags. These are set based on context and available information. See the following example:

+++
title = "Lorem ipsum!"

[extra]
author = "Max Mustermann"
author_url = "https://www.facebook.com/example.profile.3"
banner_path = "default-banner"

[taxonomies]
tags = ["rust", "zola", "blog"]
+++

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu feugiat sapien. Aenean ligula nunc, laoreet id sem in, interdum bibendum felis. Donec vel dui neque.
<!-- more -->
Ut luctus dolor ut tortor hendrerit, sed hendrerit augue scelerisque. Suspendisse quis sodales dui, at tempus ante. Nulla at tempor metus. Aliquam vitae rutrum diam. Curabitur iaculis massa dui, quis varius nulla finibus a. Praesent eu blandit justo. Suspendisse pharetra, arcu in rhoncus rutrum, magna magna viverra erat, ...

Required attributes of the extra section is author. All other attributes are optional. The path for the banner_path attribute has to be relative to the content directory.

zola-paper's People

Contributors

schoenenberg avatar jieiku avatar jmerdich avatar peterkos avatar

Stargazers

Zhazha_JiaYiZhen avatar Owen avatar c0np4nn4 avatar Vishal Gabani avatar Martha avatar Junghoon Ban avatar Feng.YJ avatar Stéphane Busso avatar lingyin avatar Nizar Selander avatar  avatar Matt Sylvia avatar Lionel avatar pan93412 avatar Benjamin avatar Adit Chakraborty avatar Hervy Qurrotul Ainur Rozi avatar Giovanni Crisalfi avatar JacobX avatar Nathan N avatar Sergio Varela avatar Vedang Joshi avatar Eugene Lebedev avatar Sova avatar a avatar

Watchers

James Cloos avatar  avatar  avatar

zola-paper's Issues

Articles require `<!-- more -->` otherwise page will crash

Description

Following up on getzola/zola#1298, the theme appears to use a redundant call to | markdown(inline = true), which causes a crash when page.summary is null, i.e., when <!-- more --> is not defined. This makes summaries required, and imo, they shouldn't be! :)

Relevant area of code:

{% if page.summary %}<meta name="description" content="{{ page.summary | markdown(inline=true) }}">{% endif %}

Reproduction steps

  1. Remove <!-- more --> from any article in content/
  2. Attempt to compile
  3. Observe this error:
Reason: Failed to render 'page.html' (error happened in 'index.html').
Reason: Filter call 'markdown' failed
Reason: Filter `markdown` was called on an incorrect value: got `null` but expected a String

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.