Git Product home page Git Product logo

base-blog's People

Contributors

augustinmauroy avatar fxrysh avatar isaac-tait avatar mbbx6spp avatar oscarotero avatar valtlai 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

Watchers

 avatar  avatar  avatar

base-blog's Issues

Had to change the build.yml script to work in GitHub

I was not able to get the GitHub website build script https://github.com/lumeland/base-blog/blob/master/.github/workflows/build.yml to push the static files to a gh-pages branch. I had to modify it slightly to the following:

# This script will build static site files and push them to a `gh-pages` branch of your repository.
# If you are able to go into the `gh-pages` branch and see you static content then the build action
# was successful in GitHub and you can continue on with configuring your repository to publish the 
# content of the `gh-pages` branch to your default repository website (which should look like 
# https://[gitUsername].github.io/[repositoryName]/). To publish this website, 
# in your GitHub repository online, go to Settings/Pages/Build and deployment/Source and choose the
# `Deploy from branch`. Then just below that option choose `gh-pages` as the branch. 
name: Build static files to gh-pages

on:
  # Runs on pushes targeting the default branch
  push:
    branches: ["main"]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# Allow one concurrent deployment
concurrency:
  group: "pages"
  cancel-in-progress: true
  
jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Clone repository
        uses: actions/checkout@v3

      - name: Setup Deno environment
        uses: denoland/setup-deno@v1
        with:
          deno-version: v1.x

      - name: Build site
        run: |
          deno task build --location=https://lumeland.github.io/base-blog/

      - name: Push static files to gh-pages branch
        uses: crazy-max/ghaction-github-pages@v3
        with:
          target_branch: gh-pages
          build_dir: _site
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

I'm guessing the addition of ...

        with:
          target_branch: gh-pages

...helped create the gh-pages branch and maybe using ghaction-github-pages@v3 helped too, but I didn't do much testing between the current version and this version to see what made the difference. If would like for me to send a PR for this I will.

For what it is worth GitHub Pages does a better job at caching resources out of the box. If using Vercel, I would suggest running this build script on GitHub and instead of telling Vercel to build the site on Vercel. If this script is successful in creating a gh-pages branch in your repository, go to the Git settings within your Vercel project and use the gh-pages branch from GitHub (which would have all of the static site files prebuilt for Vercel). You will also need to include a vercel.json (at least at the time of this writing) to set any caching headers, because Vercel will not cache HTTP resources by default when users make requests to the site. Just my 2cents.

add pinned post

I propose to add to the homepage of the posts that would be pinned

Out of the box experience leads to "Error: No target found"

If you follow the steps in the README:

  • Install Deno
  • Clone this repo
  • run deno task serve

The system errors out with:

Error: No target found
    at downloadBin (https://deno.land/x/[email protected]/mod.ts:71:11)
    at async downloadBinary (https://raw.githubusercontent.com/lumeland/experimental-plugins/main/pagefind/deps.ts:4:10)
    at async (https://raw.githubusercontent.com/lumeland/experimental-plugins/main/pagefind/mod.ts:115:22)
    at async Events.dispatchEvent (https://deno.land/x/[email protected]/core/events.ts:49:11)
    at async Site.build (https://deno.land/x/[email protected]/core/site.ts:486:5)
    at async build (https://deno.land/x/[email protected]/cli/build.ts:36:3)
    at async Command.execute (https://deno.land/x/[email protected]/command/command.ts:1433:7)
    at async (https://deno.land/x/[email protected]/cli.ts:182:3)

The docs suggest configuring _config.js, but I'm not sure what to adjust. This error appears related to pageFind, because if I remove that configuration then the serve works.

Module not found https://deno.land/x/[email protected]/task.ts

im using deno deploy with github actions,
i have exact file like the base blog

deno.json

{
  "importMap": "import_map.json",
  "tasks": {
    "build": "deno task lume",
    "serve": "deno task lume -s",
    "lume": "deno eval \"import 'lume/task.ts'\" --"
  }
}

import_map.json

{
  "imports": {
    "lume/": "https://deno.land/x/[email protected]/"
  }
}

github action error :

error: Module not found "https://deno.land/x/[email protected]/task.ts".
Error: Process completed with exit code 1.

New Install

Hi there!

I just did a fresh install of the base-blog and received this error:

Error: Error rendering this page
page: /index.njk

  Template render error: (/Users/Pope/Code/StormCloud/index.njk)
  Template render error: (/Users/Pope/Code/StormCloud/_includes/templates/postslist.njk) [Line 16, Column 29]
  Error: Unable to call `search["page"]`, which is undefined or falsey
  Template render error: (/Users/Pope/Code/StormCloud/_includes/templates/postslist.njk) [Line 16, Column 29]
  Error: Unable to call `search["page"]`, which is undefined or falsey
  at Module._prettifyError (https://deno.land/x/[email protected]/src/lib.js:32:11)
  at https://deno.land/x/[email protected]/src/environment.js:493:19
  at eval (eval at _compile (https://deno.land/x/[email protected]/src/environment.js:570:20), <anonymous>:40:11)
  at https://deno.land/x/[email protected]/src/environment.js:501:11
  at Template.root [as rootRenderFunc] (eval at _compile (https://deno.land/x/[email protected]/src/environment.js:570:20), <anonymous>:100:3)
  at Template.render (https://deno.land/x/[email protected]/src/environment.js:482:10)
  at eval (eval at _compile (https://deno.land/x/[email protected]/src/environment.js:570:20), <anonymous>:39:10)
  at fn (https://deno.land/x/[email protected]/src/waterfall.js:51:22)
  at https://deno.land/x/[email protected]/src/waterfall.js:34:22```

not really sure why its happening. I'm going to work around it and just remove the search function but I thought y'all would want to know

Heres the info about my environment: 
- 2015 Macbook Pro 13 inch, 2.7 GHz Intel Core i5, 8 GB 1867 MHz DDR3
- MacOS: 10.14.6 (18G9323)
- Deno 1.20.5
- Lume v1.1.0

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.