Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website redesign 2022 #16

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
be6de4c
Add Poetry and Tailwind, djlint dependencies
lcfd Jul 19, 2022
b880e58
Add Tailwind to theme and configurations
lcfd Jul 19, 2022
18b5402
Ignore .vscode folder
lcfd Jul 19, 2022
68fb6f9
Add tool.djlint configuration
lcfd Jul 19, 2022
28079d2
Initial fix of base.html
lcfd Jul 19, 2022
3404122
Delete notmyidea static files
lcfd Jul 19, 2022
afbc204
Add Poppins font
lcfd Jul 19, 2022
ea10b54
Rename theme and use homepage.html as inde
lcfd Jul 19, 2022
86cf0c6
Add responsive header
lcfd Jul 19, 2022
ce60cf7
Clean all URLs and improve website title
lcfd Jul 20, 2022
9d502a4
Add all new website template parts
lcfd Jul 20, 2022
5bebd86
Add pelican with markdown to the dependencies
lcfd Jul 20, 2022
cb9ea6c
Finishing touches and improved pages
lcfd Jul 20, 2022
30cfc36
Add colors to links
lcfd Jul 25, 2022
8353e8e
Remove all target="_blank"
lcfd Jul 25, 2022
1d12af8
Remove news link
lcfd Jul 25, 2022
4798897
Move tags and categories sections under blog/ subpath
lcfd Jul 25, 2022
fdf64b2
Add categories template with clean url
lcfd Jul 25, 2022
7b4c1bb
Add tags template and clean urls
lcfd Jul 25, 2022
000aef1
Improve author and category templates
lcfd Jul 25, 2022
f31d98d
Improve margin of featured article
lcfd Jul 25, 2022
94c5fe1
Add trailing slash of gratitude link
lcfd Jul 25, 2022
4c04424
Add Fortressa in the footer
lcfd Jul 25, 2022
af0aa2e
Add Powered by
lcfd Jul 25, 2022
e7d4506
Change SITEURL to https://getpelican.com for production
lcfd Jul 25, 2022
e7e53d8
Remove packages from pyproject.toml
lcfd Jul 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
*.out
*.py[cod]
output
.vscode
4 changes: 2 additions & 2 deletions content/pages/gratitude.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Gratitude

:title: Gratitude

The theme for this site is courtesy of `Smashing Magazine`_.
The theme for this site is courtesy of `Luca Fedrizzi`_.

The Pelican logo was designed by Derry Livenski and is available under a
`Creative Commons`_ license via the download links below:
Expand All @@ -13,7 +13,7 @@ The Pelican logo was designed by Derry Livenski and is available under a
SVG_ PNG_ PDF_


.. _`Smashing Magazine`: http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/
.. _`Luca Fedrizzi`: https://twitter.com/lc_fd
.. _`Creative Commons`: https://creativecommons.org/licenses/by/4.0/

.. |logo| image:: {static}/logo/pelican-logo-small.png
Expand Down
62 changes: 0 additions & 62 deletions content/pages/index.rst

This file was deleted.

47 changes: 47 additions & 0 deletions input.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
.btn {
@apply rounded-lg px-8 py-3;
@apply inline-block;
@apply no-underline;
}
.btn_primary {
@apply bg-primary;
@apply text-white hover:text-white;
}
.btn_white {
@apply bg-white hover:text-primary;
}

.text_gradient {
@apply text-transparent bg-clip-text bg-gradient-to-r from-primary to-primary-shade;
}

.inline_code {
@apply bg-primary-100 rounded-sm font-medium px-2;
}

.fluctuate_animation {
animation: fluctuate 8s infinite;
}

a {
@apply underline text-primary;
@apply transition-colors hover:text-primary-shade;
}
}

@keyframes fluctuate {
0% {
transform: translateY(-20px);
}
50% {
transform: translateY(+20px);
}
100% {
transform: translateY(-20px);
}
}
28 changes: 26 additions & 2 deletions pelicanconf.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import logging

AUTHOR = "Pelican Contributors"
SITENAME = "Pelican Development Blog"
SITENAME = "Pelican – A Python Static Site Generator"
SITEURL = ""

PATH = "content"

THEME = "themes/notmyidea"
THEME = "themes/getpelican"

CACHE_CONTENT = False
LOAD_CONTENT_CACHE = False
Expand All @@ -16,6 +16,8 @@
DEFAULT_LANG = "en"
LOCALE = "en_US.UTF-8"

TEMPLATE_PAGES = {"homepage.html": "index.html"}

MENUITEMS = (
("documentation", "https://docs.getpelican.com"),
("contribute", "https://donate.getpelican.com"),
Expand Down Expand Up @@ -68,3 +70,25 @@
},
"output_format": "html5",
}

TAILWIND = {
"version": "3.0.0",
"plugins": [
"@tailwindcss/typography",
"@tailwindcss/line-clamp",
],
}

INDEX_SAVE_AS = "blog/index.html"
PAGE_URL = "{slug}"
PAGE_SAVE_AS = "{slug}/index.html"
ARTICLE_SAVE_AS = 'blog/{slug}/index.html'
ARTICLE_URL = 'blog/{slug}'
CATEGORIES_URL = 'blog/categories/'
CATEGORIES_SAVE_AS = 'blog/categories/index.html'
CATEGORY_URL = 'blog/category/{slug}/index.html'
CATEGORY_SAVE_AS = 'blog/category/{slug}/index.html'
TAGS_URL = 'blog/tags/'
TAGS_SAVE_AS = 'blog/tags/index.html'
TAG_URL = 'blog/tag/{slug}/index.html'
TAG_SAVE_AS = 'blog/tag/{slug}/index.html'
2 changes: 1 addition & 1 deletion publishconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
sys.path.append(".")
from pelicanconf import * # noqa

SITEURL = "https://blog.getpelican.com"
SITEURL = "https://getpelican.com"

DELETE_OUTPUT_DIRECTORY = True
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[tool.poetry]
name = "pelican-blog"
version = "0.1.0"
description = "The Pelican Blog"
authors = ["Luca Fedrizzi <9001053+fedriz@users.noreply.github.com>"]
readme = "README.rst"

[tool.poetry.dependencies]
python = ">=3.10,<4.0"
pelican-tailwindcss = ">=0.2.0"
djlint = ">=1.7.0"
pelican = {extras = ["markdown"], version = ">=4.8.0"}


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.djlint]
profile="jinja"
indent=2
ignore="T028,H006"
22 changes: 22 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./themes/**/*.html", "./themes/**/*.js"],
theme: {
extend: {
fontFamily: {
sans: ["Poppins", "sans-serif"],
},
colors: {
"primary-100": "#F0F9F8",
"primary-200": "#90D4D1",
"primary-300": "#23BDD2",
primary: "#14A0C4",
"primary-shade": "#a1d9e7",
},
},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/line-clamp"),
],
};
129 changes: 129 additions & 0 deletions themes/getpelican/static/css/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
/* poppins-100 - latin */
@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 100;
src: url("/theme/fonts/poppins/Poppins-Thin.ttf") format("truetype");
}
/* poppins-100italic - latin */
@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 100;
src: url("/theme/fonts/poppins/Poppins-ThinItalic.ttf") format("truetype");
}
/* poppins-200 - latin */
@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 200;
src: url("/theme/fonts/poppins/Poppins-ExtraLight.ttf") format("truetype");
}
/* poppins-200italic - latin */
@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 200;
src: url("/theme/fonts/poppins/Poppins-ExtraLightItalic.ttf")
format("truetype");
}
/* poppins-300 - latin */
@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 300;
src: url("/theme/fonts/poppins/Poppins-Light.ttf") format("truetype");
}
/* poppins-300italic - latin */
@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 300;
src: url("/theme/fonts/poppins/Poppins-LightItalic.ttf") format("truetype");
}
/* poppins-regular - latin */
@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 400;
src: url("/theme/fonts/poppins/Poppins-Regular.ttf") format("truetype");
}
/* poppins-italic - latin */
@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 400;
src: url("/theme/fonts/poppins/Poppins-Italic.ttf") format("truetype");
}
/* poppins-500 - latin */
@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 500;
src: url("/theme/fonts/poppins/Poppins-Medium.ttf") format("truetype");
}
/* poppins-500italic - latin */
@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 500;
src: url("/theme/fonts/poppins/Poppins-MediumItalic.ttf") format("truetype");
}
/* poppins-600 - latin */
@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 600;
src: url("/theme/fonts/poppins/Poppins-SemiBold.ttf") format("truetype");
}
/* poppins-600italic - latin */
@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 600;
src: url("/theme/fonts/poppins/Poppins-SemiBoldItalic.ttf")
format("truetype");
}
/* poppins-700 - latin */
@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 700;
src: url("/theme/fonts/poppins/Poppins-Bold.ttf") format("truetype");
}
/* poppins-700italic - latin */
@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 700;
src: url("/theme/fonts/poppins/Poppins-BoldItalic.ttf") format("truetype");
}
/* poppins-800 - latin */
@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 800;
src: url("/theme/fonts/poppins/Poppins-ExtraBold.ttf") format("truetype");
}
/* poppins-800italic - latin */
@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 800;
src: url("/theme/fonts/poppins/Poppins-ExtraBoldItalic.ttf")
format("truetype");
}
/* poppins-900 - latin */
@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 900;
src: url("/theme/fonts/poppins/Poppins-Black.ttf") format("truetype");
}
/* poppins-900italic - latin */
@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 900;
src: url("/theme/fonts/poppins/Poppins-BlackItalic.ttf") format("truetype");
}
Loading