mirror of
https://github.com/avinal/avinal.github.io.git
synced 2026-07-03 23:30:09 +05:30
for production
This commit is contained in:
+3
-3
@@ -9,15 +9,15 @@
|
||||
<link rel="stylesheet" href="/website/foo-style.min.css">
|
||||
|
||||
<title>Document</title>
|
||||
<script src="/website/redirect.js"></script>
|
||||
<script src="/redirect.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
<script src="/website/app.js"></script>
|
||||
<script src="/app.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||
<script src="/website/prism.js"></script>
|
||||
<script src="/prism.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||
<script>
|
||||
var app = Elm.Main.init({ node: document.getElementById("app") });
|
||||
|
||||
@@ -4740,7 +4740,7 @@ body {
|
||||
--text-primary: #fff;
|
||||
--text-secondary: #cdcdcd;
|
||||
--text-inactive: #cdcdcda6;
|
||||
--text-link: #8cb4ff;
|
||||
--text-link: #35bdb8;
|
||||
--text-invert: #1b1b1b;
|
||||
--background-primary: #1b1b1b;
|
||||
--background-secondary: #343434;
|
||||
@@ -4839,7 +4839,7 @@ body {
|
||||
color-scheme: dark
|
||||
}
|
||||
|
||||
@media(prefers-color-scheme:light) {
|
||||
/* @media(prefers-color-scheme:light) {
|
||||
:root:not(.light):not(.dark) {
|
||||
--text-primary: #1b1b1b;
|
||||
--text-secondary: #4e4e4e;
|
||||
@@ -4942,9 +4942,9 @@ body {
|
||||
--text-primary-yellow: #746a00;
|
||||
color-scheme: light
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
@media(prefers-color-scheme:dark) {
|
||||
/* @media(prefers-color-scheme:dark) {
|
||||
:root:not(.light):not(.dark) {
|
||||
--text-primary: #fff;
|
||||
--text-secondary: #cdcdcd;
|
||||
@@ -5047,7 +5047,7 @@ body {
|
||||
--text-primary-yellow: #c7b700;
|
||||
color-scheme: dark
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
.document-page .article-actions-container,
|
||||
.document-page .document-toc-container,
|
||||
|
||||
+7
-5
@@ -1,9 +1,6 @@
|
||||
module Base exposing (urlPrefix, contentUrlPrefix)
|
||||
module Base exposing (contentUrlPrefix, urlPrefix, websiteBase)
|
||||
|
||||
{-| The base URL for accessing the content for the site
|
||||
|
||||
Using Github CDN for now, but this could be changed to a custom domain
|
||||
|
||||
-}
|
||||
|
||||
|
||||
@@ -21,9 +18,14 @@ user =
|
||||
|
||||
urlPrefix : String
|
||||
urlPrefix =
|
||||
"website"
|
||||
"avinal.github.io"
|
||||
|
||||
|
||||
contentUrlPrefix : String
|
||||
contentUrlPrefix =
|
||||
contentBase ++ "/" ++ user ++ "/" ++ urlPrefix ++ "/main/content/"
|
||||
|
||||
|
||||
websiteBase : String
|
||||
websiteBase =
|
||||
"https://avinal.space"
|
||||
|
||||
+9
-9
@@ -1,6 +1,6 @@
|
||||
module Main exposing (main)
|
||||
|
||||
import Base exposing (urlPrefix)
|
||||
import Base exposing (websiteBase)
|
||||
import Blog as Blog
|
||||
import Browser exposing (Document)
|
||||
import Browser.Navigation as Nav
|
||||
@@ -109,7 +109,7 @@ viewHeader page =
|
||||
|
||||
_ ->
|
||||
header [ class "foo-logo" ]
|
||||
[ img [ src "/website/logo-static.svg", target urlPrefix ]
|
||||
[ img [ src "/website/logo-static.svg", target websiteBase ]
|
||||
[]
|
||||
]
|
||||
in
|
||||
@@ -128,7 +128,7 @@ viewFooter page =
|
||||
footer [ class "foo-footer" ]
|
||||
[ ul []
|
||||
[ li []
|
||||
[ a [ href urlPrefix ] [ text "Home" ]
|
||||
[ a [ href websiteBase ] [ text "Home" ]
|
||||
]
|
||||
]
|
||||
]
|
||||
@@ -241,11 +241,12 @@ parser : Parser (Route -> a) a
|
||||
parser =
|
||||
Parser.oneOf
|
||||
[ Parser.map Splash Parser.top
|
||||
, Parser.map Splash (s urlPrefix)
|
||||
, Parser.map Blog (s urlPrefix </> s "posts")
|
||||
, Parser.map BlogPost (s urlPrefix </> s "posts" </> Parser.string </> Parser.string </> Parser.fragment identity)
|
||||
, Parser.map Static (s urlPrefix </> s "pages")
|
||||
, Parser.map Terminal (s urlPrefix </> s "terminal")
|
||||
|
||||
-- , Parser.map Splash (s urlPrefix)
|
||||
, Parser.map Blog (s "posts")
|
||||
, Parser.map BlogPost (s "posts" </> Parser.string </> Parser.string </> Parser.fragment identity)
|
||||
, Parser.map Static (s "pages")
|
||||
, Parser.map Terminal (s "terminal")
|
||||
]
|
||||
|
||||
|
||||
@@ -289,7 +290,6 @@ subscriptions model =
|
||||
-- BlogPage blogModel ->
|
||||
-- Blog.subscriptions blogModel
|
||||
-- |> Sub.map GotBlogMsg
|
||||
|
||||
_ ->
|
||||
Sub.none
|
||||
|
||||
|
||||
Reference in New Issue
Block a user