alexandrevicenzi / flex Goto Github PK
View Code? Open in Web Editor NEWThe minimalist Pelican theme.
Home Page: https://flex.alxd.me
License: MIT License
The minimalist Pelican theme.
Home Page: https://flex.alxd.me
License: MIT License
Here is a good example: http://demo.ghost.io/style-test/
Hi,
First off - thanks for making this great theme and sharing it!
Small issue - I noticed that the pagination buttons don't quite display in a matching way in my browser - their heights aren't equal which looks wrong because they are vertically aligned. Here's a screenshot from index2.html
in the tests:
That's on Windows 10 / Chrome 56.0.2924.87.
I've looked at the code and propose a fix where the float: left
style is applied to the Older Posts
button - I'll submit a pull request. That seems to make them display evenly for me, but I've basically never written any CSS so I'm not sure it's the 'right' fix.
Thanks again.
Hi
Could you help me out. I'm trying to edit your theme a bit - for example removing the lowercase text-transform for the sidebar items. I've removed it from the less and css files, then reinstalled the theme, but it doesn't seem to stop it happening.
How should I edit the css if not via the less or the minified css. I'm a newb on less and css and hwo they might work together.
Thanks
Here is what I have in pelicanconf.py :
ARTICLE_URL = '{date:%Y}/{date:%b}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html'
The issue is that articles then render as:
2016/Dec/15/some-article-link/#some-article-link
The pelican docs use this example and show a different rendering of the URL. Is this an issue with the theme?
The rendering I'd like, as my old blog had, is:
2016/Dec/15/some-article-link/
Add Travis CI tests.
Just a way to compile using all settings to try to catch some error if any.
post_stats offers some stats, it could be used to add X minutes read like Medium.
Here's an example:
{% if post_stats_enabled %}
{{ article.stats['read_mins'] }} minute read
{% endif %}
Well, it's very common and useful. But the question is: Where must the banners be placed?
It's not good to add 10 banners per page. One is annoying, so it must be something careful, or not done at all.
Just thinking about this today.
I was reading the documentation, and I have not found documentation in the wiki about the favicon. Is this property only for flex?
Add Real User Management script.
We just need to add this code:
<div class="addthis_relatedposts_inline">
There's a plugin tipue_search to enable some kind of search.
It also could be used Google custom search or anything else.
There are some new translation to be included.
https://www.transifex.com/alexandrevicenzi/flex-pelican/languages/
I think that using microformats provided by schema.org would improve indexing at google. Allowing google better understand the content of the site. As a tradeoff, google give us back a rich snippet feature.
http://schema.org/Blog
https://search.google.com/structured-data/testing-tool/u/0/
https://www.youtube.com/watch?v=A-kX0Aut-18
https://www.youtube.com/watch?v=TvigPUtUH-0
There are a lot of new features and they need some kind of test.
Hello,
I'm currently starting my own blog using Pelican and your awesome theme π π .
I've been playing with social icons so far, and I have realized that there is no support for GitLab icon, as there is for GitHub.
I think it would be easy to include an orange background with the FontAwesome GitLab Icon, like the following image:
CSS code
ul.social a.sc-gitlab {
background-color: orange
}
I'm not a web developer, so any help or comments are welcome. Would you like this change in a PR?
Just an idea, maybe useful.
Well, hosting on github gives an error that it's not good.
For example http://blog.alexandrevicenzi.com/notfound should point to some good looking 404 page.
Add support for BROWSER_COLOR with Microsioft Edge on Windows 10.
My commit must be cherry picked to do so:
rullmann@a5b8218
I am trying the new theme, with translations, but I can not get it to work; I get this error:
CRITICAL: UndefinedError: 'gettext' is undefined
Traceback (most recent call last):
File "/usr/bin/pelican", line 9, in <module>
load_entry_point('pelican==3.6.3', 'console_scripts', 'pelican')()
File "/usr/lib/python2.7/dist-packages/pelican/__init__.py", line 478, in main
pelican.run()
File "/usr/lib/python2.7/dist-packages/pelican/__init__.py", line 183, in run
p.generate_output(writer)
File "/usr/lib/python2.7/dist-packages/pelican/generators.py", line 587, in generate_output
self.generate_pages(writer)
File "/usr/lib/python2.7/dist-packages/pelican/generators.py", line 486, in generate_pages
self.generate_articles(write)
File "/usr/lib/python2.7/dist-packages/pelican/generators.py", line 364, in generate_articles
blog=True)
File "/usr/lib/python2.7/dist-packages/pelican/writers.py", line 211, in write_file
override_output)
File "/usr/lib/python2.7/dist-packages/pelican/writers.py", line 155, in _write_file
output = template.render(localcontext)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 989, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/jasensios/Dropbox/pelican-blog/themes/flex/templates/article.html", line 1, in top-level template code
{% extends "base.html" %}
File "/home/jasensios/Dropbox/pelican-blog/themes/flex/templates/base.html", line 138, in top-level template code
<a href="{{ SITEURL }}">{{ _('Home') }}</a>
File "/usr/lib/python2.7/dist-packages/jinja2/ext.py", line 132, in _gettext_alias
return __context.call(__context.resolve('gettext'), *args, **kwargs)
jinja2.exceptions.UndefinedError: 'gettext' is undefined
This is the relevant configuration:
PLUGIN_PATHS = ["plugins", "custom-plugins"]
PLUGINS = ['i18n_subsites', 'summary', 'sitemap', 'feed_summary']
JINJA_EXTENSIONS = ['jinja2.ext.i18n']
DEFAULT_LANG = 'es'
OG_LOCALE = 'es_ES'
LOCALE = 'es_ES'
I18N_TEMPLATES_LANG = 'en'
Also I have generated a custom translation with the commands in the wiki:
./translation.sh new es_ES
# edited with poedit
./translate.sh compile
commit-id : ab0f263
line 4 entry string
Hi Alexandre,
Great template, thank you for sharing!
I am having two issues with the about and contact sections I am trying to place.
1- Whenever I try to click on home or the image I get directed to http://dazajuandaniel.github.io/dazajuandaiel.github.io instead of http://dazajuandaniel.github.io
2- The about or contact section directs me to https://dazajuandaniel.github.io/dazajuandaniel.github.io/pages/about.html#about and the HTML file is corrupted.
Link to my repository:
link
I have two branches the "Master" and "Source". The "Source" contains all the pelican files. I am using Windows machine with the Git Bash.
Thanks for an awesome theme, Alex. Small issue - there doesn't appear to be any setting to specify the authors of posts in the main feed, or even in the posts themselves. Is this deliberate?
As per Mozilla Observatory the CSP Header should be implemented. As this is a huge goal for the standard Pelican user we should at least implement it as metadata tag to prevent browsers from unloading unsafe scripts.
You may want to cherry pick my commit:
rullmann@bcd1f0c
When adding this change
ncharlot@389b3f4
to base.html, the following error is given:
pelican
CRITICAL: UndefinedError: 'gettext' is undefined
The problem seems to be known and is discussed in
getpelican/pelican-themes#460 (comment)
Appearantly subsites_i18n is required, or a better solution would be a plugin jinra_i18n providing the gettext dependency.
Anything for Flex that can be done about this.
Hi,
it seems that there is a bug in CSS with placement of "Newer Posts" button on index.html pages. The issue only applies when there is only one article on the page.
Unfortunately I'm not the CSS expert to figure out the error on my own :(
I did change a couple of things in my fork of the repo, but AFAIK non of the changes should have changed that property. Probably you can recreate the issue? I'll try to fix that during the next days.
Thanks for your help in advance!
Cheers,
Marcel
Can I change the overall "orange" theme by modifying conf files in pelicanconf.py ? If not, can you please add a feature for that ?
Hi!
We're launching a blog in french only.
After many tries, can't get translations. Still "Posted on..." rather than "PostΓ© le ...".
This is the conf:
# Default theme language.
I18N_TEMPLATES_LANG = 'fr'
DEFAULT_LANG = 'fr'
LOCALE = 'fr_FR'
OG_LOCALE = 'fr_FR'
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['i18n_subsites']
Do we really need i18n_subsites
module?
Thanks for your help.
Added ('email', 'mailto:[email protected]'),
to SOCIAL. All the others seem to be working, but mail is a blank blue circle, not a logo.
Apologies, bug or feature?
Thanks for the theme, it's great!
Usually, posts have a main image. I know it's not a standard in pelican. Although, I thought It would be nice to be able to have a image for each post as a attribute in the header of the post.
It would be great to have spanish (from Spain). If you want, I could help you with it (I'm spanish).
This might be user error on my part - but I can't figure out when I'm doing wrong. You can see an example at http://odonnellweb.com/pelican/tag/baseball.html
The URLs for the inline images are not forming correctly - they need to be absolute I think. However they are coming out of pelican as relative to the root directory for the site, and thus not found on pages like tags and category. Is this a me problem or the theme?
Thanks
We may want to use different favicons for different browsers and apps.
One way to generate those is the favicion Generator by DeGraeve.
Maybe you'd like to cherry pick my commit to introduce this feature?
I'm not sure if this an issue on my end as I am new to pelican in general, but when on the home page the markdown paragraph symbol is visible at all times (should only be visible on hover over). This Markdown text comes from a Jupyter notebook using the ipynb plugin.
However when I am viewing the post the Markdown paragraph symbol is invisible as expected (visible only on hover over functionality is still present, again as expected).
Thoughts?
Hi,
I've been looking at adding support for the neighbors plugin to Flex, so I can get previous/next post buttons on articles.
If you're happy to accept that (and it won't change anything if you don't enable the plugin) I'll probably submit a PR around the weekend, but the interesting thing is that I think it will add new text - 'Previous Post' and 'Next Post', which I think would need translating - so not sure what the impact of that is or if it's a problem?
Thanks.
I don't actually have an issue π
Just wanted to say thanks for this theme and its liberal license. As someone who can't design his way out of a beartrap, I've spent a long time finding a theme I like for my latest project (click if you're interested). This theme is pretty much perfect for what I need and it looks awesome. I may even use it in other projects.
Hi Alexandre,
I really appreciate your work, it looks perfect on my blog except there were no social icons show up. Finally I noticed the path is not correct.
On file 'base.html' line 14, the href shoud be
"{{ SITEURL }}/{{ THEME_STATIC_DIR }}/font-awesome/css/font-awesome.min.css"
instead of
"{{ SITEURL }}/{{ THEME_STATIC_DIR }}/font-awesome/font-awesome.min.css"
.
Hope this would help.
Best,
Fan Yang
Hi,
Is it possible to justify text in articles?
I added the following custom CSS:
article p {
text-align: justify;
}
But is there any drawback to do so, and if not maybe include it by default?
Hi @alexandrevicenzi ,
Thanks for taking the time to review and accept my last request.
This is more of an enhancement request - Flex users won't want hidden pages to be indexed by search engines, so this issue proposes a new ROBOTS_HIDDEN
config option to set the value of the robots
meta tag to a different value on hidden pages.
I'm going to submit a PR with my fix for review if you want to take this.
The HOME button on the top MENUITEMS not work and HTML element shows:
<a href=""> Home
</a>
If i add a MENUITEM use link "/", and the element shows:
<a href="/"> Home
</a>
and it works just like a real HOME button. how can i fix the defult HOME button?
Thanks.
Pelican supports translation. Flex is only in English, if someone want to use in pt-BR it need to edit the theme.
It's good to not break things if use i18n.
Hi, I've been using your theme for my blog and I really love it, amazing work.
However I have an issue that I can't manage to fix.
When I write a codeblock in my markdown files :
[Packager]
Name=Votre Nom
Email=votre.adresse@email
It is displayed only on one line no matter what I do. So it's not really readable.
An example can be found here
Do you have an idea ?
PS: I tried several versions of the theme and it's always the same thing...
Sorry, I can't understand the Wiki about how to add new code highlight styles. Can you write more detailed? Thank you very much.
Hi,I have been using your theme for blog,too.I prefer writing with markdown.
And how can I replace default markdown-css with github-markdown-css.
Do guys have a idea?
Hi,
Updating font-awesome.min.css to currently released version (4.6.1 vs 4.3.0 in Flex) has decreased the number of errors using W3C CSS Validator from 18 to 2.
Best regards.
Pablo
Would you like to have webassets plugin support for Flex?
I have it on my project (https://github.com/mauricioabreu/blog). If so, tell me so I can create a pull request soon.
Thanks for this beautiful theme. :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.