浏览代码

:tractor: Refactors configs and layouts

Jeff Triplett 4 年之前
父节点
当前提交
f49aabecfc
共有 5 个文件被更改,包括 23 次插入24 次删除
  1. 1 0
      _config.yml
  2. 0 2
      _includes/footer.html
  3. 0 18
      _includes/header.html
  4. 20 3
      _layouts/default.html
  5. 2 1
      justfile

+ 1 - 0
_config.yml

@@ -20,6 +20,7 @@ exclude:
   - LICENSE
   - Makefile
   - modd.conf
+  - node_modules
   - package*.json
   - postcss.config.js
   - src

+ 0 - 2
_includes/footer.html

@@ -1,2 +0,0 @@
-</body>
-</html>

+ 0 - 18
_includes/header.html

@@ -1,18 +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 %}">

+ 20 - 3
_layouts/default.html

@@ -1,10 +1,27 @@
 ---
 ---
+<!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>
 
-{% include header.html %}
+  <!-- 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' }}
+{{ content | replace: '<a href="http', '<a rel="ugc noopener noreferrer" href="http' }}
 </main>
 
-{% include footer.html %}
+  </body>
+</html>

+ 2 - 1
justfile

@@ -11,7 +11,8 @@ TAILWIND_CSS_VERSION := "2.1.1"
     bundle exec jekyll build
 
 @lint:
-    npx awesome-lint README.md
+    -curlylint _layouts/
+    -npx awesome-lint README.md
 
 @serve:
     modd --file=modd.conf