修改部分标题

This commit is contained in:
浪子 2024-05-25 19:32:48 +08:00
parent f4f00c2d8a
commit fab48da149
31 changed files with 25137 additions and 68 deletions

View File

@ -0,0 +1 @@
{}

View File

@ -0,0 +1,3 @@
{
"accentColor": ""
}

View File

@ -0,0 +1,4 @@
[
"buttons",
"quickadd"
]

View File

@ -0,0 +1,30 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": true,
"outgoing-link": true,
"tag-pane": true,
"properties": false,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false
}

View File

@ -0,0 +1,20 @@
[
"file-explorer",
"global-search",
"switcher",
"graph",
"backlink",
"canvas",
"outgoing-link",
"tag-pane",
"page-preview",
"daily-notes",
"templates",
"note-composer",
"command-palette",
"editor-status",
"bookmarks",
"outline",
"word-count",
"file-recovery"
]

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,10 @@
{
"id": "buttons",
"name": "Buttons",
"description": "Create Buttons in your Obsidian notes to run commands, open links, and insert templates",
"version": "0.5.1",
"author": "shabegom",
"authorUrl": "https://shbgm.ca",
"isDesktopOnly": false,
"minAppVersion": "0.12.8"
}

View File

@ -0,0 +1,148 @@
/* @settings
name: Buttons
id: buttons-styles
settings:
-
id: button-background
title: Background
type: variable-themed-color
format: hex
opacity: false
default-light: '#f5f6f8'
default-dark: '#1b1b1b'
-
id: button-text
title: Text
type: variable-themed-color
format: hex
opacity: false
default-light: '#1b1b1b'
default-dark: '#f5f6f8'
-
id: button-border
title: Border
type: variable-themed-color
format: hex
opacity: false
default-light: '#7a9486'
default-dark: '#84a83a'
-
id: button-box-shadow
title: Box Shadow
type: variable-themed-color
format: rgb
opacity: true
default-light: '#1b1b1b'
default-dark: '#f5f6f8'
-
id: button-border-radius
title: Border Radius
type: variable-number
format: px
default: 5
-
id: button-size
title: Font Size
type: variable-number
format: em
default: 1
*/
.block-language-button {
padding: 5px;
}
button.button-default {
border: 0.5px solid var(--button-border, #7a9486);
border-radius: var(--button-border-radius, 5px);
background-color: var(--button-background);
padding: 10px 30px;
color: var(--button-text);
text-decoration: none;
font-size: var(--button-size);
margin: 0 5px;
box-shadow: 0 1px 3px var(--button-box-shadow, rgba(0, 0, 0, 0.12)),
0 1px 2px var(--button-box-shadow, rgba(0, 0, 0, 0.24));
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
button.button-default:hover {
z-index: 100;
box-shadow: 0 4px 4px var(--button-box-shadow, rgba(0, 0, 0, 0.25)),
0 10px 10px var(--button-box-shadow, rgba(0, 0, 0, 0.22));
transform: translate3d(0px, -1.5px, 0px);
background-color: var(--button-background);
}
.theme-dark button.button-default {
border: 0.5px solid var(--button-border, #84a83a);
}
.theme-dark button.button-default:hover {
z-index: 100;
box-shadow: 0 4px 4px var(--button-box-shadow, rgba(210, 210, 210, 0.25)),
0 10px 10px var(--button-box-shadow, rgba(210, 210, 210, 0.22));
transform: translate3d(0px, -1.5px, 0px);
}
button.button-inline {
width: unset;
height: unset;
padding: 0 8px;
}
button.blue {
background: #76b3fa;
color: black;
}
button.red {
background-color: red;
}
button.green {
background: green;
}
button.yellow {
background: yellow;
color: black;
}
button.purple {
background: #725585;
}
button.blue:hover {
background: #76b3fa;
color: black;
}
button.red:hover {
background: red;
}
button.green:hover {
background: green;
}
button.yellow:hover {
background: yellow;
color: black;
}
button.purple:hover {
background: #725585;
}
.button-maker {
max-width: 35rem;
width: 35rem;
overflow-y: auto;
max-height: 30rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
overflow-x: hidden;
}

View File

@ -0,0 +1,68 @@
{
"choices": [],
"macros": [
{
"name": "新建博客",
"id": "5149216b-cbc4-4037-a178-d75ab1ef3fd9",
"commands": [],
"runOnStartup": true
}
],
"inputPrompt": "single-line",
"devMode": false,
"templateFolderPath": "",
"announceUpdates": true,
"version": "0.14.0",
"disableOnlineFeatures": true,
"ai": {
"defaultModel": "Ask me",
"defaultSystemPrompt": "As an AI assistant within Obsidian, your primary goal is to help users manage their ideas and knowledge more effectively. Format your responses using Markdown syntax. Please use the [[Obsidian]] link format. You can write aliases for the links by writing [[Obsidian|the alias after the pipe symbol]]. To use mathematical notation, use LaTeX syntax. LaTeX syntax for larger equations should be on separate lines, surrounded with double dollar signs ($$). You can also inline math expressions by wrapping it in $ symbols. For example, use $$w_{ij}^{\text{new}}:=w_{ij}^{\text{current}}+etacdotdelta_jcdot x_{ij}$$ on a separate line, but you can write \"($eta$ = learning rate, $delta_j$ = error term, $x_{ij}$ = input)\" inline.",
"promptTemplatesFolderPath": "",
"showAssistant": true,
"providers": [
{
"name": "OpenAI",
"endpoint": "https://api.openai.com/v1",
"apiKey": "",
"models": [
{
"name": "gpt-3.5-turbo",
"maxTokens": 4096
},
{
"name": "gpt-3.5-turbo-16k",
"maxTokens": 16384
},
{
"name": "gpt-3.5-turbo-1106",
"maxTokens": 16385
},
{
"name": "gpt-4",
"maxTokens": 8192
},
{
"name": "gpt-4-32k",
"maxTokens": 32768
},
{
"name": "gpt-4-1106-preview",
"maxTokens": 128000
},
{
"name": "text-davinci-003",
"maxTokens": 4096
}
]
}
]
},
"migrations": {
"migrateToMacroIDFromEmbeddedMacro": true,
"useQuickAddTemplateFolder": true,
"incrementFileNameSettingMoveToDefaultBehavior": true,
"mutualExclusionInsertAfterAndWriteToBottomOfFile": true,
"setVersionAfterUpdateModalRelease": true,
"addDefaultAIProviders": false
}
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,12 @@
{
"id": "quickadd",
"name": "QuickAdd",
"version": "1.8.1",
"minAppVersion": "0.13.19",
"description": "Quickly add new pages or content to your vault.",
"author": "Christian B. B. Houmann",
"authorUrl": "https://bagerbach.com",
"fundingUrl": "https://www.buymeacoffee.com/chhoumann",
"helpUrl": "https://quickadd.obsidian.guide/docs/",
"isDesktopOnly": false
}

View File

@ -0,0 +1,238 @@
/* src/styles.css */
.configureMacroDiv {
display: grid;
grid-template-rows: 1fr;
min-width: 12rem;
}
.configureMacroDivItem {
display: flex;
align-content: center;
justify-content: space-between;
margin-bottom: 10px;
}
.configureMacroDivItemButton {
display: flex;
align-content: center;
justify-content: center;
margin-bottom: 10px;
}
.macroContainer {
display: grid;
grid-template-rows: repeat(auto-fill, 120px);
grid-gap: 40px;
overflow-y: auto;
max-height: 30em;
padding: 2em;
}
@media screen and (max-width: 540px) {
.macroContainer1 {
grid-template-columns: repeat(1, 1fr);
}
.macroContainer2 {
grid-template-columns: repeat(1, 1fr);
}
.macroContainer3 {
grid-template-columns: repeat(1, 1fr);
}
.wideInputPromptInputEl {
width: 20rem;
max-width: 100%;
height: 3rem;
}
}
@media screen and (max-width: 540px) and (max-width: 780px) {
.macroContainer1 {
grid-template-columns: repeat(1, 1fr);
}
.macroContainer2 {
grid-template-columns: repeat(2, 1fr);
}
.macroContainer3 {
grid-template-columns: repeat(2, 1fr);
}
.wideInputPromptInputEl {
width: 30rem;
max-width: 100%;
height: 20rem;
}
}
@media screen and (min-width: 781px) {
.macroContainer1 {
grid-template-columns: repeat(1, 1fr);
}
.macroContainer2 {
grid-template-columns: repeat(2, 1fr);
}
.macroContainer3 {
grid-template-columns: repeat(2, 1fr);
}
.wideInputPromptInputEl {
width: 40rem;
max-width: 100%;
height: 20rem;
}
}
.addMacroBarContainer {
display: flex;
align-content: center;
justify-content: space-around;
margin-top: 20px;
}
.captureToActiveFileContainer {
display: flex;
align-content: center;
justify-content: space-between;
margin-bottom: 10px;
}
.choiceNameHeader {
text-align: center;
}
.choiceNameHeader:hover {
cursor: pointer;
}
.folderInputContainer {
display: flex;
align-content: center;
justify-content: space-between;
margin-bottom: 8px;
gap: 4px;
}
.selectMacroDropdownContainer {
display: flex;
align-content: center;
justify-content: center;
}
.quickAddModal .modal {
min-width: 35%;
overflow-y: auto;
max-height: 70%;
}
.checkboxRowContainer {
margin: 30px 0px;
display: grid;
grid-template-rows: auto;
align-content: center;
gap: 5px;
}
.checkboxRow {
display: flex;
justify-content: space-between;
align-content: center;
}
.checkboxRow .checkbox-container {
flex-shrink: 0;
}
.checkboxRow span {
font-size: 16px;
word-break: break-all;
}
.submitButtonContainer {
display: flex;
align-content: center;
justify-content: center;
}
.chooseFolderWhenCreatingNoteContainer {
display: flex;
align-content: center;
justify-content: space-between;
margin-bottom: 10px;
}
.chooseFolderFromSubfolderContainer {
margin: 20px 0 0 0;
}
.clickable:hover {
cursor: pointer;
}
.quickAddCommandListItem {
display: flex;
flex: 1 1 auto;
align-items: center;
justify-content: space-between;
}
.quickCommandContainer {
display: flex;
justify-content: flex-end;
align-content: center;
margin-bottom: 1em;
gap: 4px;
}
.yesNoPromptButtonContainer {
display: flex;
align-items: center;
justify-content: space-around;
margin-top: 2rem;
}
.yesNoPromptParagraph {
text-align: center;
}
.qaFileSuggestionItem {
display: flex;
flex-direction: column;
width: 100%;
}
.qaFileSuggestionItem .suggestion-main-text {
font-weight: bold;
}
.qaFileSuggestionItem .suggestion-sub-text {
font-style: italic;
}
.choiceListItem {
display: flex;
font-size: 16px;
align-items: center;
margin: 12px 0 0 0;
transition: 1000ms ease-in-out;
}
.choiceListItemName {
flex: 1 0 0;
}
.choiceListItemName p {
margin: 0;
display: inline;
}
.quickadd-choice-suggestion p {
margin: 0;
}
.macroDropdownContainer {
display: flex;
align-content: center;
justify-content: center;
margin-bottom: 10px;
gap: 10px;
}
.macro-choice-buttonsContainer {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: 10px;
}
@media only screen and (max-width: 600px) {
.macroDropdownContainer {
flex-direction: column;
align-items: center;
}
.macroDropdownContainer .macro-choice-buttonsContainer {
gap: 20px;
}
}
.quickadd-update-modal-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.quickadd-update-modal {
min-width: 35%;
max-height: 70%;
}
.quickadd-update-modal img {
width: 100%;
height: auto;
margin: 5px;
}
.quickadd-bmac-container {
display: flex;
justify-content: center;
align-items: center;
}

View File

@ -0,0 +1,192 @@
{
"main": {
"id": "a6c6d845821de435",
"type": "split",
"children": [
{
"id": "9834336ac1a65d83",
"type": "tabs",
"children": [
{
"id": "2c1da5bfefdfe47c",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Moments.md",
"mode": "source",
"source": false
}
}
},
{
"id": "b92342483b71e489",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "为Memos增加twikoo评论.md",
"mode": "source",
"source": false
}
}
}
],
"currentTab": 1
}
],
"direction": "vertical"
},
"left": {
"id": "17f72e027ac01087",
"type": "split",
"children": [
{
"id": "cffb29a9cb0b0eaa",
"type": "tabs",
"children": [
{
"id": "e09315e7f86ea4cf",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "alphabetical"
}
}
},
{
"id": "2efb4c2d02f0a7c4",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "add",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
}
}
},
{
"id": "685c8fc7fde151eb",
"type": "leaf",
"state": {
"type": "bookmarks",
"state": {}
}
}
],
"currentTab": 1
}
],
"direction": "horizontal",
"width": 300
},
"right": {
"id": "8ea0eb23b0bdaa3c",
"type": "split",
"children": [
{
"id": "e92ff0755bc28c1d",
"type": "tabs",
"children": [
{
"id": "062164c80a9a70e9",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"file": "为Memos增加twikoo评论.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "cc00b5bc61818f3b",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"file": "为Memos增加twikoo评论.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "441dcbee5491cb24",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true
}
}
},
{
"id": "e78ac6da8d627449",
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "为Memos增加twikoo评论.md"
}
}
}
]
}
],
"direction": "horizontal",
"width": 300,
"collapsed": true
},
"left-ribbon": {
"hiddenItems": {
"switcher:打开快速切换": false,
"graph:查看关系图谱": false,
"canvas:新建白板": false,
"daily-notes:打开/创建今天的日记": false,
"templates:插入模板": false,
"command-palette:打开命令面板": false
}
},
"active": "2efb4c2d02f0a7c4",
"lastOpenFiles": [
"未命名.md",
"为Memos增加twikoo评论.md",
"Moments.md",
"memos-api-call-rendering-page.md",
"1.md",
"small-sheep-snh48-xu-yang-yuzhuo.md",
"wechat-keyboard-online.md",
"ypecho文章内的超链接在新窗口打开.md",
"Windows-Git在windows下区分大小写.md",
"typecho头像加速.md",
"在fly部署artalk评论系统.md",
"中国式相亲之现状.md",
"关于英雄联盟S8八强对抗的预测.md",
"jginyuex99mplusd3hackintosh.md",
"一个时代终将落幕.md",
"圣诞节.md",
"15级强台风山竹即将登陆广东.md",
"关于网恋.md",
"写在MSI季中冠军赛RNG夺冠之后.md",
"现实就是这么现实.md",
"又是拳头.md",
"压力山大.md",
"十年.md",
"我的梦想.md",
"macOS一键安装homebrew国内镜像.md",
"centos7安装后没有网络.md"
]
}

0
content/zh-cn/posts/1.md Normal file
View File

View File

@ -1,64 +0,0 @@
---
title: "教程:博客独立页面调用 Memos 的方法"
slug: "memos-api-call-rendering-page"
date: 2023-05-09T06:08:00.000Z
categories:
- 分享
tags:
- memos
---
// 2023.8.22更新
## 集成
集成到自己的网站,在合适的位置需要放置一个 CSS 选择器作为展示 Memos 的容器。
```
<div id="memos" class="memos"></div>
<!-- Your Memos API -->
<script type="text/javascript">
var memos = {
host: 'https://memos.ee/', // Your Memos, with '/' end.
limit: '20', // Pagination to show.
creatorId: '1', // The old instance is 101, and the new instance is 1.
domId: '#memos', // Default #memos.
username: 'jkjoy', // You can customize the display ID that is not related to memos.
name: '浪子', // You can customize the displayed full name, that is not related to memos.
}
</script>
```
引入CSS和JS
```
<link rel="stylesheet" href="https://m.sunpeiwen.com/assets/css/memos.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://m.sunpeiwen.com/assets/css/custom.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="https://m.sunpeiwen.com/assets/js/main.js"></script>
<script type="text/javascript" src="https://m.sunpeiwen.com/assets/js/custom.js"></script>
<script type="text/javascript" src="https://m.sunpeiwen.com/assets/js/marked.min.js?v=4.2.2"></script>
<script type="text/javascript" src="https://m.sunpeiwen.com/assets/js/moment.min.js?v=2.29.4"></script>
<script type="text/javascript" src="https://m.sunpeiwen.com/assets/js/moment.twitter.js"></script>
<script type="text/javascript" src="https://m.sunpeiwen.com/assets/js/view-image.min.js"></script>
<script type="text/javascript" src="https://m.sunpeiwen.com/assets/js/lazyload.min.js?v=17.8.3"></script>
```
## 独立网页
### 演示地址
https://m.sunpeiwen.com/
### fork参考项目
修改`index.html`中
```
var memos = {
host: 'https://memos.ee/', // Your Memos, with '/' end.
limit: '20', // Pagination to show.
creatorId: '1', // The old instance is 101, and the new instance is 1.
domId: '#memos', // Default #memos.
username: 'jkjoy', // You can customize the display ID that is not related to memos.
name: '浪子', // You can customize the displayed full name, that is not related to memos.
}
```
其中`host` `creatorId` `username` `name`的值.
### setting github pages
![github.png][1]
如上图设置即可.
[1]: https://blogcdn.asbid.cn/2023/05/09/1683614532.png

View File

@ -1,11 +1,12 @@
--- ---
title: "压力山大" title: 压力山大
slug: "tremendous-pressure" slug: tremendous-pressure
date: 2016-11-04T10:20:00.000Z date: 2016-11-04T10:20:00.000Z
categories: categories:
- 日记 - 日记
tags: tags:
- 日记 - 日记
- 压力
--- ---
说实在话年近三十的压力真的有点大,没有结婚,也没什么存款,买不起车也买不起房,虽然不啃老,但是日子过的也不大理想。 说实在话年近三十的压力真的有点大,没有结婚,也没什么存款,买不起车也买不起房,虽然不啃老,但是日子过的也不大理想。