mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
Update articles and pages
This commit is contained in:
parent
d3f0fe0b3b
commit
cf347ff606
6 changed files with 73 additions and 33 deletions
|
|
@ -1,8 +1,10 @@
|
|||
Title: (Example Article) ✹ Alpha Centauri
|
||||
Title: Alpha Centauri
|
||||
Date: 2016-11-13 09:00
|
||||
Category: Planetary Stuff
|
||||
Tags: stars, planets, g-type
|
||||
Slug: alpha-centauri
|
||||
Author: Wikipedia
|
||||
Summary: Alpha Centauri (α Centauri, abbreviated Alpha Cen, α Cen) is the closest star system to the Solar System at a distance of 4.37 light-years (1.34 pc). It consists of three stars: the pair Alpha Centauri A (also named Rigil Kentaurus) and Alpha Centauri B together with a small and faint red dwarf, Alpha Centauri C (also named Proxima Centauri), that may be gravitationally bound to the other two.
|
||||
|
||||
**Alpha Centauri** (**α Centauri**, abbreviated **Alpha Cen**, **α Cen**) is the [closest](https://en.wikipedia.org/wiki/List_of_nearest_stars_and_brown_dwarfs "List of nearest stars and brown dwarfs") [star system](https://en.wikipedia.org/wiki/Star_system "Star system") to the [Solar System](https://en.wikipedia.org/wiki/Solar_System "Solar System") at a distance of 4.37 [light-years](https://en.wikipedia.org/wiki/Light-year "Light-year") (1.34 [pc](https://en.wikipedia.org/wiki/Parsec "Parsec")). It consists of three stars: the [pair](https://en.wikipedia.org/wiki/Binary_star "Binary star") **Alpha Centauri A** (also named **Rigil Kentaurus**) and **Alpha Centauri B** together with a small and faint [red dwarf](https://en.wikipedia.org/wiki/Red_dwarf "Red dwarf"), **Alpha Centauri C** (also named **[Proxima Centauri](https://en.wikipedia.org/wiki/Proxima_Centauri "Proxima Centauri")**), that may be gravitationally bound to the other two. To the unaided eye, the two main components appear as a single point of light with an apparent [visual magnitude](https://en.wikipedia.org/wiki/Visual_magnitude "Visual magnitude") of −0.27, forming the brightest [star](https://en.wikipedia.org/wiki/Star "Star") in the southern [constellation](https://en.wikipedia.org/wiki/Constellation "Constellation") of [Centaurus](https://en.wikipedia.org/wiki/Centaurus "Centaurus") and the [third-brightest](https://en.wikipedia.org/wiki/List_of_brightest_stars "List of brightest stars") star in the night sky, outshone only by [Sirius](https://en.wikipedia.org/wiki/Sirius "Sirius") and [Canopus](https://en.wikipedia.org/wiki/Canopus "Canopus").
|
||||
|
||||
|
|
|
|||
|
|
@ -1,27 +1,18 @@
|
|||
Title: About
|
||||
|
||||
Alchemy is a functional, clean, responsive theme for the [Pelican](http://getpelican.com) static site generator. It is heavily inspired by [crowsfoot](http://github.com/porterjamesj/crowsfoot) and [clean-blog](https://github.com/BlackrockDigital/startbootstrap-clean-blog), and is powered by [Bootstrap](https://github.com/twbs/bootstrap) (v3.x).
|
||||
Alchemy is a functional, clean, responsive theme for the [Pelican](http://getpelican.com) static site generator. It is heavily inspired by [crowsfoot](http://github.com/porterjamesj/crowsfoot), [clean-blog](https://github.com/BlackrockDigital/startbootstrap-clean-blog), and powered by [Bootstrap](https://github.com/twbs/bootstrap).
|
||||
|
||||
You can find the latest version of alchemy [here](https://github.com/rwanyoike/pelican-alchemy) <i class="fa fa-github-alt"></i>.
|
||||
|
||||
## Features
|
||||
|
||||
- `sitemap.xml` support
|
||||
- Bootstap 4 (currently v4.0.0-alpha.5)
|
||||
- Core Pygments [styles](http://pygments.org/demo/)
|
||||
- External analytics (Google Analytics, Gauges, Piwik)
|
||||
- External comments (Disqus)
|
||||
- realfavicongenerator [package](http://realfavicongenerator.net/blog/new-favicon-package-less-is-more/) support
|
||||
- External analytics support (Google Analytics, Gauges, Piwik)
|
||||
- External comments support (Disqus)
|
||||
- Font icons (Font Awesome)
|
||||
- No external dependencies
|
||||
- No JavaScript (excl. Analytics & Comments)
|
||||
- Packaged webfonts
|
||||
- realfavicongenerator [package](http://realfavicongenerator.net/blog/new-favicon-package-less-is-more/) support
|
||||
- Simple Jinja2 templates
|
||||
- `sitemap.xml` support
|
||||
|
||||
## Fonts
|
||||
|
||||
Alchemy ships with 2 [Google Fonts](https://fonts.google.com).
|
||||
|
||||
[Montserrat](https://fonts.google.com/specimen/Montserrat) and [Merriweather](https://fonts.google.com/specimen/Merriweather):
|
||||
|
||||
- Headings: sans-serif (Montserrat)
|
||||
- Body: serif (Merriweather)
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@ Title: Settings
|
|||
|
||||
Unless otherwise specified, settings that refer to paths can be either absolute or relative to the configuration file.
|
||||
|
||||
#### SITESUBTITLE
|
||||
##### SITESUBTITLE
|
||||
|
||||
Subtitle that appears in the header:
|
||||
|
||||
SITESUBTITLE = 'A magical \u2728 Pelican theme'
|
||||
|
||||
#### SITEIMAGE
|
||||
##### SITEIMAGE
|
||||
|
||||
Image that appears in the header:
|
||||
|
||||
|
|
@ -18,14 +18,14 @@ You can also force the image size:
|
|||
|
||||
SITEIMAGE = '/images/profile.svg width=200 height=200'
|
||||
|
||||
#### DESCRIPTION
|
||||
##### DESCRIPTION
|
||||
|
||||
Index `<meta name="description" content="...">`:
|
||||
Index HTML head `<meta>` description:
|
||||
|
||||
DESCRIPTION = 'A functional, clean, responsive theme for Pelican. Heavily ' \
|
||||
'inspired by crowsfoot and clean-blog, powered by Bootstrap.'
|
||||
|
||||
#### LINKS
|
||||
##### LINKS
|
||||
|
||||
A list of tuples (Title, URL) for menu links:
|
||||
|
||||
|
|
@ -35,18 +35,17 @@ A list of tuples (Title, URL) for menu links:
|
|||
('Jinja2', 'http://jinja.pocoo.org/'),
|
||||
)
|
||||
|
||||
#### ICONS
|
||||
##### ICONS
|
||||
|
||||
A list of tuples (Icon, URL) for icon links:
|
||||
|
||||
ICONS = (
|
||||
('feed', '/feeds/all.atom.xml'),
|
||||
('github', 'https://github.com/rwanyoike/pelican-alchemy'),
|
||||
)
|
||||
|
||||
A [Font Awesome icon](http://fontawesome.io/icons/) without the `fa-` prefix.
|
||||
Icon in (Icon, URL) is a Font Awesome [icon](http://fontawesome.io/icons/) without the `fa-` prefix.
|
||||
|
||||
#### PYGMENTS_STYLE
|
||||
##### PYGMENTS_STYLE
|
||||
|
||||
You can choose one of the built-in Pygments styles for syntax highlighting.
|
||||
|
||||
|
|
@ -83,21 +82,21 @@ The following styles are available:
|
|||
- vs
|
||||
- xcode
|
||||
|
||||
For a demo of the different styles, click [here](http://pygments.org/demo/).
|
||||
For a demo of the different styles, see [link](http://pygments.org/demo/).
|
||||
|
||||
#### HIDE_AUTHORS
|
||||
##### HIDE_AUTHORS
|
||||
|
||||
Hide the author(s) of an article - useful for single author sites:
|
||||
|
||||
HIDE_AUTHORS = True
|
||||
|
||||
#### NEW_FAVICONS
|
||||
##### NEW_FAVICONS
|
||||
|
||||
Use a [realfavicongenerator](https://realfavicongenerator.net/blog/new-favicon-package-less-is-more/) favicon package:
|
||||
|
||||
RFG_FAVICONS = True
|
||||
|
||||
#### Other Settings
|
||||
---
|
||||
|
||||
DISQUS_SITENAME = '...'
|
||||
GAUGES = '...'
|
||||
|
|
|
|||
45
content/sample-article.md
Normal file
45
content/sample-article.md
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
Title: Sample Article
|
||||
Date: 2016-12-01 09:00
|
||||
Category: Sample
|
||||
Tags: sample, post
|
||||
Slug: sample-article
|
||||
Author: Bootstrap
|
||||
Summary: This blog post shows a few different types of content that's supported and styled with Bootstrap. Basic typography, images, and code are all supported. Magical.
|
||||
|
||||
This blog post shows a few different types of content that's supported and styled with Bootstrap. Basic typography, images, and code are all supported.
|
||||
|
||||
* * *
|
||||
|
||||
Cum sociis natoque penatibus et magnis [dis parturient montes](#), nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Cras mattis consectetur purus sit amet fermentum.
|
||||
|
||||
> Curabitur blandit tempus porttitor. **Nullam quis risus eget urna mollis** ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit.
|
||||
|
||||
Etiam porta _sem malesuada magna_ mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.
|
||||
|
||||
## Heading
|
||||
|
||||
Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
|
||||
|
||||
### Sub-heading
|
||||
|
||||
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
|
||||
|
||||
Example code block
|
||||
|
||||
Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa.
|
||||
|
||||
### Sub-heading
|
||||
|
||||
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
|
||||
|
||||
* Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
|
||||
* Donec id elit non mi porta gravida at eget metus.
|
||||
* Nulla vitae elit libero, a pharetra augue.
|
||||
|
||||
Donec ullamcorper nulla non metus auctor fringilla. Nulla vitae elit libero, a pharetra augue.
|
||||
|
||||
1. Vestibulum id ligula porta felis euismod semper.
|
||||
2. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
|
||||
3. Maecenas sed diam eget risus varius blandit sit amet non magna.
|
||||
|
||||
Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis.
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
Title: (Example Article) ⊚ Solar System
|
||||
Title: Solar System
|
||||
Date: 2016-11-12 09:00
|
||||
Category: Space Science
|
||||
Tags: planets, rings, universe
|
||||
Slug: solar-system
|
||||
Summary: The Solar System is the gravitationally bound system comprising the Sun and the objects that orbit it, either directly or indirectly. Of those objects that orbit the Sun directly, the largest eight are the planets, with the remainder being significantly smaller objects such as dwarf planets and small Solar System bodies.
|
||||
|
||||
The **Solar System** is the [gravitationally](https://en.wikipedia.org/wiki/Gravity "Gravity") bound system comprising the [Sun](https://en.wikipedia.org/wiki/Sun "Sun") and the objects that orbit it, either directly or indirectly. Of those objects that orbit the Sun directly, the largest eight are the [planets](https://en.wikipedia.org/wiki/Planet "Planet"), with the remainder being significantly smaller objects, such as [dwarf planets](https://en.wikipedia.org/wiki/Dwarf_planet "Dwarf planet") and [small Solar System bodies](https://en.wikipedia.org/wiki/Small_Solar_System_body "Small Solar System body"). Of the objects that orbit the Sun indirectly, the [moons](https://en.wikipedia.org/wiki/Natural_satellite "Natural satellite"), two are larger than the smallest planet, [Mercury](https://en.wikipedia.org/wiki/Mercury_(planet) "Mercury (planet)").
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ ARTICLE_SAVE_AS = ARTICLE_URL
|
|||
ARTICLE_LANG_URL = 'posts/{slug}-{lang}.html'
|
||||
ARTICLE_LANG_SAVE_AS = ARTICLE_LANG_URL
|
||||
|
||||
DEFAULT_PAGINATION = 10
|
||||
|
||||
STATIC_PATHS = ['extras', 'images']
|
||||
EXTRA_PATH_METADATA = {
|
||||
'extras/android-chrome-192x192.png': {'path': 'android-chrome-192x192.png'},
|
||||
|
|
@ -65,9 +67,9 @@ ICONS = [
|
|||
('github', 'https://github.com/rwanyoike/pelican-alchemy'),
|
||||
]
|
||||
|
||||
PYGMENTS_STYLE = 'monokai'
|
||||
RFG_FAVICONS = True
|
||||
|
||||
# Default value is ['index', 'tags', 'categories', 'authors', 'archives']
|
||||
DIRECT_TEMPLATES = ['index', 'tags', 'categories', 'authors', 'archives', 'sitemap']
|
||||
SITEMAP_SAVE_AS = 'sitemap.xml'
|
||||
|
||||
RFG_FAVICONS = True
|
||||
PYGMENTS_STYLE = 'monokai'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue