forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix 🐛 (css): fix css for cookie stuff (#14)
Here are the branches that are currently applied: - fix/pipelines (refs/gitbutler/fix/pipelines) branch head: 07f14c2c0e202af6a8c5e0cf5c71b17a81e1a955 - src/components/MainHead.astro - package.json - pnpm-lock.yaml - src/pages/index.astro - src/components/ThemeToggle.astro - astro.config.mjs - src/components/PortfolioPreview.astro - src/content/config.ts - src/content/blog/2016-01-11-side-loading-application-without-sccm-part-1.md - src/content/blog/2015-12-16-get-nexttrain.md - remark-modified-time.mjs - src/components/DateTime.astro - remark-reading-time.mjs Your previous branch was: refs/heads/fix/pipelines The sha for that commit was: 496d70f33695afe0c09a7e3f474c695a413b4d12 For more information about what we're doing here, check out our docs: https://docs.gitbutler.com/features/virtual-branches/integration-branch * fix 🐛 (css): fix css for cookie stuff fix css for the cookie banner stuff --------- Co-authored-by: GitButler <[email protected]>
- Loading branch information
1 parent
0e32604
commit cb728c4
Showing
14 changed files
with
410 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { execSync } from "child_process"; | ||
|
||
export function remarkModifiedTime() { | ||
return function (tree, file) { | ||
const filepath = file.history[0]; | ||
const result = execSync(`git log -1 --pretty="format:%cI" "${filepath}"`); | ||
console.log("lastModified", `${filepath} : ${result.toString()}`); | ||
|
||
file.data.astro.frontmatter.lastModified = result.toString(); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
interface Props { | ||
date: Date; | ||
} | ||
const { date } = Astro.props; | ||
--- | ||
|
||
<time datetime={date.toISOString()}> | ||
{ | ||
date.toLocaleDateString("fr-fr", { | ||
year: "numeric", | ||
month: "short", | ||
day: "numeric", | ||
}) | ||
} | ||
</time> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.