Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
f628412d
Unverified
Commit
f628412d
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Give mesh blogs indicative titles
parent
f15a2343
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-app-blogstatic
+2
-1
2 additions, 1 deletion
src/freedombone-app-blogstatic
src/freedombone-mesh-blog
+6
-0
6 additions, 0 deletions
src/freedombone-mesh-blog
with
8 additions
and
1 deletion
src/freedombone-app-blogstatic
+
2
−
1
View file @
f628412d
...
...
@@ -33,6 +33,7 @@ VARIANTS='mesh'
STATIC_BLOG_INSTALL_DIR
=
/etc/staticblog
PELICAN_THEMES_REPO
=
"https://github.com/getpelican/pelican-themes"
PELICAN_PLUGINS_REPO
=
"https://github.com/getpelican/pelican-plugins"
DEFAULT_BLOG_TITLE
=
$"Freedombone Blog"
function
reconfigure_tox
{
echo
-n
''
...
...
@@ -66,7 +67,7 @@ function create_pelican_conf {
echo
'from __future__ import unicode_literals'
>>
$STATIC_BLOG_FILE
echo
''
>>
$STATIC_BLOG_FILE
echo
"AUTHOR=u
\"
$MY_USERNAME
\"
"
>>
$STATIC_BLOG_FILE
echo
"SITENAME=u'
Freedombone Blog
'"
>>
$STATIC_BLOG_FILE
echo
"SITENAME=u'
$DEFAULT_BLOG_TITLE
'"
>>
$STATIC_BLOG_FILE
echo
"SITEURL=''"
>>
$STATIC_BLOG_FILE
echo
"PATH='content'"
>>
$STATIC_BLOG_FILE
echo
'TIMEZONE=u"Europe/London"'
>>
$STATIC_BLOG_FILE
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-mesh-blog
+
6
−
0
View file @
f628412d
...
...
@@ -35,6 +35,7 @@ BLOG_PATH=~/CreateBlog
BLOG_CONTENT_PATH
=
$BLOG_PATH
/content
CURRENT_BLOG_INDEX
=
/home/
$USER
/.blog-index
BLOG_EDITOR
=
'pluma'
DEFAULT_BLOG_TITLE
=
$"Freedombone Blog"
function
regenerate_blog
{
OLD_STAT_FILE
=
/home/
$USER
/.old_stat.txt
...
...
@@ -43,6 +44,11 @@ function regenerate_blog {
fi
cd
$BLOG_PATH
if
grep
-q
"SITENAME=u'
${
DEFAULT_BLOG_TITLE
}
'"
$BLOG_PATH
/pelicanconf.py
;
then
TOX_NICK
=
$(
toxid
--showuser
)
BLOG_TITLE
=
$"
${
TOX_NICK
}
's Blog"
sed
-i
"s|SITENAME=.*|SITENAME=u
\"
${
BLOG_TITLE
}
\"
|g"
$BLOG_PATH
/pelicanconf.py
fi
make html
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment