I'm having trouble linking my CSS stylesheet in my project. I have the CSS file stored in a public folder with a css subfolder within it. Despite trying various methods, I can't seem to get the stylesheet to connect properly. Below is a snippet from my app.js file:
app.set("view engine", "ejs");
app.use(express.static("public"));
app.use(bodyParser.urlencoded({ extended: true }));
app.use("/public", express.static("public"));
Here is the code I am using to link to the stylesheet from multiple EJS files and partials:
<link href="/css/style.css" rel="stylesheet" type="text/css">