chore: blog proxy
This commit is contained in:
@@ -34,7 +34,7 @@ wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.32.tar.xz
|
||||
tar -xJf coreutils-8.32.tar.xz
|
||||
cd coreutils-8.32/
|
||||
# Download patch
|
||||
wget https://raw.githubusercontent.com/jarun/advcpmv/master/advcpmv-0.8-8.32.patch
|
||||
wget https://ghproxy.com/https://raw.githubusercontent.com/jarun/advcpmv/master/advcpmv-0.8-8.32.patch
|
||||
# Patching display with process bar
|
||||
patch -p1 -i advcpmv-0.8-8.32.patch
|
||||
# Compile then install
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
title: Blogs
|
||||
footer: false
|
||||
editLink: false
|
||||
aside: false
|
||||
next: false
|
||||
@@ -11,9 +12,12 @@ sidebar: false
|
||||
import { ref } from 'vue'
|
||||
import PostList from '../components/PostList.vue'
|
||||
import Blogger from '../components/Blogger.vue'
|
||||
const goUrl = (url) => {
|
||||
window.open(url, "_blank")
|
||||
}
|
||||
</script>
|
||||
|
||||
# Friends <Badge type="warning" text="beta" />
|
||||
# Friends <Badge type="tip" text="join us" @click="goUrl('https://github.com/NX-Official/friends-link-plus/edit/main/input/friends.json')" />
|
||||
|
||||
<Suspense><Blogger ></Blogger></Suspense>
|
||||
|
||||
@@ -22,3 +26,5 @@ import Blogger from '../components/Blogger.vue'
|
||||
# Recent Posts <Badge type="warning" text="beta" />
|
||||
|
||||
<Suspense><PostList ></PostList></Suspense>
|
||||
|
||||
<a href="https://github.com/NX-Official/friends-link-plus/edit/main/input/friends.json" target="_blank" style="font-size: 0.5rem; color: #666;">在GitHub上修改关注列表</a>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { computed } from 'vue'
|
||||
import VPTeamMembersItem from './BloggerItem.vue'
|
||||
const size = 'small'
|
||||
const props= {friends:(await (await fetch("https://raw.githubusercontent.com/NX-Official/friends-link-plus/main/output/friends.json")).json()).friends}
|
||||
const props= {friends:(await (await fetch("https://ghproxy.com/https://raw.githubusercontent.com/NX-Official/friends-link-plus/main/output/friends.json")).json()).friends}
|
||||
const members = props.friends
|
||||
const classes = computed(() => [
|
||||
size ?? 'medium',
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { ref, computed } from 'vue';
|
||||
import Pagination from './Pagination.vue';
|
||||
import PostItem from './PostItem.vue';
|
||||
const props= {data:(await (await fetch("https://raw.githubusercontent.com/NX-Official/friends-link-plus/main/output/friends.json")).json()).posts}
|
||||
const props= {data:(await (await fetch("https://ghproxy.com/https://raw.githubusercontent.com/NX-Official/friends-link-plus/main/output/friends.json")).json()).posts}
|
||||
const pageSize = 10
|
||||
// const Date = ref('')
|
||||
const pageTotal = ref(Math.ceil(props.data.length / pageSize))
|
||||
|
||||
Reference in New Issue
Block a user