-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 2.3.0
- Loading branch information
Showing
17 changed files
with
2,455 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
static/tipuesearch/ | ||
static/magnific/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
documentation/content/Elegant - Pelican Theme/claimsite.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
Title: Claim website on Google and Bing | ||
Tags: pelican-theme, pelican-plugin, claim | ||
Category: Elegant - Pelican Theme | ||
Date: 2019-06-27 | ||
Slug: website-claim | ||
Disqus_identifier: hk9m5eq-website-claim | ||
Subtitle: | ||
Summary: Use Pelican to insert headers to claim website | ||
Keywords: | ||
--- | ||
|
||
For submitting a website and sitemap to Google Search Console or Bing Webmaster tools | ||
we've to consider some steps. | ||
|
||
One of those steps is to claim the website ownership. | ||
|
||
Several approaches are available: | ||
|
||
- Create a specific file on the root folder of the website | ||
- Use a DNS Record | ||
- Insert a `<meta>` TAG in pages to claim it. | ||
|
||
Usually both DNS record or uploading files make things more complicated | ||
(require DNS setup, or configure pelican to upload static file to path, | ||
etc). | ||
|
||
Pelican-Elegant has simplified this by including support for the `<meta>` TAG | ||
being inserted if the values are defined in pelicanconf. | ||
|
||
Use the following variables to insert the relevant `<meta>` in the document | ||
headers: | ||
|
||
- `CLAIM_GOOGLE` | ||
- `CLAIM_BING` | ||
|
||
Each one of those should be filled according to the values provided by | ||
Google/Bing on their respective websites for webmasters: | ||
|
||
- [Google Search Console](https://www.google.com/webmasters/tools/dashboard?pli=1) | ||
- [Bing Webmaster tools](https://www.bing.com/webmaster/configure/verify/ownership) | ||
|
||
Once configured and when site is regenerated, the header should be there. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
Title: Photo gallery plugin | ||
Tags: pelican-theme, pelican-plugin, photo-gallery | ||
Category: Supported Plugins | ||
Date: 2019-06-09 10:49 | ||
Slug: how-to-use-photos-plugin | ||
Subtitle: | ||
Summary: Elegant integrates 'photos' gallery plugin of Pelican out of the box | ||
Keywords: photos, gallery, photogallery | ||
|
||
In order to easily work with Photos, Pelican has a plugin for [photos](https://github.com/getpelican/pelican-plugins/tree/master/photos) that allows to easily show folders of pictures inside an article. | ||
|
||
The relevant template for article has been already incorporated in Pelican, so last steps are to add to you requirements the ones for this plugin `Pillow` and optionally `Piexif`. | ||
|
||
## Setup | ||
|
||
Elegant supports it out of the box. You just have to enable it in your Pelican | ||
configuration, | ||
|
||
:::python | ||
PLUGINS = ['photos'] | ||
|
||
Refer to the plugin documentation for configuration, but at the time of this writing, the settings are: | ||
|
||
`PHOTO_LIBRARY = "~/Pictures"` | ||
: Absolute path to the folder where the original photos are kept, organized in sub-folders. | ||
|
||
`PHOTO_GALLERY = (1024, 768, 80)` | ||
: For photos in galleries, maximum width and height, plus JPEG quality as a percentage. This would typically be the size of the photo displayed when the reader clicks a thumbnail. | ||
|
||
`PHOTO_ARTICLE = (760, 506, 80)` | ||
: For photos associated with articles, maximum width, height, and quality. The maximum size would typically depend on the needs of the theme. 760px is suitable for the theme `notmyidea`. | ||
|
||
`PHOTO_THUMB = (192, 144, 60)` | ||
: For thumbnails, maximum width, height, and quality. | ||
|
||
`PHOTO_SQUARE_THUMB = False` | ||
: Crops thumbnails to make them square. | ||
|
||
`PHOTO_RESIZE_JOBS = 5` | ||
: Number of parallel resize jobs to be run. Defaults to 1. | ||
|
||
`PHOTO_WATERMARK = True` | ||
: Adds a watermark to all photos in articles and pages. Defaults to using your site name. | ||
|
||
`PHOTO_WATERMARK_TEXT' = SITENAME` | ||
: Allow the user to change the watermark text or remove it completely. By default it uses [SourceCodePro-Bold](http://www.adobe.com/products/type/font-information/source-code-pro-readme.html) as the font. | ||
|
||
`PHOTO_WATERMARK_IMG = ''` | ||
: Allows the user to add an image in addition to or as the only watermark. Set the variable to the location. | ||
|
||
**The following features require the piexif library** | ||
`PHOTO_EXIF_KEEP = True` | ||
: Keeps the exif of the input photo. | ||
|
||
`PHOTO_EXIF_REMOVE_GPS = True` | ||
: Removes any GPS information from the files exif data. | ||
|
||
`PHOTO_EXIF_COPYRIGHT = 'COPYRIGHT'` | ||
: Attaches an author and a license to the file. Choices include: - `COPYRIGHT`: Copyright - `CC0`: Public Domain - `CC-BY-NC-ND`: Creative Commons Attribution-NonCommercial-NoDerivatives - `CC-BY-NC-SA`: Creative Commons Attribution-NonCommercial-ShareAlike - `CC-BY`: Creative Commons Attribution - `CC-BY-SA`: Creative Commons Attribution-ShareAlike - `CC-BY-NC`: Creative Commons Attribution-NonCommercial - `CC-BY-ND`: Creative Commons Attribution-NoDerivatives | ||
|
||
`PHOTO_EXIF_COPYRIGHT_AUTHOR = 'Your Name Here'` | ||
: Adds an author name to the photo's exif and copyright statement. Defaults to `AUTHOR` value from the `pelicanconf.py` | ||
|
||
Lightbox is enabled by default. You can disable it with `PHOTOS_LIGHTBOX` variable. Set it to `FALSE` in your configuration to disable. | ||
|
||
``` | ||
PHOTOS_LIGHTBOX = False | ||
``` | ||
|
||
## How to use it in your articles | ||
|
||
In order to use it, in your `YAML` preamble of articles, add a line like this: | ||
|
||
`gallery: {filename}gallery-source/foldername` | ||
|
||
In order for the plugin to work, place your pictures in the folder defined by `PHOTO_LIBRARY`, for example: | ||
`~/www/content/gallery-source/foldername` | ||
|
||
The `photos` plugin will process the images, resize, include the watermark, etc and store in the output folder. Images will only be reprocessed if those are removed from the `output` folder, this allows to save time when processing big galleries. | ||
|
||
This is an example of the final result: | ||
|
||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.