Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教同学一个问题哈 #44

Open
jsjcjsjc opened this issue Dec 8, 2022 · 4 comments
Open

请教同学一个问题哈 #44

jsjcjsjc opened this issue Dec 8, 2022 · 4 comments

Comments

@jsjcjsjc
Copy link

jsjcjsjc commented Dec 8, 2022

我看同学的https://xytom.github.io/Url-Shorten-Worker/no-ref.html是指向https://github.com/xyTom/Url-Shorten-Worker/blob/gh-pages/no-ref.html的.
想问一下这个咋配置,我已经复制了所有的分枝.
感谢

@jsjcjsjc
Copy link
Author

jsjcjsjc commented Dec 8, 2022

找到那个Repository,点击Settings,点击pages,选择一个Branch,点击save,显示GitHub Pages source saved. ~~
然后原来的https://github.com/xxxx/Url-Shorten-Worker,改成https://xxxx.github.io/Url-Shorten-Worker就可以访问了

应该是这样把~ ;-)

@xyTom
Copy link
Owner

xyTom commented Dec 8, 2022 via email

@jsjcjsjc
Copy link
Author

感谢同学,有一个问题想问一下,我想把去refer的跳转页面只显示Redirecting..
这个应该咋改哈

<!DOCTYPE html>
<html>

<head>
	<title>Url-Shorten-Worker</title>
	<meta http-equiv="Refresh" content="1; url={Replace}" />
	<meta name="referrer" content="no-referrer" />
</head>

<body>
	<p>Redirecting..<br /><a href="{Replace}">{Replace}</a></p>
	<a href="https://github.com/xyTom/Url-Shorten-Worker/" target="_self">Fork me on GitHub</a>
	<script type="text/javascript">
		/* <![CDATA[ */
		setTimeout('window.location.replace( "{Replace}" + window.location.hash );', 1000 )

/* ]]> */
	</script>
</body>

</html>

@jsjcjsjc
Copy link
Author

好像这样就可以了吗? 自己瞎改的

<!DOCTYPE html>
<html>

<head>
	<title>Url-Shorten-Worker</title>
	<meta http-equiv="Refresh" content="1; url={Replace}" />
	<meta name="referrer" content="no-referrer" />
</head>

<body>
	<p>Redirecting..</p>
	<script type="text/javascript">
		/* <![CDATA[ */
		setTimeout('window.location.replace( "{Replace}" + window.location.hash );', 1000 )

/* ]]> */
	</script>
</body>

</html>


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants