[gimp-web/gimp-web-static] Added 'images' subdir for 'news' items + styling
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/gimp-web-static] Added 'images' subdir for 'news' items + styling
- Date: Sat, 21 Nov 2015 04:20:55 +0000 (UTC)
commit c702ed88c2e82297518256c6386212faecb85356
Author: Pat David <pat patdavid net>
Date: Fri Nov 20 22:20:50 2015 -0600
Added 'images' subdir for 'news' items + styling
content/news/2015-11-18 20-years-of-gimp.md | 8 +++++++-
content/news/images/bond.jpg | Bin 0 -> 24866 bytes
pelicanconf.py | 4 ++--
themes/newgimp/static/css/article.css | 10 ++++++++++
4 files changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/content/news/2015-11-18 20-years-of-gimp.md b/content/news/2015-11-18 20-years-of-gimp.md
index f63d3e7..5c7fe95 100644
--- a/content/news/2015-11-18 20-years-of-gimp.md
+++ b/content/news/2015-11-18 20-years-of-gimp.md
@@ -2,6 +2,12 @@ Title: 20 Years of GIMP!
Date: 2015-11-18T16:32:24-05:00
Category: News
Authors: Pat David
-status: draft
This is a placeholder to announce 20 years of GIMP! Yay!
+
+Let's have a look at all the years of gun-barrel sequences from Bond openings:
+
+<figure>
+<img src='{filename}./images/bond.jpg' alt='Bond, James Bond'/>
+</figure>
+
diff --git a/content/news/images/bond.jpg b/content/news/images/bond.jpg
new file mode 100644
index 0000000..6892890
Binary files /dev/null and b/content/news/images/bond.jpg differ
diff --git a/pelicanconf.py b/pelicanconf.py
index 3e22ddc..908678d 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -57,11 +57,11 @@ RELATIVE_URLS = True
READERS = {'html': None}
# This will copy over these folders w/o modification
-STATIC_PATHS = ['images', 'js', 'pages', 'tutorials', 'about', 'books', 'develop', 'docs', 'donating',
'downloads', 'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix',
'robots.txt', 'COPYING', 'GNUGPLv2', 'GNUGPLv3']
+STATIC_PATHS = ['images', 'js', 'pages', 'tutorials', 'about', 'books', 'develop', 'docs', 'donating',
'downloads', 'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix',
'robots.txt', 'COPYING', 'GNUGPLv2', 'GNUGPLv3', 'news']
# This sets which directories will be parsed as pages (vs. news/articles)
-# If a new directory is to be added under content/, make sure it gets added here.
+# If a new directory is to be added under content/, make sure it gets added hereMarkdown.
PAGE_PATHS = ['about', 'frontpage', 'tutorials', 'books', 'develop', 'docs', 'donating', 'downloads',
'features', 'bugs', 'links', 'man', 'release-notes', 'screenshots', 'source', 'unix']
ARTICLE_PATHS = ['news']
diff --git a/themes/newgimp/static/css/article.css b/themes/newgimp/static/css/article.css
index 3bbcf69..63a2f82 100644
--- a/themes/newgimp/static/css/article.css
+++ b/themes/newgimp/static/css/article.css
@@ -38,3 +38,13 @@ body {
#pushPage {
background-color: white;
}
+
+figure {
+ display: table;
+ margin: 1rem auto;
+}
+
+figure img {
+ width: initial;
+ max-width: 100%;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]