mirror of
				https://github.com/fooflington/selfdefined.git
				synced 2025-10-31 22:28:32 +00:00 
			
		
		
		
	⚒️ Add a pageStyles block to base template (#98)
				
					
				
			* Import typekit fonts as link * Declare pageStyles block in base template * Uninstall prism-themes package
This commit is contained in:
		| @@ -11,8 +11,10 @@ | |||||||
|       name="description" |       name="description" | ||||||
|       content="{{ renderData.description or description or metadata.description }}" |       content="{{ renderData.description or description or metadata.description }}" | ||||||
|     > |     > | ||||||
|  |     <link rel="stylesheet" href="https://use.typekit.net/qlo3dpu.css" rel="preload"/> | ||||||
|     <link rel="stylesheet" href="{{ '/assets/css/base.css' | url }}"> |     <link rel="stylesheet" href="{{ '/assets/css/base.css' | url }}"> | ||||||
|  |     {% block pageStyles %} | ||||||
|  |     {% endblock pageStyles %} | ||||||
|   </head> |   </head> | ||||||
|   <body> |   <body> | ||||||
|     {% block content %}{% endblock content %} |     {% block content %}{% endblock content %} | ||||||
|   | |||||||
| @@ -1,7 +1,10 @@ | |||||||
| {% extends 'layouts/base.njk' %} | {% extends 'layouts/base.njk' %} | ||||||
| {% set pageType = 'Page' %} | {% set pageType = 'Page' %} | ||||||
| {% set titleWithPath = title + ' « Documentation « ' %} | {% set titleWithPath = title + ' « Documentation « ' %} | ||||||
|  | {% block pageStyles %} | ||||||
|  |   {# Code highlighting #} | ||||||
|  |   <link rel="stylesheet" href="https://unpkg.com/prism-themes@^1.3/themes/prism-a11y-dark.css"/> | ||||||
|  | {% endblock %} | ||||||
| {% block content %} | {% block content %} | ||||||
|   <div class="article-content"> |   <div class="article-content"> | ||||||
|     {% include 'components/sub-page-header.njk' %} |     {% include 'components/sub-page-header.njk' %} | ||||||
|   | |||||||
| @@ -21,9 +21,6 @@ | |||||||
| @import 'components/word', 'components/lists', 'components/definitions', | @import 'components/word', 'components/lists', 'components/definitions', | ||||||
|   'components/flag'; |   'components/flag'; | ||||||
|  |  | ||||||
| // 5.1 Code Highlighting |  | ||||||
| @import '~prism-themes/themes/prism-a11y-dark'; |  | ||||||
|  |  | ||||||
| // 6. Page-specific styles | // 6. Page-specific styles | ||||||
| @import './layouts/pages'; | @import './layouts/pages'; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,3 @@ | |||||||
| @import url('https://use.typekit.net/qlo3dpu.css'); |  | ||||||
|  |  | ||||||
| $sans-serif: monotype-grotesque, 'Lucida Sans', sans-serif; | $sans-serif: monotype-grotesque, 'Lucida Sans', sans-serif; | ||||||
| $serif: orpheuspro, Palatino, Times, serif; | $serif: orpheuspro, Palatino, Times, serif; | ||||||
| $ext-sans: monotype-grotesque-extended, Arial Black, sans-serif; | $ext-sans: monotype-grotesque-extended, Arial Black, sans-serif; | ||||||
|   | |||||||
							
								
								
									
										5
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										5
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -11252,11 +11252,6 @@ | |||||||
|         "parse-ms": "^0.1.0" |         "parse-ms": "^0.1.0" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "prism-themes": { |  | ||||||
|       "version": "1.3.0", |  | ||||||
|       "resolved": "https://registry.npmjs.org/prism-themes/-/prism-themes-1.3.0.tgz", |  | ||||||
|       "integrity": "sha512-4hDQyNuBRyWVvwHeTH4yY5TIWrl6BHmhoh85kgfTFgwklGerWA3R2RFp7Sg0zPCnQS8SsloKsEIN3ao63KhiIw==" |  | ||||||
|     }, |  | ||||||
|     "prismjs": { |     "prismjs": { | ||||||
|       "version": "1.17.1", |       "version": "1.17.1", | ||||||
|       "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.17.1.tgz", |       "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.17.1.tgz", | ||||||
|   | |||||||
| @@ -52,8 +52,7 @@ | |||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "@11ty/eleventy": "^0.10.0", |     "@11ty/eleventy": "^0.10.0", | ||||||
|     "markdown-it-anchor": "^5.2.5", |     "markdown-it-anchor": "^5.2.5", | ||||||
|     "markdown-it-prism": "^2.0.3", |     "markdown-it-prism": "^2.0.3" | ||||||
|     "prism-themes": "^1.3.0" |  | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "ava": "^3.5.0", |     "ava": "^3.5.0", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 EJ Mason
					EJ Mason