https://github.com/jgantunes/test-nextjs-blog-theme

https://github.com/jgantunes/test-nextjs-blog-theme

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.0%) to scientific vocabulary

Keywords from Contributors

documents zsh-plugin communication stats export transformer
Last synced: 4 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: JGAntunes
  • License: mit
  • Language: JavaScript
  • Default Branch: main
  • Size: 2.18 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 3 years ago · Last pushed about 3 years ago
Metadata Files
Readme License

README.md

Netlify Next.js Blog Template designed by Bejamas

Deploy to Netlify Button

A customizable blog starter using:

  • Next.js v12
  • Tailwind v3.0
  • Built-in MDX v1 support
  • Includes modern design with dark & light themes

Preview of blog theme. Author named Jay Doe and blog's name is "Next.js Blog Theme" with one blog post

Take a gander at the demo.

Click here to watch the template walkthrough!

Table of Contents:

Getting Started


You can get started with this project in two ways: locally or using the setup wizard.

Setting Up Locally

If you're doing it locally, start with clicking the use this template button on GitHub. This will create a new repository with this template's files on your GitHub account. Once that is done, clone your new repository and navigate to it in your terminal.

From there, you can install the project's dependencies by running:

shell yarn install

Finally, you can run your project locally with:

shell yarn run dev

Open your browser and visit http://localhost:3000, your project should be running!

Using the Setup Wizard

Preview of Setup Wizard showing the initial page of a setup form

Through the setup wizard, you can create your blog in a few clicks and deploy to Netlify.

Configuring the blog

The config is based on environment variables to make it easy to integrate with any Jamstack platform, like Netlify.

Here are the variables you can edit: | Variable | Description | Options | --- | --- | --- | | BLOG_NAME | the name of your blog, displayed below the avatar || | BLOG_TITLE | the main header (h1) on the home page || | BLOG_FOOTER_TEXT| the text in the footer || | BLOG_THEME | the theme to pass to Tailwind | default | | BLOG_FONT_HEADINGS | the font-family for all HTML headings, from h1 to h6| sans-serif (default), serif, monospace| | BLOG_FONT_PARAGRAPHS | the font-family for all other HTML elements | sans-serif (default), serif, monospace|

All of the env variables can be configured through the Wizard or through setting the project's environment variables. You can do this in your Netlify dashaboard (Site settings/Build & deploy/Environment/Environment variables).

https://user-images.githubusercontent.com/3611928/153997545-6dcdeef0-e570-49e7-93d6-ce0d393d16c9.mp4

[alt: video walkthrough of editing env vars]

If setting an environment variable isn't your cup of tea, the defaults can be changed in utils/global-data.js. You can also remove the variables and hard code blog information where these variables are used in the code base.

Adding new posts

All posts are stored in /posts directory. To make a new post, create a new file with the .mdx extension.

Since the posts are written in MDX format you can pass props and components. That means you can use React components inside your posts to make them more interactive. Learn more about how to do so in the MDX docs on content.

https://user-images.githubusercontent.com/3611928/152727802-102ec296-41c8-446d-93ed-922d11187073.mp4

[alt: video walkthrough of adding a new blog post]

Testing

Included Default Testing

We’ve included some tooling that helps us maintain these templates. This template currently uses:

If your team is not interested in this tooling, you can remove them with ease!

Removing Renovate

In order to keep our project up-to-date with dependencies we use a tool called Renovate. If you’re not interested in this tooling, delete the renovate.json file and commit that onto your main branch.

Removing Cypress

For our testing, we use Cypress for end-to-end testing. This makes sure that we can validate that our templates are rendering and displaying as we’d expect. By default, we have Cypress not generate deploy links if our tests don’t pass. If you’d like to keep Cypress and still generate the deploy links, go into your netlify.toml and delete the plugin configuration lines:

```diff [[plugins]] package = "netlify-plugin-cypress" - [plugins.inputs.postBuild]

- enable = true

  • [plugins.inputs]
  • enable = false ```

If you’d like to remove the netlify-plugin-cypress build plugin entirely, you’d need to delete the entire block above instead. And then make sure sure to remove the package from the dependencies using:

bash npm uninstall -D netlify-plugin-cypress

And lastly if you’d like to remove Cypress entirely, delete the entire cypress folder and the cypress.config.ts file. Then remove the dependency using:

bash npm uninstall cypress

Owner

  • Name: João Antunes
  • Login: JGAntunes
  • Kind: user
  • Location: Lisbon
  • Company: @netlify

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 103
  • Total Committers: 10
  • Avg Commits per committer: 10.3
  • Development Distribution Score (DDS): 0.35
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
renovate[bot] 2****] 67
Thom Krupa t****m@b****o 13
Prince Wilson m****n@g****m 8
Tara Z. Manicsic t****s@g****m 6
Charlie Gerard c****d@g****m 4
Renovate Bot b****t@r****m 1
Michael Gearhardt m****t@f****m 1
Marco Valsecchi m****i@g****m 1
Marc Littlemore M****L 1
Lynn Fisher l****c 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

package-lock.json npm
  • 1005 dependencies
package.json npm
  • autoprefixer ^10.4.0 development
  • eslint <9.0.0 development
  • eslint-config-next 12.3.4 development
  • eslint-config-prettier ^8.3.0 development
  • netlify-plugin-cypress ~2.2.0 development
  • postcss ^8.4.4 development
  • tailwindcss ^3.0.0 development
  • @mapbox/rehype-prism ^0.8.0
  • @tailwindcss/typography ^0.5.0
  • classnames ^2.3.1
  • cypress ^10.1.0
  • gray-matter ^4.0.2
  • next latest
  • next-mdx-remote ^4.1.0
  • next-remote-watch 1.0.0
  • prismjs ^1.25.0
  • react ^18.0.0
  • react-dom ^18.0.0
  • remark-gfm ^3.0.1
yarn.lock npm
  • 990 dependencies