diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..bd0d3b8 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: https://www.alexandrevicenzi.com/donate diff --git a/.gitignore b/.gitignore index fa79f58..ffb41a7 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,7 @@ venv # NPM node_modules + +# Pelican +output +plugins diff --git a/.travis.yml b/.travis.yml index abf93e3..1cf0993 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,8 @@ language: python python: - - "2.7" - - "3.4" - - "3.5" - "3.6" install: - - pip install pelican markdown -before_script: - - git clone https://github.com/getpelican/pelican-plugins plugins -script: pelican -s tests/pelicanconf.py + - pip install -r docs/requirements.txt +script: pelican -s docs/pelicanconf.py notifications: email: false diff --git a/README.md b/README.md index b5e5b5f..79e8433 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# Flex [![Build Status](https://travis-ci.org/alexandrevicenzi/Flex.svg?branch=master)](https://travis-ci.org/alexandrevicenzi/Flex) [![Dependency Status](https://david-dm.org/alexandrevicenzi/Flex.svg)](https://david-dm.org/alexandrevicenzi/Flex) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/alexandre-vicenzi/flex?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) +# Flex [![Build Status](https://travis-ci.org/alexandrevicenzi/Flex.svg?branch=master)](https://travis-ci.org/alexandrevicenzi/Flex) The minimalist [Pelican](http://blog.getpelican.com/) theme. ## Notes -- **DO NOT** send any questions to my personal email, they are **IGNORED**. If you have questions open an issue. +- If you have questions open an issue. - This theme is not under development anymore, it's stable and has a lot of features. This means that new requests (not bug fixes) will be discussed and have lower priorities. - If you want a version of this theme to Jekyll or Hugo open an issue and let's discuss it. @@ -47,12 +47,6 @@ The best way to install is over [pelican-themes](https://github.com/getpelican/p The alternative way is to clone this repository. The `master` branch is stable and is safe to checkout, but I would recommend you to checkout a tag branch. -## Donate - -Are you using this theme? Support bug fixes and new features. - -[Click here](https://www.alexandrevicenzi.com/donate) to donate. - ## Documentation The documentation covers most of the settings available and how to use this theme. @@ -78,8 +72,6 @@ As always, if you want something that only makes sense to you, fork Flex and cre Translate this theme to new languages at [Transifex](https://www.transifex.com/alexandrevicenzi/flex-pelican/). -![Translations](https://github.com/alexandrevicenzi/Flex/blob/master/translations/translation_chart.png) - Read more about [Translation Support](https://github.com/alexandrevicenzi/Flex/wiki/Translations) in the Wiki. ## License diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000..cb70fa0 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,74 @@ +PY?=python3 +PELICAN?=pelican +PELICANOPTS= + +BASEDIR=$(CURDIR) +INPUTDIR=$(BASEDIR)/content +OUTPUTDIR=$(BASEDIR)/blog +CONFFILE=$(BASEDIR)/pelicanconf.py +PUBLISHCONF=$(BASEDIR)/publishconf.py + +GITHUB_PAGES_BRANCH=gh-pages + + +DEBUG ?= 0 +ifeq ($(DEBUG), 1) + PELICANOPTS += -D +endif + +RELATIVE ?= 0 +ifeq ($(RELATIVE), 1) + PELICANOPTS += --relative-urls +endif + +help: + @echo 'Makefile for a pelican Web site ' + @echo ' ' + @echo 'Usage: ' + @echo ' make html (re)generate the web site ' + @echo ' make clean remove the generated files ' + @echo ' make regenerate regenerate files upon modification ' + @echo ' make publish generate using production settings ' + @echo ' make serve [PORT=8000] serve site at http://localhost:8000' + @echo ' make serve-global [SERVER=0.0.0.0] serve (as root) to $(SERVER):80 ' + @echo ' make devserver [PORT=8000] serve and regenerate together ' + @echo ' ' + @echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html ' + @echo 'Set the RELATIVE variable to 1 to enable relative urls ' + @echo ' ' + +html: + $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) + +clean: + [ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR) + +regenerate: + $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) + +serve: +ifdef PORT + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) +else + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) +endif + +serve-global: +ifdef SERVER + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b $(SERVER) +else + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b 0.0.0.0 +endif + + +devserver: +ifdef PORT + $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) +else + $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) +endif + +publish: + $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS) + +.PHONY: html help clean regenerate serve serve-global devserver publish diff --git a/docs/README.md b/docs/README.md index 296abc8..d140b91 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,9 +1,3 @@ # Flex Blog Example -## Build - -`pelican -s pelicanconf.py` - -## Publish - -`pelican -s publishconf.py` +Visit [http://flex.alxd.me/blog](http://flex.alxd.me/blog). diff --git a/docs/blog/archives.html b/docs/blog/archives.html index b25caf3..c6cc414 100644 --- a/docs/blog/archives.html +++ b/docs/blog/archives.html @@ -13,7 +13,9 @@ - + + + @@ -73,15 +75,24 @@

The minimalist Pelican theme

@@ -111,7 +122,7 @@
-

Archives +

Archives

@@ -136,9 +147,9 @@
@@ -126,9 +137,6 @@

There are new Pygments templates and also a few code highlight fixes. There's also new social icons.

Version 2.2.0 also comes with new translations. You can see available translations here.

Hope you enjoy this version.

-
- Continue reading -
@@ -146,8 +154,8 @@

Flex theme 2.1.0 comes with features that I was delaying for so long.

Flex 2.1.0 adds support for Google AdSense.

If you choose wisely, ads are a way to win some money, but if not, you may loose your users due to excessive use of ads …

-
- Continue reading +
+
Continue reading
@@ -170,8 +178,8 @@ Yes, Flex now can be translated into your language. You can read about here.

The biggest challege was to create a way to translate without breaking old versions. If …

-
- Continue reading +
+
Continue reading
@@ -194,8 +202,8 @@ If …

  • Added browser color configuration
  • Related posts
  • More Pygments Styles …
  • -
    - Continue reading +
    +
    Continue reading
    @@ -218,9 +226,6 @@ If …

  • Posts preview on main page
  • Hope you enjoy this theme.

    -
    - Continue reading -
    @@ -237,8 +242,8 @@ If …

    I've made the Flex theme a time ago. For my surprise, many people are using it. I feel thankful for this.

    So, after some new blogs with this theme, I got issues and PRs on GitHub from these new users. This weekend I had some free time and I release …

    -
    - Continue reading +
    +
    Continue reading

    @@ -256,8 +261,8 @@ If …

    I just start a new fresh blog using Pelican. Sometimes choosing a theme for a new site is something difficult that takes time.

    In the Pelican theme gallery, I couldn't find anything that I really liked to feet all my needs. So in the first time of the history, I …

    -
    - Continue reading +
    +
    Continue reading
    @@ -277,9 +282,9 @@ If …