🚜 Refactors theme and overall look. Fixes #133

This commit is contained in:
Jeff Triplett 2021-08-31 11:48:31 -05:00
parent 22440edc36
commit 545f28250d
No known key found for this signature in database
GPG Key ID: BD6DAFC4D1A381EA
9 changed files with 58 additions and 2953 deletions

View File

@ -1,11 +1,14 @@
---
title: "Awesome Django"
---
<div align="center">
<a href="https://github.com/sindresorhus/awesome#readme"><img src="https://awesome.re/badge-flat.svg" /></a><br>
<img width="400" src="./assets/django-logo.svg" alt="Django logo">
</div>
# Awesome Django
> A curated list of awesome things related to Django. Maintained by <a rel="" href="https://github.com/wsvincent">William Vincent</a> and <a rel="" href="https://github.com/jefftriplett">Jeff Triplett</a>.
Please consider supporting Django by making a donation to the <a rel="sponsored" href="https://www.djangoproject.com/fundraising/">Django Software Foundation</a>,

View File

@ -8,6 +8,7 @@ url: "https://awesome-django.org" # the base hostname & protocol for your site,
# Build settings
markdown: kramdown
remote_theme: pmarsceill/just-the-docs
plugins:
- jekyll-feed
- jekyll-optional-front-matter
@ -35,3 +36,56 @@ defaults:
values:
permalink: "/"
layout: "default"
aux_links:
"Awesome Django on GitHub":
- "//github.com/wsvincent/awesome-django"
# Makes Aux links open in a new tab. Default is false
aux_links_new_tab: false
color_scheme: django
# color_scheme: light
heading_anchors: true
footer_content: "Please consider supporting Django by making a donation to the <a rel=\"sponsored\" href=\"https://www.djangoproject.com/fundraising/\">Django Software Foundation</a>, sponsoring via <a rel=\"sponsored\" href=\"https://github.com/sponsors/django\">GitHub Sponsors</a>, or buying <a rel=\"sponsored\" href=\"https://django.threadless.com/\">official merchandise</a>."
# Footer last edited timestamp
last_edit_timestamp: true # show or hide edit time - page must have `last_modified_date` defined in the frontmatter
last_edit_time_format: "%b %e %Y at %I:%M %p" # uses ruby's time format: https://ruby-doc.org/stdlib-2.7.0/libdoc/time/rdoc/Time.html
# Footer "Edit this page on GitHub" link text
gh_edit_link: true # show or hide edit this page link
gh_edit_link_text: "Edit this page on GitHub."
gh_edit_repository: "https://github.com/wsvincent/awesome-django" # the github URL for your repo
gh_edit_branch: "main" # the branch that your docs is served from
# gh_edit_source: docs # the source that your files originate from
gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately
search_enabled: false
search:
# Split pages into sections that can be searched individually
# Supports 1 - 6, default: 2
heading_level: 2
# Maximum amount of previews per search result
# Default: 3
previews: 3
# Maximum amount of words to display before a matched word in the preview
# Default: 5
preview_words_before: 5
# Maximum amount of words to display after a matched word in the preview
# Default: 10
preview_words_after: 10
# Set the search token separator
# Default: /[\s\-/]+/
# Example: enable support for hyphenated search words
tokenizer_separator: /[\s/]+/
# Display the relative url in search results
# Supports true (default) or false
rel_url: true
# Enable or disable the search button that appears in the bottom right corner of every page
# Supports true or false (default)
button: false

View File

@ -1,27 +0,0 @@
---
---
<!DOCTYPE html>
<html class="no-js" lang="en-US">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Awesome Django</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
{% if jekyll.environment == 'development' %}
<link rel="stylesheet" href="{{ site.baseurl }}/assets/development.css" />
{% else %}
<link rel="stylesheet" href="{{ site.baseurl }}/assets/style.css" />
{% endif %}
</head>
<!-- Fork Me On GitHub Link -->
<a style="position: absolute;" href="https://github.com/wsvincent/awesome-django"><img loading="lazy" width="149" height="149" src="https://github.blog/wp-content/uploads/2008/12/forkme_left_green_007200.png?resize=149%2C149" class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1"></a>
<body class="max-w-screen-lg mx-auto pb-8 px-4 sm:px-6 lg:pb-8 lg:px-8 {% if jekyll.environment == 'development' %}border border-2 debug-screens{% endif %}">
<main class="container prose sm:prose-md md:prose-lg lg:prose-lg xl:prose-xl">
{{ content | replace: '<a href="http', '<a rel="ugc noopener noreferrer" href="http' }}
</main>
</body>
</html>

View File

@ -0,0 +1 @@
$link-color: $green-300;

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,3 @@
TAILWIND_CSS_VERSION := "2.1.1"
@_default:
just --list
@ -18,18 +16,5 @@ TAILWIND_CSS_VERSION := "2.1.1"
modd --file=modd.conf
bundle exec jekyll serve --drafts --watch --port 8000
@static:
JEKYLL_ENV=production \
npx -p tailwindcss@{{TAILWIND_CSS_VERSION}} tailwindcss build \
./src/style.css \
--config ./tailwind.config.js \
--output ./assets/style.css
npx -p tailwindcss@{{TAILWIND_CSS_VERSION}} tailwindcss build \
./src/style.css \
--config ./tailwind.config.js \
--output ./assets/development.css \
-w
@toc:
npx doctoc README.md

View File

@ -1,6 +0,0 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

View File

@ -1,5 +0,0 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@ -1,22 +0,0 @@
module.exports = {
// mode: 'jit',
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
},
purge: {
enabled: process.env.JEKYLL_ENV == "production",
mode: 'all',
content: [
'**/*.html'
],
},
plugins: [
require("@tailwindcss/typography"),
require("tailwindcss-debug-screens"),
],
theme: {
extend: {},
},
variants: {},
}