mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-06-07 02:22:44 +00:00
update article
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<footer>
|
||||
<div class="container">
|
||||
<img alt="simplex logo" class="logo d-none-992" src="/img/simplex.svg" />
|
||||
<p class="copyright">
|
||||
© 2020-22 SimpleX | Open-Source Project <span class="d-none-576">|</span>
|
||||
<a class="d-none-576" href="https://github.com/simplex-chat" target="_blank"><img
|
||||
src="/img/icons/github.svg" /></a>
|
||||
<a class="d-none-576" href="https://www.reddit.com/r/SimpleXChat/" target="_blank"><img
|
||||
src="/img/icons/reddit.svg" /></a>
|
||||
<a class="d-none-576" href="https://twitter.com/simplexchat" target="_blank"><img
|
||||
src="/img/icons/twitter.svg" /></a>
|
||||
<a class="d-none-576" href="https://www.linkedin.com/company/simplex-chat/" target="_blank"><img
|
||||
src="/img/icons/linkedin.svg" /></a>
|
||||
<a class="d-none-576" href="mailto:chat@simplex.chat" target="_blank"><img src="/img/icons/email.svg" /></a>
|
||||
</p>
|
||||
<div class="github d-none-992">
|
||||
<a class="github-button" href="https://github.com/simplex-chat/protocol" data-size="large"
|
||||
data-show-count="true" aria-label="Star simplex-chat on GitHub">Star</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -18,50 +18,9 @@
|
||||
<section class="container">
|
||||
<div class="bg-white py-6 sm:py-12 sm:px-8 md:px-16 lg:px-20">{{ content | safe }}</div>
|
||||
</section>
|
||||
{% include "footer.html" %}
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
<img alt="simplex logo" class="logo d-none-992" src="/img/simplex.svg" />
|
||||
<p class="copyright">
|
||||
© 2020-22 SimpleX | Open-Source Project <span class="d-none-576">|</span>
|
||||
<a class="d-none-576" href="https://github.com/simplex-chat" target="_blank"><img
|
||||
src="/img/icons/github.svg" /></a>
|
||||
<a class="d-none-576" href="https://www.reddit.com/r/SimpleXChat/" target="_blank"><img
|
||||
src="/img/icons/reddit.svg" /></a>
|
||||
<a class="d-none-576" href="https://twitter.com/simplexchat" target="_blank"><img
|
||||
src="/img/icons/twitter.svg" /></a>
|
||||
<a class="d-none-576" href="https://www.linkedin.com/company/simplex-chat/" target="_blank"><img
|
||||
src="/img/icons/linkedin.svg" /></a>
|
||||
<a class="d-none-576" href="mailto:chat@simplex.chat" target="_blank"><img src="/img/icons/email.svg" /></a>
|
||||
</p>
|
||||
<div class="github d-none-992">
|
||||
<a class="github-button" href="https://github.com/simplex-chat/protocol" data-size="large"
|
||||
data-show-count="true" aria-label="Star simplex-chat on GitHub">Star</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
// convert relative blog links to absolute links
|
||||
document.querySelectorAll("a").forEach((a) => {
|
||||
const dotSepList = a.getAttribute("href").split(".");
|
||||
if (dotSepList[0] == "") {
|
||||
const hashSepList = dotSepList[dotSepList.length - 1].split("#")
|
||||
if (hashSepList[0] == "md") {
|
||||
let str = `/blog${dotSepList[1]}`;
|
||||
for (let i = 2; i < dotSepList.length; i++) {
|
||||
if (dotSepList[i].substring(0, 2) != "md") {
|
||||
str += "." + dotSepList[i];
|
||||
} else break;
|
||||
}
|
||||
if (hashSepList[1]) {
|
||||
str += "#" + hashSepList[1];
|
||||
}
|
||||
a.setAttribute("href", str);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script src="/js/article.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// Convert relative blog extension (from .md to .html)
|
||||
document.querySelectorAll("a").forEach((a) => {
|
||||
const dotSepList = a.getAttribute("href").split(".");
|
||||
if (dotSepList[0] == "") {
|
||||
const hashSepList = dotSepList[dotSepList.length - 1].split("#")
|
||||
if (hashSepList[0] == "md") {
|
||||
let str = `.${dotSepList[1]}`;
|
||||
for (let i = 2; i < dotSepList.length; i++) {
|
||||
if (dotSepList[i].substring(0, 2) != "md") {
|
||||
str += "." + dotSepList[i];
|
||||
} else {
|
||||
str += ".html";
|
||||
break;
|
||||
};
|
||||
}
|
||||
if (hashSepList[1]) {
|
||||
str += "#" + hashSepList[1];
|
||||
}
|
||||
a.setAttribute("href", str);
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user