Giter Club home page Giter Club logo

zeon-studio / astroplate Goto Github PK

View Code? Open in Web Editor NEW
410.0 10.0 132.0 732 KB

Astroplate is a free starter template built with Astro, TailwindCSS & TypeScript providing everything you need to jumpstart your Astro project. Get started with Astroplate and save yourself hours of work!

Home Page: https://zeon.studio/preview?project=astroplate

License: MIT License

JavaScript 6.58% TypeScript 28.65% Astro 49.26% SCSS 9.44% MDX 4.97% Dockerfile 1.09%
astro-theme tailwind-theme boilerplate-template starter-template typescript astro astro-boilerplate astro-template astrobuild jamstack

astroplate's People

Contributors

alerodrod avatar hassanferdous avatar joe-niland avatar rishi-raj-jain avatar tffarhad avatar tffaruk avatar tfmukles avatar tfsomrat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

astroplate's Issues

SSR is required to build the project?

I am new to the world of Astro and need some assistance with my project. I'm attempting to create a SSG, but I'm encountering issues with loading the styles. When I run "npm run dev," everything seems to work fine. However, when I execute "npm run build," the visualization appears to be incorrect.

Is it necessary for the project to work only with Server-Side Rendering (SSR)? Is it possible to build as SSG? Thank you in advance for your help.

Disqus Setting

Hello

I am using this theme on my machine, I am a newbie, actually... How to setup the disqus comment section? I mean is there any way to setup so I can use my disqus account? Thank you

Unexpected Page Generation from src/pages/[regular].astro Impacting src/pages/api/*

Issue Description:
The src/pages/[regular].astro page seems to be causing an unintended consequence by generating an additional page that includes src/pages/api/worker.mts. This behavior is not expected and needs investigation to identify the root cause and resolve the issue.

Steps to Reproduce:

  1. Navigate to src/pages/[regular].astro in the project.
  2. Observe the build process or live preview functionality.
  3. Check the output to confirm the generation of an extra page that includes src/pages/api/worker.mts.

Expected Behavior:
The src/pages/[regular].astro page should only generate the intended content and should not have any impact on other unrelated pages, such as src/pages/api/worker.mts.

Actual Behavior:
An additional page is being generated from src/pages/[regular].astro, and it includes src/pages/api/worker.mts, which is unexpected and causing issues.

Impact:
This issue may lead to confusion, increased build times, and potential errors in the generated output. It needs urgent attention to maintain the expected behavior and prevent unintended consequences.

Additional Information:

  • Version of the project framework or library.
  • Any recent changes or updates made to src/pages/[regular].astro.
  • Configuration settings related to page generation and build process.
  • Logs or error messages encountered during the build process.

Proposed Solution:
Investigate the src/pages/[regular].astro file to identify any unintended dependencies or configurations that might be causing the generation of the extra page including src/pages/api/worker.mts. Adjust the code or configuration accordingly to resolve the issue and ensure the expected behavior is restored.

The testimonial slider on the home page is not functioning as expected.

Problem: The testimonial slider on the home page is not functioning as expected.

Scenario: When a user visits the home page and then navigates to another page, upon returning to the home page, the testimonial slider is not working.

Steps to Reproduce:

  • Visit the home page.
  • Interact with the testimonial slider to ensure it's working initially.
  • Navigate to another page.
  • Return to the home page.
  • Expected Behavior: The testimonial slider on the home page should continue to work correctly, even after navigating to other pages and returning.

Actual Behavior: The testimonial slider on the home page becomes non-functional upon returning from other pages.

Environment:

  • OS: macOS
  • Browser: Chrome
  • Version: 118.0.5993.70

Reproducibility: Always

Possible Solution: The issue may be related to the use of view transitions. It seems to occur after navigating between pages using view transitions. Please check the implementation of view transitions to identify and resolve any conflicts or issues that might be causing the problem.

Search Results Broken

The URLs generated by the search results component are all undefended. Clicking on the title or read more button results in a 404 error.

It looks like you can fix this by changing the links inside Search.tsx

From <a href={/${blog_folder}/${item.data.slug}}>
To <a href={/${blog_folder}/${item.slug}}>

I'm not sure if this is a fix or more of a hack.

Dark theme stop working propertly when ViewTransitions is used

After ViewTransitions in Base.astro

---
import { ViewTransitions } from 'astro:transitions';
---
<html lang="en">
  <head>
    <title>My Homepage</title>
    <ViewTransitions />
  </head>
  <body>
    
  </body>
</html>

If we switch to another page and want to change the theme (dark or ligth): It stop working. In order to change the theme it is necessary to do a reload. This means what we can only change the theme in the first page loaded.

SSG not working

I configured the site in Netlify and Vercel and the visualization is not working correctly, cannot load the styles.
It only works when I am running the project using astro dev
Any idea?

Dockerfile does not work

I tried to follow this Guide in the README:

image

but i got. Reproducable on the bare repository without changing anything.

docker run -p 3000:3000 astroplate                                                                                        ✔   28s  ⬢ 20.2.0  11:30:09 
node:internal/modules/cjs/loader:1080
  throw err;
  ^

Error: Cannot find module '/app/server.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.17.0

List latest X items in home

Hello, excellent work, congratulations

I would like to show the latest X articles from my blog on my home, how can I do it? Is there a function already created or should I do it?

Thank you and again congratulations for such a good job.

404 page

Please I need help. I'd appreciate it if anyone can point me to the exact line(s) of code or process in the codebase that made the 404 page reachable whenever a visitor tries to search for a page that does not exist. I'm new to learning and building with astro and i'd really love to know how this was implemented. Thanks.

Enhancement: Add i18n support

I've been struggling trying to implement internationalization.
There are several approaches available and the latest, official one, from Astro doesn't seem very well documented.
Any plans of implementing it?

Thanks for the awesome template!

Unable to resolve dependency tree

On running npm install for the first time getting teh below error(s):

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/astro
npm ERR!   astro@"^3.0.7" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer astro@"^2.10.0" from @astrojs/[email protected]
npm ERR! node_modules/@astrojs/image
npm ERR!   @astrojs/image@"^0.17.3" from the root project

Safe update to Astro v4

When I try to update to V4 I have this error:

astroplate % npx @astrojs/upgrade
Need to install the following packages:
@astrojs/[email protected]
Ok to proceed? (y) y

astro Integration upgrade in progress.

  ◼  @astrojs/sitemap is up to date on v3.0.3
  ●  @astrojs/react will be updated to v3.0.7
  ●  @astrojs/tailwind will be updated to v5.0.3
  ▲  astro will be updated to  v4.0.4 
  ▲  @astrojs/mdx will be updated to  v2.0.1 
  ▲  @astrojs/rss will be updated to  v4.0.1 

wait Some packages have breaking changes. Continue?
Yes

check Be sure to follow the CHANGELOGs.
astro https://docs.astro.build/en/guides/upgrade-to/v4/
@astrojs/mdx https://github.com/withastro/astro/blob/main/packages/integrations/mdx/CHANGELOG.md#201
@astrojs/rss https://github.com/withastro/astro/blob/main/packages/astro-rss/CHANGELOG.md#401

██████ Installing dependencies with npm...

  ▲  error Dependencies failed to install, please run the following command manually:

npm install @astrojs/[email protected] @astrojs/[email protected] @astrojs/[email protected] @astrojs/[email protected] [email protected]

Can you suggest any fix?

Thanks!

Unable to build the dockerfile, please help

 docker build -t astroplate .
[+] Building 0.8s (12/16)                                                                                                                                                                    
 => [internal] load .dockerignore                                                                                                                                                       0.0s
 => => transferring context: 112B                                                                                                                                                       0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                    0.0s
 => => transferring dockerfile: 1.61kB                                                                                                                                                  0.0s
 => [internal] load metadata for docker.io/library/node:18-alpine                                                                                                                       0.7s
 => [internal] load build context                                                                                                                                                       0.0s
 => => transferring context: 6.17kB                                                                                                                                                     0.0s
 => [base 1/1] FROM docker.io/library/node:18-alpine@sha256:3482a20c97e401b56ac50ba8920cc7b5b2022bfc6aa7d4e4c231755770cf892f                                                            0.0s
 => CACHED [builder 1/4] WORKDIR /app                                                                                                                                                   0.0s
 => CACHED [runner 2/4] RUN addgroup --system --gid 1001 nodejs                                                                                                                         0.0s
 => CACHED [runner 3/4] RUN adduser --system --uid 1001 astro                                                                                                                           0.0s
 => CACHED [deps 1/4] RUN apk add --no-cache libc6-compat                                                                                                                               0.0s
 => CACHED [deps 2/4] WORKDIR /app                                                                                                                                                      0.0s
 => CACHED [deps 3/4] COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./                                                                                                0.0s
 => ERROR [deps 4/4] RUN   if [ -f yarn.lock ]; then yarn --frozen-lockfile;   elif [ -f package-lock.json ]; then npm ci;   elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm &&   0.1s
------
 > [deps 4/4] RUN   if [ -f yarn.lock ]; then yarn --frozen-lockfile;   elif [ -f package-lock.json ]; then npm ci;   elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile;   else echo "Lockfile not found." && exit 1;   fi:
#0 0.103 Lockfile not found.
------
Dockerfile:11
--------------------
  10 |     COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
  11 | >>> RUN \
  12 | >>>   if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
  13 | >>>   elif [ -f package-lock.json ]; then npm ci; \
  14 | >>>   elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
  15 | >>>   else echo "Lockfile not found." && exit 1; \
  16 | >>>   fi
  17 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c if [ -f yarn.lock ]; then yarn --frozen-lockfile;   elif [ -f package-lock.json ]; then npm ci;   elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile;   else echo \"Lockfile not found.\" && exit 1;   fi" did not complete successfully: exit code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.