Skip to content

Commit

Permalink
[ SPECS ] Updated specs with instructions on how to load CSS and JS f…
Browse files Browse the repository at this point in the history
…rom a markdown file
  • Loading branch information
kostasx committed Oct 3, 2023
1 parent f3c6b08 commit 01bfaa1
Showing 1 changed file with 57 additions and 13 deletions.
70 changes: 57 additions & 13 deletions SPECS.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,58 @@
The following files and folders are part of the **Next.js** Application:

├── NEXTJS.README.md
├── app/
├── components/
├── next-env.d.ts
├── next.config.js
├── package-lock.json
├── package.json
├── postcss.config.js
├── public/
├── tailwind.config.js
└── tsconfig.json
## Jekyll | About the main website and GitHub Pages

Website: https://in-tech-gration.github.io/WDX-180/

### Jekyll | How to | Include CSS & JS in a markdown file

**Q: How do I load a CSS file in a particular markdown file?**

A: You will need to add the CSS filenames in a Frontmatter property named `load_css`, for example:

```markdown
---
load_css:
- typography.css
- libs/tagify.min.css
---

# Markdown content here...
```

The css files (e.g. `typography.css` and `tagify.min.css` from the example above) must be placed inside the `assets/jekyll/css/` folder.

**How to include JS:**

A: You will need to include the JS filename in a Front matter property named `load_script_js`:

```markdown
---
load_script_js:
- setup_faq.js
- app.js
---

# Markdown content here...
```

The JS files must be placed in the `assets/jekyll/_includes/` folder.

## About the `npm run learn` platform

It is based on `Next.js`.

The following files and folders are part of the **Next.js** Application:

```
├── NEXTJS.README.md
├── app/
├── components/
├── next-env.d.ts
├── next.config.js
├── package-lock.json
├── package.json
├── postcss.config.js
├── public/
├── tailwind.config.js
└── tsconfig.json
```

0 comments on commit 01bfaa1

Please sign in to comment.